I am using emacs daemon, and with the default config for js, jsx:

(flycheck-add-mode 'javascript-eslint 'web-mode)

When I edit *.html.erb files, I have an error: Parsing error: Unexpected token at <%= or <% on ruby code block.

I think javascript-eslint causes the problem. So, How do I select another flycheck checker or just disable automatically flycheck when I open *.html.erb files on web-mode?


1 Answer 1


You can select the flycheck linter by doing this :- M-x RET flycheck-select-checker RET and chose the linter you need and press RET.

As for disabling flycheck for web-mode just for *.html.erb files, add this to your .emacs :-

(add-to-list 'auto-mode-alist
             '("\\.html.erb\\'" . (lambda ()
                                    (flycheck-mode -1))))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.