-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
46 lines (46 loc) · 1.32 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = {
parser: "babel-eslint",
extends: ["plugin:flowtype/recommended", "eslint:recommended"],
plugins: ["babel", "flowtype"],
env: {
browser: true,
node: true,
es6: true,
},
parserOptions: {
ecmaVersion: 6,
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
sourceType: "module",
},
rules: {
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-in-parens": ["error", "always", { "exceptions": ["{}", "()", "empty"] }],
"space-before-function-paren": "off",
"arrow-body-style": "off",
"react/forbid-prop-types": "off",
"react/prefer-stateless-function": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/imports-first": "off",
"class-methods-use-this": "off",
"arrow-parens": ["error", "as-needed"],
"no-underscore-dangle": "off",
"no-case-declarations": "off",
"no-param-reassign": "off",
"jsx-a11y/no-static-element-interactions": "off",
"brace-style": "off",
"no-plusplus": "off",
"eqeqeq": "off",
"no-unused-expressions": "off",
"no-nested-ternary": "off",
"curly": "off",
"no-return-assign": "off",
"no-confusing-arrow": "off",
"no-extra-boolean-cast": "off"
},
};