forked from chpladmin/chpl-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
executable file
·48 lines (48 loc) · 1.48 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
{
"extends": [
"eslint:recommended",
],
"env": {
"browser": true,
"jasmine": true,
"amd": true,
"es6": true,
},
"globals": {
"module": true,
"inject": true,
"process": true,
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
},
"rules": {
"block-spacing": ["error"],
"comma-dangle": ["error", "always-multiline"],
"curly": ["error"],
"default-case": ["error"],
"eol-last": ["error"],
"eqeqeq": ["error"],
"func-call-spacing": ["error"],
"indent": ["error", 2],
"key-spacing": ["error"],
"keyword-spacing": ["error"],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-self-compare": ["error"],
"no-tabs": ["error"],
"no-trailing-spaces": ["error"],
"no-unmodified-loop-condition": ["error"],
"no-useless-return": ["error"],
"no-whitespace-before-property": ["error"],
"quotes": ["error", "single"],
"semi": ["error"],
"semi-spacing": ["error", {"before": false, "after": true}],
"sort-vars": ["error"],
"space-before-blocks": ["error"],
"space-before-function-paren": ["error"],
"space-infix-ops": ["error", { "int32Hint": false }],
"yoda": ["error", "never", { "exceptRange": true }],
}
}