2018-05-10 19:27:46 +00:00
|
|
|
// @flow
|
2018-04-30 21:52:28 +00:00
|
|
|
module.exports = {
|
2018-09-17 21:11:39 +00:00
|
|
|
parser: "babel-eslint",
|
2019-07-05 17:36:43 +00:00
|
|
|
plugins: ["flowtype", "react"],
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es6: true,
|
|
|
|
node: true,
|
|
|
|
jest: true,
|
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2018,
|
|
|
|
sourceType: "module",
|
|
|
|
ecmaFeatures: {
|
|
|
|
jsx: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:flowtype/recommended",
|
|
|
|
],
|
2018-04-30 21:52:28 +00:00
|
|
|
rules: {
|
|
|
|
"no-unused-vars": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
argsIgnorePattern: "^_$|^_unused_",
|
|
|
|
varsIgnorePattern: "^_$|^_unused_",
|
|
|
|
caughtErrorsIgnorePattern: "^_$|^_unused_",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"no-use-before-define": ["off"],
|
2018-05-28 22:01:28 +00:00
|
|
|
"no-useless-constructor": ["off"],
|
2019-07-05 17:36:43 +00:00
|
|
|
"no-case-declarations": ["off"],
|
|
|
|
"react/prop-types": ["off"],
|
|
|
|
"flowtype/generic-spacing": ["off"],
|
|
|
|
"flowtype/space-after-type-colon": ["off"],
|
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
react: {
|
|
|
|
version: "detect",
|
|
|
|
},
|
2018-04-30 21:52:28 +00:00
|
|
|
},
|
|
|
|
};
|