-
Notifications
You must be signed in to change notification settings - Fork 322
/
.eslintrc.js
101 lines (101 loc) · 3.14 KB
/
.eslintrc.js
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
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": "airbnb-base",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"expect" :"readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"arrow-body-style": "off",
"arrow-spacing": ["error", { "before": true, "after": true }],
"arrow-parens": "off",
"camelcase": "off",
"class-methods-use-this": "off",
"comma-dangle": ["error", "never"],
"comma-spacing":["error", {"before": false, "after": true}],
"consistent-return": "off",
"dot-notation": "error",
"function-paren-newline": "off",
"func-names": "off",
"global-require": "off",
"guard-for-in": "off",
"indent": ["error", 2],
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/newline-after-import": "off",
"import/no-dynamic-require": "off",
"import/order": "off",
"max-len": "off",
"new-cap": "off",
"newline-per-chained-call": "off",
"no-unused-expressions": "off",
"no-useless-catch": "off",
"no-underscore-dangle": "off",
"no-bitwise": "off",
"no-buffer-constructor": "off",
"no-cond-assign": "off",
"no-confusing-arrow": "off",
"no-console": "off",
"no-dupe-keys": "error",
"no-else-return": "off",
"no-empty": "error",
"no-empty-function": "error",
"no-lonely-if": "off",
"no-loop-func": "off",
"no-mixed-operators": "off",
"no-multi-assign": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-prototype-builtins": "off",
"no-restricted-syntax": "off",
"no-return-assign": "off",
"no-shadow": "error",
"no-throw-literal": "off",
"no-unreachable": "error",
"no-unused-vars": "off",
"no-trailing-spaces": ['error',{
"skipBlankLines" : true
}],
"no-multiple-empty-lines": "off",
"no-use-before-define": "off",
"no-useless-concat": "off",
"no-useless-constructor": "off",
"no-useless-escape": "off",
"no-var": "off",
"no-void": "off",
"object-curly-spacing": "off",
"object-curly-newline": [
"error",
{
"consistent": true
}
],
"object-shorthand": "off",
"one-var": "off",
"one-var-declaration-per-line": "off",
"operator-linebreak": "off",
"operator-assignment": "off",
"prefer-object-spread": "off",
"prefer-arrow-callback": "off",
"prefer-const": "off",
"prefer-destructuring": "off",
"prefer-template": "off",
"quote-props": "off",
"quotes": "off",
"radix": "off",
"semi": "off",
"space-before-function-paren": 'off',
"space-before-blocks": "off",
"space-infix-ops": "off",
"vars-on-top": "off",
"wrap-iife": "off"
}
};