-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
112 lines (112 loc) · 2 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
{
"extends": "eslint:recommended",
"env": {
"es6": true,
"browser": true,
"commonjs": true
},
/* from $/Glow/DotNet/.eslintrc */
"rules": {
"block-scoped-var": 2,
"block-spacing": 2,
"camelcase": [
0,
{
"properties": "never"
}
],
"comma-dangle": [
2,
"only-multiline"
],
"curly": 2,
"dot-notation": 2,
"eqeqeq": 2,
"func-call-spacing": [
2,
"never"
],
"new-cap": [
2,
{
"newIsCap": true,
"properties": false
}
],
"no-alert": 2,
"no-bitwise": 2,
"no-caller": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxBOF": 0,
"maxEOF": 1
}
],
"no-invalid-this": 0, /* disabled until complete migration to es6 */
"no-iterator": 2,
"no-loop-func": 2,
"no-multi-spaces": 2,
"no-new": 2,
"no-proto": 2,
"no-restricted-syntax": [
2,
"WithStatement"
],
"no-script-url": 2,
"no-trailing-spaces": 2,
"no-whitespace-before-property": 2,
"object-curly-newline": [
2,
{
"consistent": true
}
],
"quotes": [
1,
"single",
{
"avoidEscape": true
}
],
"semi": 2,
"semi-spacing": 2,
"space-before-blocks": 2,
"space-before-function-paren": [
2,
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"space-in-parens": [
2,
"never"
],
"space-infix-ops": 2,
"switch-colon-spacing": 2,
"wrap-iife": [
0,
"any"
]
},
"overrides": [
{
"files": [
"js/test/**/*.js"
],
"env": {
"mocha": true
}
}
],
"ignorePatterns": [
"node_modules/",
"karma.conf.js",
"webpack.config.js"
]
}