New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESlint for Typescript #1081
Comments
I don't have Try to select the Typescript buffer first, then call |
Hi @gigavinyl , Did you install
Don't forget to install npm package that will add support for typescript in ESlint. There are two options if I remember correctly. You may need to configure ESlint to use that addon. However, from my personal experience, I strongly suggest that you install tide that will provide code checking in |
@gigavinyl Were you able to fix the issue? |
Hi @gigavinyl did you manage to solve this problem with suggestions above? I'll like to close this issue, but prefer to get your reply before doing that. |
Hi. Recently the roadmap from TSLint to ESLint was announced:
Isn't Flycheck's default support meaningful yet? |
Do you mean tha we should add |
Yes. I am sorry for the confusing explanation. 🙇 |
I'm trying to use ESLint with When I open a .ts file... I get "No checker" in the bottom of my buffer...
`M-x flycheck-version shows the up-to-date Melpa version which contains this change... My Emacs config ;; https://emacs.stackexchange.com/questions/14898/flycheck-with-eslint-doesnt-use-eslintrc
(use-package flycheck
:ensure t
:custom
(flycheck-display-errors-delay 0)
:config
(global-flycheck-mode)
;; disable jshint since we prefer eslint checking
(setq-default flycheck-disabled-checkers (append flycheck-disabled-checkers '(javascript-jshint)))
;; Workaround for eslint loading slow
;; https://github.com/flycheck/flycheck/issues/1129#issuecomment-319600923
(advice-add 'flycheck-eslint-config-exists-p :override (lambda() t)))
UPDATE: In the same codebase I'm using flycheck + javascript-eslint checker from js2-mode... no problem... the executable is found. It seems maybe the path to the executable isn't being found, but only when in typescript-mode? Any ideas? |
Can you check the value of |
I attempted to enable ESlint in Typescript (which is now possible thanks to typescript-eslint-parser) by adding the line
(flycheck-add-mode 'javascript-eslint 'typescript-mode)
to my configuration and by selecting "javascript-eslint" fromflycheck-select-checker
in a Typescript file, that latter of which yields:. Is there anyway to quickly hack something together a way to enable ESlint in Typescript (I'm still quite a newbie to Emacs and Elisp so I may be missing an obvious solution)?
The text was updated successfully, but these errors were encountered: