mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-05-13 08:57:27 +00:00

We can lower the eslint cyclomatic complexity threshold in some directories without adding eslint suppression comments in any .js source files. We need to specify the complexity rule in accessible/.eslintrc because it doesn't inherit the mozilla/recommended rules. eslint's default complexity threshold is 20. Also bump the eslint-plugin-mozilla version because we modified the mozilla/recommended rules. MozReview-Commit-ID: 57T4gAjPH7z --HG-- extra : rebase_source : 4565abfa722b9459cfb4e006e843da13ed7cffd4 extra : intermediate-source : 658588564c08c9fd5e60633d1457f24087de8570 extra : source : 7e0526e3b943419a80c0cd2fa462cabbf8925eb1
18 lines
312 B
JavaScript
18 lines
312 B
JavaScript
"use strict";
|
|
|
|
module.exports = {
|
|
"env": {
|
|
"mozilla/browser-window": true,
|
|
},
|
|
|
|
"plugins": [
|
|
"mozilla"
|
|
],
|
|
|
|
rules: {
|
|
// XXX Bug 1358949 - This should be reduced down - probably to 20 or to
|
|
// be removed & synced with the mozilla/recommended value.
|
|
"complexity": ["error", 48],
|
|
}
|
|
};
|