pdf.js/extensions/firefox/.eslintrc

43 lines
1.2 KiB
Plaintext

{
// Note: The root .eslintrc file will define the base rules,
// but mozilla/recommended will override them for the rules it sets. Finally,
// the rules in this file will take precedence.
"extends": [
"plugin:mozilla/recommended",
],
"parserOptions": {
// Note: Remove the ecmaVersion line when Gecko 52 is no longer supported
// to pick up the eslint-plugin-mozilla version (or at least update to
// ecmaVersion 8).
"ecmaVersion": 6,
"ecmaFeatures": {
// Note: We turn this off as it was only added in Gecko 55 (Bug 1339395)
// and we still need to support older versions (eslint-plugin-mozilla turns
// it on).
"experimentalObjectRestSpread": false
},
"sourceType": "script",
},
"plugins": [
"mozilla"
],
"rules": {
// Items different from the mozilla/recommended configuration.
// Being enabled soon.
"mozilla/use-services": "error",
// Other rules mozilla/recommended hasn't enabled yet.
"no-shadow": "error",
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "always"],
"constructor-super": "error",
"no-confusing-arrow": "error",
"no-useless-constructor": "error",
},
}