зеркало из https://github.com/mozilla/addons-pm.git
44 строки
1.0 KiB
Plaintext
44 строки
1.0 KiB
Plaintext
{
|
|
"extends": [
|
|
"amo",
|
|
"plugin:amo/recommended"
|
|
],
|
|
"env": {
|
|
"jest/globals": true
|
|
},
|
|
"parser": "@babel/eslint-parser",
|
|
"plugins": [
|
|
"jest"
|
|
],
|
|
"globals": {
|
|
"fetch": true
|
|
},
|
|
"rules": {
|
|
// These rules are not compatible with Prettier.
|
|
"indent": "off",
|
|
"operator-linebreak": "off",
|
|
"react/jsx-one-expression-per-line": "off",
|
|
// Modify rules.
|
|
"jsx-a11y/anchor-is-valid": [
|
|
"error",
|
|
{
|
|
"components": ["Link"],
|
|
"specialLink": ["hrefLeft", "hrefRight"],
|
|
"aspects": ["invalidHref", "preferButton"]
|
|
}
|
|
],
|
|
"no-import-assign": "off",
|
|
"react/function-component-definition": "off",
|
|
"react/no-unescaped-entities": "off",
|
|
"react/prop-types": "off",
|
|
"import/no-extraneous-dependencies": "off",
|
|
"import/no-unresolved": "off",
|
|
"import/extensions": "off",
|
|
"operator-assignment": "off",
|
|
"no-param-reassign": "off",
|
|
"no-nested-ternary": "off",
|
|
// This can be off as Next imports React.
|
|
"react/react-in-jsx-scope": "off",
|
|
}
|
|
}
|