-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
91 lines (91 loc) · 2.63 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
{
"env": {
"es6": true,
"jquery": false,
"browser": true,
"amd": true,
"commonjs": true,
"node": true
},
"parser": "babel-eslint",
"parserOptions": {
"allowImportExportEverywhere": true,
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"globals": {
"alert": false,
"clearTimeout": false,
"clearInterval": false,
"document": false,
"exports": false,
"module": false,
"navigator": false,
"require": false,
"setInterval": false,
"setTimeout": false,
"window": false,
"XMLHttpRequest": false
},
"rules": {
"camelcase": ["error", { "properties": "always" }],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"comma-dangle": ["error", "always-multiline"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"indent": ["error", 2, { "SwitchCase": 1 }],
"valid-jsdoc": [
"warn", {
"requireReturn": false,
"preferType": {
"Boolean": "boolean",
"String": "string",
"Number": "number",
"object": "Object",
"array": "Array",
"function": "Function",
"element": "Element",
"any": "*"
}
}
],
"block-scoped-var": "warn",
"curly": "error",
"eqeqeq": "warn",
"quotes": ["error", "single"],
"semi": "error",
"no-inline-comments": "warn",
"no-debugger": "error",
"no-console": "warn",
"no-empty": "warn",
"no-spaced-func": "warn",
"no-array-constructor": "error",
"no-undefined": "warn",
"no-undef": "error",
"no-alert": "warn",
"no-loop-func": "error",
"no-extra-semi": "error",
"no-multi-spaces": "error",
"no-new": "error",
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"no-unused-vars": "warn",
"no-use-before-define": ["error", { "functions": false }],
"object-curly-spacing": ["warn", "always"],
"space-before-blocks": "error",
"semi-spacing": ["error", { "before": false, "after": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"no-new-object": "error",
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"space-infix-ops": ["error"],
"space-before-function-paren": ["error", { "anonymous": "always", "named": "never" }],
"no-var": "error",
"no-const-assign": "error",
"object-shorthand": "error",
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
"no-duplicate-imports": "error"
}
}