75 строки
1.9 KiB
Plaintext
75 строки
1.9 KiB
Plaintext
{
|
|
"extends": [
|
|
"amo",
|
|
"plugin:amo/recommended"
|
|
],
|
|
"globals": {
|
|
"CLIENT_CONFIG": true,
|
|
"document": true,
|
|
"webpackIsomorphicTools": true,
|
|
"ga": true,
|
|
// https://flow.org/en/docs/types/utilities/#toc-objmap
|
|
"$ObjMap": true,
|
|
// https://flow.org/en/docs/types/utilities/#toc-propertytype
|
|
"$PropertyType": true,
|
|
// These are undocumented utilities that ship with Flow
|
|
// https://github.com/facebook/flow/issues/875
|
|
"$ReadOnlyArray": true,
|
|
"$Shape": true,
|
|
"$Keys": true,
|
|
// See: https://github.com/facebook/flow/issues/1609
|
|
"SyntheticEvent": true,
|
|
"SyntheticInputEvent": true,
|
|
// See: https://github.com/facebook/flow/issues/5627
|
|
"TimeoutID": true,
|
|
// Standard DOM globals:
|
|
"Generator": true,
|
|
"HTMLAnchorElement": true,
|
|
"HTMLButtonElement": true,
|
|
"HTMLElement": true,
|
|
"HTMLInputElement": true,
|
|
"HTMLSelectElement": true,
|
|
"HTMLTextAreaElement": true,
|
|
"Node": true,
|
|
// This is used to send form data to the API.
|
|
"FormData": true,
|
|
// This is used to upload files in the browser.
|
|
"File": true,
|
|
"FileReader": true
|
|
},
|
|
"parser": "babel-eslint",
|
|
"plugins": [
|
|
"jest"
|
|
],
|
|
"rules": {
|
|
// These rules are not compatible with Prettier.
|
|
"implicit-arrow-linebreak": "off",
|
|
"indent": "off",
|
|
"no-mixed-operators": "off",
|
|
"operator-linebreak": "off",
|
|
"react/jsx-one-expression-per-line": "off"
|
|
},
|
|
"settings": {
|
|
"import/ignore": [
|
|
// Because of CommonJS incompatibility, we can't
|
|
// check for bad imports in node_modules.
|
|
"node_modules",
|
|
// Ignore non-JS imports.
|
|
"\\.gif$",
|
|
"\\.jpeg$",
|
|
"\\.jpg$",
|
|
"\\.mp4$",
|
|
"\\.png$",
|
|
"\\.scss$",
|
|
"\\.svg$",
|
|
"\\.webm$"
|
|
],
|
|
"import/resolver": {
|
|
"node": {
|
|
// This adds ./src for relative imports.
|
|
"moduleDirectory": ["node_modules", "src"]
|
|
}
|
|
}
|
|
}
|
|
}
|