-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
53 lines (53 loc) · 1.42 KB
/
.eslintrc.json
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
47
48
49
50
51
52
53
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017
},
"plugins": ["prettier"],
"extends": ["airbnb", "plugin:prettier/recommended", "prettier"],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"rules": {
"react/prop-types": [0],
"no-param-reassign": [
"error",
{ "props": true, "ignorePropertyModificationsFor": ["state"] }
],
"no-console": "off",
"react/react-in-jsx-scope": [0],
"react/jsx-curly-newline:": [0],
"react/jsx-one-expression-per-line": [0],
"spaced-comment": [0],
"import/no-extraneous-dependencies": [0],
"arrow-parens": [0],
"react/jsx-props-no-spreading": ["off"],
"import/prefer-default-export": [0],
"space-before-function-paren": [0],
"jsx-a11y/href-no-hash": ["off"],
"no-use-before-define": ["off"],
"react/prefer-stateless-function": [0],
"react/require-default-props": [0],
"global-require": "off",
"react/forbid-prop-types": [0],
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"max-len": [
"warn",
{
"code": 80,
"tabWidth": 2,
"comments": 80,
"ignoreComments": false,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
]
}
}