-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.eslintrc.json
132 lines (132 loc) · 3.03 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
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
121
122
123
124
125
126
127
128
129
130
131
132
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jasmine": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"arrowFunctions": true,
"blockBindings": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"objectLiteralComputedProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"restParams": true,
"spread": true,
"templateStrings": true,
"modules": true,
"classes": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"brace-style": 2,
"camelcase": 0,
"comma-dangle": [2, "never"],
"comma-spacing": [2, {
"before": false,
"after": true
}],
"comma-style": [2, "last"],
"complexity": [1, 8],
"consistent-this": [2, "_this"],
"curly": 2,
"default-case": 2,
"dot-notation": 2,
"eol-last": 2,
"eqeqeq": 2,
"guard-for-in": 1,
"indent": ["error", 2, {
"SwitchCase": 1
}],
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": [ "error", { "after": true } ],
"linebreak-style": [ "error", "unix" ],
"new-cap": 2,
"new-parens": 2,
"no-caller": 2,
"no-console": 0,
"no-debugger": 1,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-eq-null": 0,
"no-eval": 2,
"no-func-assign": 2,
"no-implied-eval": 2,
"no-invalid-regexp": 2,
"no-mixed-spaces-and-tabs": 2,
"no-redeclare": 2,
"no-self-compare": 1,
"no-shadow-restricted-names": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-underscore-dangle": 0,
"no-unreachable": 2,
"no-unused-vars": 1,
"no-use-before-define": 2,
"no-with": 2,
"one-var": [2, "never"],
"operator-assignment": [2, "always"],
"quote-props": [2, "consistent-as-needed"],
"quotes": [
"error",
"single"
],
"radix": ["error", "as-needed"],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/prefer-stateless-function": [2, { "ignorePureComponents": true }],
"react/prop-types": "off",
"semi": [ "error", "always" ],
"semi-spacing": [2, {
"before": false,
"after": true
}],
"sort-vars": [1, {
"ignoreCase": true
}],
"space-before-function-paren": [2, {
"anonymous": "always",
"named": "never"
}],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, {
"words": true,
"nonwords": false
}],
"strict": [2, "global"],
"use-isnan": 2,
"valid-jsdoc": 1,
"yoda": [2, "never", {
"exceptRange": false
}]
},
"settings": {
"react": {
"pragma": "React",
"version": "16.4.1"
}
}
}