2018-10-30 19:41:22 +00:00
|
|
|
## Command line
|
|
|
|
|
|
|
|
```
|
2020-08-28 22:02:35 +00:00
|
|
|
npm run lint
|
2018-10-30 19:41:22 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
This will query both JavaScript files and will query JavaScript within
|
2020-02-22 03:38:33 +00:00
|
|
|
Markdown and HTML files. It will also check for some JSDoc issues,
|
|
|
|
Mocha/chai-specific rules, etc.
|
2018-10-30 19:41:22 +00:00
|
|
|
|
|
|
|
## Atom usage
|
|
|
|
|
|
|
|
If using the Atom package `linter-eslint`, one may add `source.gfm` to the
|
|
|
|
"List of scopes to run ESLint on..." setting to get reporting of JavaScript
|
|
|
|
errors in Markdown.
|
|
|
|
|
|
|
|
One may also add `source.embedded.js` though configuration comments
|
|
|
|
and skip directives (not currently in use) don't seem to work there.
|