-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
42 lines (42 loc) · 1023 Bytes
/
.eslintrc.js
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
module.exports = {
extends: 'loris/es5',
root: true,
env: {
browser: true,
node: true,
commonjs: true,
jquery: true,
mocha: true
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
globals: {
ns: true,
no: true,
React: true,
ReactDOM: true,
ReactDOMServer: true
},
rules: {
'space-before-function-paren': [2, { anonymous: 'never', named: 'never' }],
'object-curly-spacing': [2, 'always'],
'dot-notation': [2, { allowKeywords: true }],
'max-len': 0,
camelcase: 0,
'no-eval': 1,
'no-implicit-coercion': [2, {
"boolean": false,
"number": true,
"string": true
}],
'no-console': 0,
'wrap-iife': [2, "outside"],
'no-unused-vars': [2, { "vars": "all", "args": "none" }],
'no-invalid-this': 0
}
};