2
edits
(Added ESLint setup instructions for Atom) |
|||
Line 77: | Line 77: | ||
* flycheck puts its bindings on <code>C-c !</code> by default, so use <code>C-c ! C-h</code> to see what is available. There are key bindings to list all the errors and to move through the errors, among other things. | * flycheck puts its bindings on <code>C-c !</code> by default, so use <code>C-c ! C-h</code> to see what is available. There are key bindings to list all the errors and to move through the errors, among other things. | ||
=== Running ESLint in Atom === | |||
Install the [https://atom.io/packages/linter-eslint linter-eslint] package. Then go to the package settings and enable the following two options: | |||
* Disable using .eslintignore files: this will enable showing errors also for ignored files. | |||
* Use global ESLint installation: avoid using the ESLint version embedded in the package, but use the global installation you have previously configured with <code>./mach eslint --setup</code> | |||
[[File:Eslint-atom-settings.png|600px|linter-eslint settings in Atom]] | |||
Once done, you should see errors and warnings as shown in the screenshot below. | |||
[[File:Eslint-atom.png|600px|ESLint in Atom]] | |||
=== Getting Rid of ESLint Errors === | === Getting Rid of ESLint Errors === |
edits