.eslintrc.js |
|
120 |
browser-test.js |
|
1628 |
chrome-test.js |
|
653 |
general-test.js |
|
1438 |
mochitest-test.js |
|
834 |
recommended.js |
The configuration is based on eslint:recommended config. It defines the
recommended rules for all files, as well as for rules relating to modules
and other module like files.
The configuration intentionally does not specify the globals for the
majority of files. The globals will only be specified for Mozilla specific
files (e.g. system modules). The subscriber to this configuration is expect
to include the correct globals that they require in their project.
The details for all the ESLint rules, and which ones are in the ESLint
recommended configuration can be found here:
https://eslint.org/docs/rules/
Rules that we've explicitly decided not to enable:
require-await - bug 1381030.
no-prototype-builtins - bug 1551829.
require-atomic-updates - bug 1551829.
- This generates too many false positives that are not easy to work
around, and false positives seem to be inherent in the rule.
no-inner-declarations - bug 1487642.
- Would be interested if this could apply to just vars, but at the moment
it doesn't.
max-depth
- Don't enforce the maximum depth that blocks can be nested. The
complexity rule is a better rule to check this.
no-useless-escape - bug 1881262.
- This doesn't reveal any actual errors, and is a lot of work to address.
|
12462 |
require-jsdoc.js |
|
1276 |
valid-jsdoc.js |
|
1151 |
xpcshell-test.js |
|
470 |