-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
163 lines (163 loc) · 4.68 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
155
156
157
158
159
160
161
162
163
{
"parser": "babel-eslint",
"rules": {
"array-callback-return": 2,
"arrow-spacing": 2,
"block-scoped-var": 2,
"camelcase": 2,
"comma-style": 2,
"complexity": ["error", { "max": 22 }],
"constructor-super": 2,
"contains/contains": [2, { "toFind": "GNU Affero General Public License", "errorMessage": "No license found"} ],
"curly": 2,
"custom/allowed-roles": 2,
"dot-notation": 2,
"import/default": "off",
"import/extensions": 2,
"import/no-unresolved": "off",
"indent": [
2,
2,
{
"SwitchCase": 1,
"FunctionExpression": {
"body": 1,
"parameters": 2
},
"MemberExpression": 1
}
],
"key-spacing": 2,
"keyword-spacing": 2,
"linebreak-style": [
2,
"unix"
],
"max-len": [2, 150, 2],
"module-name/kebab-case": 2,
"newline-per-chained-call": 2,
"no-duplicate-imports": 2,
"no-else-return": 2,
"no-eq-null": 2,
"no-extra-bind": 2,
"no-floating-decimal": 2,
"no-implicit-coercion": 2,
"no-implicit-globals": 2,
"no-invalid-this": 2,
"no-lone-blocks": 2,
"no-lonely-if": 2,
"no-loop-func": 2,
"no-magic-numbers": ["off", { "ignoreArrayIndexes": true, "ignore": [-1, 0, 1] }],
"no-multiple-empty-lines": ["error", {"max": 1}],
"no-multi-spaces": 2,
"no-native-reassign": 2,
"no-nested-ternary": 2,
"no-new-require": 2,
"no-new-wrappers": 2,
"no-param-reassign": 2,
"no-return-assign": 2,
"no-self-compare": 2,
"no-shadow": 2,
"no-shadow-restricted-names": 2,
"no-sequences": 2,
"no-spaced-func": 2,
"no-sync": 2,
"no-throw-literal": 2,
"no-trailing-spaces": [
2,
{ "skipBlankLines": true }
],
"no-unmodified-loop-condition": 2,
"no-unneeded-ternary": 2,
"no-unsafe-finally": 2,
"no-unused-expressions": 2,
"no-use-before-define": "off",
"no-useless-concat": 2,
"no-useless-computed-key": 2,
"no-useless-constructor": 2,
"no-useless-escape": 2,
"no-var": 2,
"no-void": 2,
"no-whitespace-before-property": 2,
"no-with": 2,
"object-shorthand": 2,
"padded-blocks": ["error", "never"],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-rest-params": 2,
"prefer-spread": 2,
"prefer-template": 2,
"quote-props": ["error", "as-needed"],
"quotes": [
2,
"single"
],
"react/jsx-closing-bracket-location": 2,
"react/jsx-curly-spacing": 2,
"react/jsx-equals-spacing": 2,
"react/jsx-first-prop-new-line": [2, "multiline"],
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-key": 2,
"react/jsx-no-bind": 2,
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-target-blank": 2,
"react/jsx-no-undef": 2,
"react/jsx-pascal-case": 2,
"react/jsx-space-before-closing": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/jsx-wrap-multilines": 2,
"react/no-deprecated": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-direct-mutation-state": 2,
"react/no-unknown-property": 2,
"react/prefer-es6-class": 2,
"react/prefer-stateless-function": 2,
"react/react-in-jsx-scope": 2,
"react/require-render-return": 2,
"react/self-closing-comp": 2,
"react/style-prop-object": 2,
"semi": [
2,
"always"
],
"semi-spacing": 2,
"space-before-blocks": 2,
"space-infix-ops": 2,
"yoda": 2
},
"env": {
"es6": true,
"node": true,
"browser": true,
"mocha": true
},
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"plugins": [
"contains",
"custom",
"react",
"module-name"
],
"root": true,
"settings": {
"import/ignore": [
"node_modules",
"style.css"
]
}
}