2018-03-08 11:32:07 +00:00
|
|
|
{
|
2018-03-08 16:26:18 +00:00
|
|
|
"extends": [
|
|
|
|
"airbnb",
|
|
|
|
"plugin:flowtype/recommended"
|
|
|
|
],
|
2018-03-08 11:32:07 +00:00
|
|
|
"parser": "babel-eslint",
|
2018-03-08 16:26:18 +00:00
|
|
|
"plugins": ["jest", "flowtype"],
|
2018-03-08 11:32:07 +00:00
|
|
|
"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,
|
|
|
|
"jsx-a11y/label-has-for": 0,
|
|
|
|
"indent": ["error", 2],
|
2018-03-08 16:26:18 +00:00
|
|
|
"no-console": ["error", { "allow": ["warn", "error"] }],
|
2018-03-09 08:23:15 +00:00
|
|
|
"flowtype/require-valid-file-annotation": [
|
2018-03-08 16:26:18 +00:00
|
|
|
2,
|
2018-03-09 08:23:15 +00:00
|
|
|
"always", {
|
|
|
|
"annotationStyle": "line"
|
2018-03-08 16:26:18 +00:00
|
|
|
}
|
2018-03-09 08:23:15 +00:00
|
|
|
]
|
2018-03-08 11:32:07 +00:00
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"jest/globals": true,
|
|
|
|
"browser": true
|
|
|
|
}
|
|
|
|
}
|