Flycheck configuration with tide #416
-
Just a general question of how to configure tide and flycheck. I use flycheck-tide now and want to use typescript-eslint. Should I use flycheck-tide and assign eslint as the next checker or vice versa? I noticed I was doing it wrong once I realized typescript-tide does so much more than tslint (before I found out the issue with it). If this is a question for flycheck sorry about wasting your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
yes, the checker name is tide by default only enables the checker for typescript/tsx. For js, we append to the end, so if you have eslint, it will be given preference.
https://www.flycheck.org/en/latest/user/syntax-checkers.html#configuring-checker-chains has more details |
Beta Was this translation helpful? Give feedback.
yes, the checker name is
typescript-tide
it follows{mode}-tide
pattern. For typescript/tsx, it's usually better to run the tide checker first (as it reports type errors) followed by eslint/tslint. For javascript, tide checker usually is not much helpful (unless checkJs is set to true), so typically you can just run eslint only.tide by default only enables the checker for typescript/tsx. For js, we append to the end, so if you have eslint, it will be given preference.
https://www.flycheck.org/en/latest/user/syntax-checkers.html#configuring-checker-chains has more details