ESLint
ESLint is used to
yes | no | |
| [ ] | [x] |
| [x] | [ ] |
| [x] | [ ] |
| [ ] | [x] |
| [x] | [ ] |
| [x] | [ ] |
| [ ] | [x] |
ESLint performs static analysis of source code. See ESLint.org
How do you install ESLint globally?
yes | no | |
| [ ] | [x] |
| [ ] | [x] |
| [x] | [ ] |
If you’re installing something that you want to use in your shell, on the command line or something, install it globally, so that its binaries end up in your PATH environment variable:
npm install eslint -g
Which configuration options should be selected, if you want to set
as errors: missing semicolon, empty block statements and use of constant expressions in conditions
as warnings: whitespace at the end of line, mixed spaces and tabs for indentation (Smart Tabs off) and disallow labels that share a name with a variable
other possible options off
yes | no | |
| [ ] | [x] |
| [ ] | [x] |
| [x] | [ ] |
| [x] | [ ] |
| [ ] | [x] |
| [ ] | [x] |
| [ ] | [x] |
| [x] | [ ] |
| [x] | [ ] |
| [ ] | [x] |
| [ ] | [x] |
| [ ] | [x] |
| [x] | [ ] |
| [ ] | [x] |
| [ ] | [x] |
| [x] | [ ] |
| [ ] | [x] |
Hey, let's be careful out there!
Last updated