2018-03-08 11:32:07 +00:00
|
|
|
{
|
2020-02-17 22:20:43 +00:00
|
|
|
"settings": {
|
|
|
|
"react": {
|
|
|
|
"flowVersion": "0.112.0",
|
|
|
|
"pragma": "React",
|
|
|
|
"version": "16.12.0"
|
|
|
|
},
|
|
|
|
"import/extensions": [".js", ".jsx"]
|
|
|
|
},
|
|
|
|
"parser": "babel-eslint",
|
|
|
|
"plugins": ["react", "flowtype", "import", "jsx-a11y", "prettier"],
|
2020-02-13 13:43:28 +00:00
|
|
|
"extends": [
|
2020-02-17 22:20:43 +00:00
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:react/recommended",
|
2020-02-13 13:43:28 +00:00
|
|
|
"plugin:flowtype/recommended",
|
2020-02-17 22:20:43 +00:00
|
|
|
"plugin:import/errors",
|
|
|
|
"plugin:import/warnings",
|
2020-02-13 13:43:28 +00:00
|
|
|
"plugin:jsx-a11y/recommended",
|
|
|
|
"plugin:prettier/recommended",
|
2020-02-17 22:20:43 +00:00
|
|
|
"prettier/react",
|
|
|
|
"prettier/flowtype"
|
2020-02-13 13:43:28 +00:00
|
|
|
],
|
2020-02-17 22:20:43 +00:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"amd": true,
|
|
|
|
"node": true,
|
|
|
|
"es6": true
|
|
|
|
},
|
2018-03-08 11:32:07 +00:00
|
|
|
"rules": {
|
|
|
|
"class-methods-use-this": 0,
|
|
|
|
"max-len": [
|
|
|
|
"error",
|
|
|
|
120,
|
|
|
|
2,
|
|
|
|
{
|
|
|
|
"ignoreComments": false,
|
|
|
|
"ignoreRegExpLiterals": true,
|
|
|
|
"ignoreStrings": true,
|
2020-02-17 22:20:43 +00:00
|
|
|
"ignoreTemplateLiterals": true,
|
|
|
|
"ignoreUrls": true
|
2020-02-13 13:43:28 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-console": [
|
|
|
|
"error",
|
|
|
|
{
|
2020-02-17 22:20:43 +00:00
|
|
|
"allow": ["warn", "error"]
|
2020-02-13 13:43:28 +00:00
|
|
|
}
|
|
|
|
],
|
2020-02-17 22:20:43 +00:00
|
|
|
"semi": ["error", "never"],
|
2018-03-09 08:23:15 +00:00
|
|
|
"flowtype/require-valid-file-annotation": [
|
2018-03-08 16:26:18 +00:00
|
|
|
2,
|
2019-07-11 10:13:26 +00:00
|
|
|
"always",
|
|
|
|
{
|
2018-03-09 08:23:15 +00:00
|
|
|
"annotationStyle": "line"
|
2018-03-08 16:26:18 +00:00
|
|
|
}
|
2018-03-15 10:14:20 +00:00
|
|
|
],
|
2020-02-17 22:20:43 +00:00
|
|
|
"import/extensions": 0,
|
|
|
|
"import/no-extraneous-dependencies": 0,
|
|
|
|
"import/no-unresolved": 0,
|
|
|
|
"import/prefer-default-export": 0,
|
2019-07-11 10:13:26 +00:00
|
|
|
"jsx-a11y/anchor-is-valid": [
|
|
|
|
"error",
|
|
|
|
{
|
2020-02-17 22:20:43 +00:00
|
|
|
"components": ["Link"],
|
|
|
|
"specialLink": ["to", "hrefLeft", "hrefRight"],
|
|
|
|
"aspects": ["noHref", "invalidHref", "preferButton"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"react/default-props-match-prop-types": ["error", { "allowRequiredDefaults": true }],
|
|
|
|
"react/forbid-prop-types": [
|
|
|
|
1,
|
|
|
|
{
|
|
|
|
"forbid": ["object", "any"]
|
2019-07-11 10:13:26 +00:00
|
|
|
}
|
|
|
|
],
|
2019-08-28 14:25:18 +00:00
|
|
|
"react/no-array-index-key": 0,
|
2020-02-17 22:20:43 +00:00
|
|
|
"react/require-default-props": 0,
|
|
|
|
"react/state-in-constructor": 0,
|
|
|
|
"react/jsx-filename-extension": [
|
|
|
|
1,
|
|
|
|
{
|
|
|
|
"extensions": [".js", ".jsx"]
|
|
|
|
}
|
|
|
|
],
|
2019-09-20 12:04:35 +00:00
|
|
|
"react/jsx-props-no-spreading": 0,
|
2020-02-17 22:20:43 +00:00
|
|
|
"prettier/prettier": "error",
|
|
|
|
"jsx-a11y/no-autofocus": "warn"
|
2018-03-08 11:32:07 +00:00
|
|
|
}
|
2020-02-17 22:20:43 +00:00
|
|
|
}
|