2017-03-03 20:09:08 +00:00
|
|
|
{
|
|
|
|
"parser": "babel-eslint",
|
2019-11-22 18:31:23 +00:00
|
|
|
"extends": ["semistandard", "plugin:flowtype/recommended"],
|
|
|
|
"plugins": ["react", "jest", "html", "json", "filenames", "flowtype"],
|
2017-03-03 20:09:08 +00:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"__DEV__": true,
|
2017-07-21 18:59:17 +00:00
|
|
|
"fail": true,
|
|
|
|
"HTMLDivElement": true,
|
2017-09-25 21:32:58 +00:00
|
|
|
"HTMLElement": true,
|
2017-10-10 14:46:32 +00:00
|
|
|
"HTMLInputElement": true,
|
|
|
|
"HTMLSelectElement": true
|
2017-03-03 20:09:08 +00:00
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"jest/globals": true
|
|
|
|
},
|
|
|
|
"rules": {
|
2019-11-22 18:31:23 +00:00
|
|
|
"comma-dangle": ["error", "always-multiline"],
|
2018-04-19 19:54:19 +00:00
|
|
|
"indent": "off",
|
2017-11-06 20:44:55 +00:00
|
|
|
"no-var": "error",
|
2020-04-09 17:32:19 +00:00
|
|
|
"no-async-promise-executor": "off",
|
|
|
|
"no-case-declarations": "off",
|
|
|
|
"no-prototype-builtins": "off",
|
2017-07-18 20:38:19 +00:00
|
|
|
"no-duplicate-imports": "off",
|
2019-04-18 00:50:03 +00:00
|
|
|
"flowtype/space-after-type-colon": "off",
|
2017-03-03 20:09:08 +00:00
|
|
|
"react/jsx-uses-react": "error",
|
2017-03-08 05:52:17 +00:00
|
|
|
"react/jsx-uses-vars": "error",
|
2019-04-18 00:50:03 +00:00
|
|
|
"space-in-parens": "off",
|
2018-12-12 17:36:11 +00:00
|
|
|
"space-before-function-paren": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"anonymous": "never",
|
|
|
|
"named": "never",
|
|
|
|
"asyncArrow": "always"
|
|
|
|
}
|
|
|
|
],
|
2019-11-22 18:31:23 +00:00
|
|
|
"filenames/match-exported": ["error", "kebab"]
|
2017-07-17 23:32:47 +00:00
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"flowtype": {
|
2020-04-09 17:32:19 +00:00
|
|
|
"onlyFilesWithFlowAnnotation": true
|
2017-07-17 23:32:47 +00:00
|
|
|
}
|
2017-03-03 20:09:08 +00:00
|
|
|
}
|
|
|
|
}
|