forked from malmostad/cgi-idp-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
103 lines (103 loc) · 2.25 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
{
"extends": "eslint:recommended",
"globals": {
"_": false,
"_sv": false,
"jQuery": false,
"svDocReady": false,
"request": false,
"require": false,
"java": false,
"out": false,
"scriptVariables": false
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script",
"ecmaFeatures": {
"globalReturn": false,
"impliedStrict": false,
"jsx": false
}
},
"env": {
"browser": true,
"jquery": true,
"nashorn": true
},
"rules": {
"strict": [
"error",
"function"
],
"lines-around-directive": 0,
// "no-unexpected-multiline": 0,
"no-tabs": "error",
"indent": 0,
"semi": [
"error",
"always"
],
"eqeqeq": [
"error",
"always"
],
"curly": "error",
"quotes": [
1,
"single"
],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"one-var": [
"error",
"always"
],
"no-var": 0,
"one-var-declaration-per-line": [
"error",
"initializations"
],
"no-underscore-dangle": 0,
"func-names": [
"error",
"never"
],
"consistent-return": 0,
"object-shorthand": [
"error",
"never"
],
"object-curly-spacing": [
"error",
"always"
],
"comma-dangle": [
"error",
"never"
],
"no-multi-spaces": 0,
"no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true
}
],
"no-param-reassign": 0,
"prefer-rest-params": 0,
"prefer-arrow-callback": 0,
"padded-blocks": 0,
"key-spacing": 0,
"no-empty": 0,
"prefer-template": 0,
"no-prototype-builtins": 0,
"prefer-destructuring": 0,
"no-console": 0
}
}