safe-react/.eslintrc

55 lines
1.5 KiB
Plaintext
Raw Normal View History

{
2019-07-11 10:13:26 +00:00
"extends": ["airbnb", "plugin:flowtype/recommended"],
"parser": "babel-eslint",
2018-03-08 16:26:18 +00:00
"plugins": ["jest", "flowtype"],
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/forbid-prop-types": [1, { "forbid": ["object", "any"] }],
"class-methods-use-this": 0,
"semi": ["error", "never"],
"max-len": [
"error",
120,
2,
{
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"import/extensions": 0,
"import/prefer-default-export": 0,
"react/default-props-match-prop-types": ["error", { "allowRequiredDefaults": true }],
// https://github.com/yannickcr/eslint-plugin-react/issues/1593 ^
"jsx-a11y/label-has-for": 0,
2019-07-11 10:13:26 +00:00
"indent": ["error", 2, { "SwitchCase": 1 }],
2018-03-08 16:26:18 +00:00
"no-console": ["error", { "allow": ["warn", "error"] }],
"flowtype/require-valid-file-annotation": [
2018-03-08 16:26:18 +00:00
2,
2019-07-11 10:13:26 +00:00
"always",
{
"annotationStyle": "line"
2018-03-08 16:26:18 +00:00
}
],
2019-07-11 10:13:26 +00:00
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to", "hrefLeft", "hrefRight"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
],
"react/require-default-props": 0,
2019-08-28 14:25:18 +00:00
"react/no-array-index-key": 0,
"react/jsx-props-no-spreading": 0
},
"env": {
"jest/globals": true,
"browser": true
}
}