gecko-dev/mobile/android/.eslintrc.js
Mark Banner e70f340ca0 Bug 1425052 - Enable ESLint rule no-undef for as much of mobile/android as possible. r=nechen
MozReview-Commit-ID: IKqMxBgsKqt

--HG--
extra : rebase_source : 34d54abea5bf2fdf7736fe6ce0e7dbb6f93f5781
2017-12-13 10:14:37 -06:00

40 lines
958 B
JavaScript

"use strict";
module.exports = {
rules: {
// XXX Bug 1358949 - This should be reduced down - probably to 20 or to
// be removed & synced with the mozilla/recommended value.
"complexity": ["error", 31],
// Rules enabled in mozilla/recommended, and disabled for now, we should
// re-enable these over time.
"consistent-return": "off",
"no-empty": "off",
"no-native-reassign": "off",
"no-nested-ternary": "off",
"no-new-object": "off",
"no-octal": "off",
"no-redeclare": "off",
"no-useless-call": "off",
"no-useless-concat": "off",
"no-unused-vars": "off",
"object-shorthand": "off",
},
"overrides": [{
files: [
// Bug 1425047.
"chrome/**",
// Bug 1425048.
"components/extensions/**",
// Bug 1425034.
"modules/WebsiteMetadata.jsm",
// Bug 1425051.
"tests/browser/robocop/**",
],
rules: {
"no-undef": "off",
}
}],
};