-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
64 lines (64 loc) · 1.5 KB
/
.eslintrc
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
54
55
56
57
58
59
60
61
62
63
64
{
"root": true,
"extends": ["eslint:recommended"],
"env": {
"node": true,
"browser": true,
"es6": true,
"jest/globals": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"classes": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": ["react", "jest"],
"rules": {
"strict": 0,
"eqeqeq": 1,
"no-console": 1,
"no-irregular-whitespace": 1,
"no-use-before-define": [2, "nofunc"],
"no-unused-vars": [
1,
{
"vars": "all",
"args": "after-used",
"argsIgnorePattern": "(^_|^next$)"
}
],
"arrow-parens": [1, "as-needed"],
"no-dupe-keys": 2,
"no-dupe-args": 2,
"semi": 1,
"react/no-deprecated": 2,
"react/no-direct-mutation-state": 2,
"react/no-multi-comp": 0,
"react/no-unused-prop-types": 0,
"react/prefer-stateless-function": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 2,
"react/jsx-closing-bracket-location": 1,
"react/jsx-curly-spacing": [2, "never"],
"react/jsx-equals-spacing": [2, "never"],
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-target-blank": 2,
"react/jsx-no-undef": 2,
"react/jsx-pascal-case": 2,
"react/jsx-tag-spacing": [
2,
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never"
}
],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/jsx-wrap-multilines": 1
}
}