forked from makerinc/maker-enhance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
154 lines (154 loc) · 3.75 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"extends": ["plugin:prettier/recommended"],
"env": {
"browser": true,
"es6": true,
"jasmine": true,
"node": true
},
"plugins": ["react"],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"forOf": true,
"modules": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"restParams": true,
"rest": true,
"superInFunctions": true,
"templateStrings": true,
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"rules": {
"semi": 2,
"jsx-quotes": [2, "prefer-double"],
"eqeqeq": [2, "smart"],
"guard-for-in": 2,
"no-alert": 0,
"no-case-declarations": 0,
"no-else-return": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-fallthrough": 2,
"no-implicit-coercion": 2,
"no-implied-eval": 2,
"no-lone-blocks": 2,
"no-loop-func": 0,
"no-multi-spaces": 2,
"no-native-reassign": 2,
"no-proto": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-throw-literal": 2,
"no-unused-expressions": 0,
"no-useless-call": 2,
"no-useless-concat": 2,
"no-void": 2,
"no-with": 2,
"radix": 2,
"vars-on-top": 2,
"wrap-iife": 0,
"yoda": 2,
"no-shadow": 2,
"no-use-before-define": 0,
"no-const-assign": 2,
"no-class-assign": 2,
"prefer-template": 2,
"prefer-const": 0,
"prefer-arrow-callback": 2,
"no-var": 2,
"no-this-before-super": 2,
"no-dupe-class-members": 2,
"no-console": 0,
"react/forbid-prop-types": 0,
"react/jsx-closing-bracket-location": 0,
"react/jsx-curly-spacing": 1,
"react/jsx-handler-names": 0,
"react/jsx-indent-props": 0,
"react/jsx-no-duplicate-props": 1,
"react/jsx-no-undef": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": 1,
"react/no-direct-mutation-state": 1,
"react/no-unknown-property": 1,
"react/react-in-jsx-scope": 1,
"react/require-extension": 0,
"react/sort-comp": 1,
"react/jsx-wrap-multilines": 1,
"no-useless-escape": 0,
"no-debugger": 0,
"array-bracket-spacing": ["error", "never"],
"block-spacing": "error",
"brace-style": "error",
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"eol-last": ["error", "always"],
"func-call-spacing": ["error", "never"],
"indent": 0,
"key-spacing": [
"error",
{
"beforeColon": false,
"afterColon": true
}
],
"keyword-spacing": [
"error",
{
"before": true,
"after": true
}
],
"lines-between-class-members": ["error", "always"],
"max-statements-per-line": [
"error",
{
"max": 1
}
],
"new-cap": 0,
"new-parens": "error",
"no-bitwise": "error",
"no-lonely-if": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multi-assign": "error",
"no-multiple-empty-lines": "error",
"no-negated-condition": 0,
"no-new-object": "error",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"nonblock-statement-body-position": ["error", "beside"],
"one-var": 0,
"semi-spacing": [
"error",
{
"before": false,
"after": true
}
],
"semi-style": ["error", "last"],
"space-before-function-paren": 0,
"space-in-parens": 0,
"switch-colon-spacing": "error",
"template-tag-spacing": "error"
}
}