-
Notifications
You must be signed in to change notification settings - Fork 26
/
.eslintrc.js
63 lines (63 loc) · 1.41 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = {
'parserOptions': {
'ecmaVersion': 5
},
'env': {
'browser': true,
'jquery': true
},
'plugins': [
'compat'
],
'extends': 'eslint:recommended',
'rules': {
'compat/compat': 'error',
'valid-jsdoc': 'warn',
'default-case': 'error',
'eqeqeq': [
'error',
'smart'
],
'no-magic-numbers': [
'error',
{
'ignoreArrayIndexes': true,
'ignore': [
-1,
0,
1
]
}
],
'comma-dangle': [
'error',
'never',
],
"indent": [
"error",
4,
],
"quotes": [
"error",
"single",
],
"dot-notation": ["warn"],
"object-shorthand": ["error", "never"],
"linebreak-style": [
"error",
"unix",
],
"no-implicit-globals": "error",
"no-return-assign": "error",
"no-throw-literal": "error",
"strict": ["error", "function"],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": false,
"ArrowFunctionExpression": false
}
}]
},
};