1

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
  • Welcome to Emacs stackexchange :) Commented Oct 15, 2016 at 13:53

1 Answer 1

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 ()
                                    (web-mode)
                                    (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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.