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: {
|
2020-01-17 16:55:57 +00:00
|
|
|
camelcase: ["error", {properties: "never", allow: ["^_unused_.*"]}],
|
2020-01-20 04:20:15 +00:00
|
|
|
eqeqeq: ["error", "always", {null: "ignore"}],
|
2018-04-30 21:52:28 +00:00
|
|
|
"no-unused-vars": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
argsIgnorePattern: "^_$|^_unused_",
|
|
|
|
varsIgnorePattern: "^_$|^_unused_",
|
|
|
|
caughtErrorsIgnorePattern: "^_$|^_unused_",
|
|
|
|
},
|
|
|
|
],
|
2019-12-28 23:58:43 +00:00
|
|
|
"no-constant-condition": ["warn", {checkLoops: false}],
|
2018-04-30 21:52:28 +00:00
|
|
|
"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
|
|
|
},
|
|
|
|
};
|