mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02: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
9 lines
224 B
JavaScript
9 lines
224 B
JavaScript
"use strict";
|
|
|
|
module.exports = {
|
|
rules: {
|
|
// XXX Bug 1326071 - This should be reduced down - probably to 20 or to
|
|
// be removed & synced with the mozilla/recommended value.
|
|
"complexity": ["error", 61],
|
|
}
|
|
};
|