-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
120 lines (120 loc) · 3.39 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:import/react",
"plugin:import/errors",
"plugin:import/warnings"
],
"env": {
"amd": true,
"browser": true,
"jquery": true,
"node": true,
"es6": true,
"worker": true,
"commonjs": true,
"mocha": true,
"jasmine": true,
"jest": true,
"mongo": true
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"impliedStrict": true
}
},
"settings": {
"import/extensions": [".js", ".jsx"],
"webpack": {
"config": {
"resolve": {
"extensions": [".js", ".jsx"]
}
}
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"]
}
}
},
"plugins": [
"react",
"jsx-a11y",
"import",
"async-await",
"prettier",
"eslint-plugin-prettier",
"import"
],
"rules": {
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"async-await/space-after-async": 1,
"async-await/space-after-await": 1,
"block-scoped-var": "error",
"comma-dangle": 0,
"constructor-super": "warn",
"curly": "error",
"eol-last": ["error", "always"],
"eqeqeq": "error",
"import/no-unresolved": [2, { "commonjs": true, "amd": true }],
"import/named": 2,
"import/namespace": 2,
"import/default": 2,
"import/export": 2,
"indent": [2, "tab", { "SwitchCase": 1 }],
"keyword-spacing": ["error", { "before": true }],
"linebreak-style": ["error", "unix"],
"max-len": [
1,
120,
2,
{
"ignoreComments": true,
"ignoreUrls": true,
"ignoreTemplateLiterals": true
}
],
"no-const-assign": "warn",
"no-cond-assign": [2, "except-parens"],
"no-console": "error",
"no-else-return": "error",
"no-eq-null": "error",
"no-this-before-super": "warn",
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "all",
"ignoreRestSiblings": true,
"varsIgnorePattern": "React"
}
],
"no-underscore-dangle": 0,
"one-var": ["error", "never"],
"radix": 0,
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-indent": [2, "tab"],
"react/jsx-indent-props": [2, "tab"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"quotes": ["error", "single"],
"quote-props": [1, "consistent-as-needed"],
"semi": ["error", "always"],
"space-infix-ops": 0,
"space-before-function-paren": [
"error",
{ "anonymous": "never", "named": "never", "asyncArrow": "always" }
],
"valid-typeof": "warn"
}
}