DevTools/CodingStandards: Difference between revisions

Jump to navigation Jump to search
Updated Atom instructions
(Add section on using ESLint with ViM)
(Updated Atom instructions)
Line 103: Line 103:
=== Running ESLint in Atom ===
=== 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:
Install the [https://atom.io/packages/linter-eslint linter-eslint] package. Then go to the package settings and enable the following options:


* Disable using .eslintignore files: this will enable showing errors also for ignored files.
[[File:Eslint-atom-settings.png|linter-eslint settings in Atom]]
* 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.
Once done, you should see errors and warnings as shown in the screenshot below.
Confirmed users
64

edits

Navigation menu