-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
75 lines (75 loc) · 2.35 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
{
"parserOptions": {
"ecmaVersion": 5
},
"env": {
"browser": true,
"amd": true,
"jquery": true,
"qunit": true
},
"globals": {
"Click": "readonly",
"Init": "readonly",
"Datum": "readonly",
"Value": "readonly",
"Binding": "readonly",
"Update": "readonly",
"Classes": "readonly"
},
"extends": "eslint:recommended",
"rules": {
"array-bracket-newline": ["error", { "multiline": true }],
"array-bracket-spacing": "error",
"block-spacing": "error",
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"camelcase": "error",
"comma-dangle": "error",
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"eol-last": "error",
"func-call-spacing": "error",
"func-name-matching": "error",
"func-style": ["error", "declaration"],
"indent": ["error", "tab"],
"key-spacing": "error",
"keyword-spacing": "error",
"line-comment-position": "error",
"linebreak-style": "error",
"lines-around-comment": "error",
"max-len": ["error", { "code": 90, "tabWidth": 4 }],
"max-lines": ["error", 300],
"multiline-comment-style": ["error", "separate-lines"],
"multiline-ternary": ["error", "never"],
"new-cap": "error",
"new-parens": "error",
"no-continue": "error",
"no-inline-comments": "error",
"no-lonely-if": "error",
"no-mixed-operators": "error",
"no-multi-assign": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 0, "maxEOF": 0 }],
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-unused-vars": ["error", { "vars": "local" }],
"no-whitespace-before-property": "error",
"object-curly-spacing": ["error", "always"],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"one-var": ["error", "never"],
"operator-linebreak": ["error", "after"],
"quote-props": ["error", "as-needed"],
"quotes": "error",
"semi": "error",
"semi-spacing": "error",
"semi-style": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": ["error", { "words": false }],
"spaced-comment": "error"
}
}