This repository has been archived by the owner on Apr 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
94 lines (94 loc) · 3.19 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
{
"env": {
"browser": true,
"es6": true,
"jquery": true,
"node": true
},
"globals": {
"Routing": true
},
"settings": {
"import/resolver": "webpack"
},
"plugins": [
],
"extends": [
"eslint:recommended",
"airbnb"
],
"rules": {
"array-callback-return": "warn",
"arrow-parens": ["error", "always"],
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"camelcase": "warn",
"class-methods-use-this": "warn",
"consistent-return": "warn",
"curly": "error",
"default-case": "warn",
"dot-notation": "warn",
"func-names": "off",
"import/default": "off",
"import/extensions": "off",
"import/namespace": "warn",
"import/no-commonjs": "off",
"import/no-namespace": "off",
"import/no-nodejs-modules": "off",
"import/no-unresolved": "warn",
"import/prefer-default-export": "warn",
"indent": ["warn", 4, { "SwitchCase": 1, "ignoreComments": true }],
"max-len": "warn",
"no-alert": "warn",
"no-bitwise": "off",
"no-case-declarations": "off",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-constant-condition": "off",
"no-continue": "off",
"no-else-return": "off",
"no-empty": "warn",
"no-empty-function": "warn",
"no-extend-native": "warn",
"no-extra-label": "warn",
"no-global-assign": "off",
"no-implicit-globals": "warn",
"no-inner-declarations": "off",
"no-invalid-this": "warn",
"no-labels": "off",
"no-lonely-if": "warn",
"no-loop-func": "off",
"no-nested-ternary": "warn",
"no-param-reassign": "warn",
"no-plusplus": "off",
"no-restricted-globals": "warn",
"no-restricted-syntax": "off",
"no-script-url": "warn",
"no-set-state": "off",
"no-shadow": "off",
"no-template-curly-in-string": "off",
"no-this-before-super": "error",
"no-underscore-dangle": ["error", { "allow": ["_DT_RowIndex"] }],
"no-unmodified-loop-condition": "warn",
"no-unreachable": "warn",
"no-unused-labels": "warn",
"no-unused-vars": "warn",
"no-use-before-define": ["error", { "functions": false, "classes": true, "variables": true }],
"no-useless-escape": "off",
"no-var": "off",
"object-curly-newline": ["warn", { "consistent": true }],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"object-shorthand": "off",
"operator-assignment": "off",
"operator-linebreak": "warn",
"prefer-arrow-callback": "off",
"prefer-const": "warn",
"prefer-destructuring": "off",
"prefer-template": "off",
"quote-props": "warn",
"quotes": "warn",
"semi": ["error", "always"],
"semi-spacing": "warn",
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never", "asyncArrow": "always"}],
"vars-on-top": "warn"
}
}