-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
104 lines (99 loc) · 2.83 KB
/
.eslintrc.js
File metadata and controls
104 lines (99 loc) · 2.83 KB
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
102
103
104
module.exports = {
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"extends": [
"eslint:recommended",
],
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"settings": {
},
"rules": {
// BASIC
"require-yield": 0,
"no-this-before-super": 2,
// STYLE
"indent": [2, "tab", {"SwitchCase": 1}],
"eol-last": 2,
// "linebreak-style": ["error", "unix"],
"quotes": ["error", "double", {"allowTemplateLiterals": true}],
"semi": ["error", "always"],
"curly": [2, "all"],
"dot-notation": 2,
"arrow-parens": 0,
// "new-cap": 2,
"one-var": [2, "never"],
// spacing
"generator-star-spacing": 0,
"object-curly-spacing": 0,
"array-bracket-spacing": [2, "never"],
"computed-property-spacing": [2, "never"],
"key-spacing": [2, {"beforeColon": false, "afterColon": true, "mode": "strict"}],
"comma-spacing": [2, {
"before": false,
"after": true
}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "never",
"exports": "never",
"functions": "ignore"
}],
"space-infix-ops": 2,
"space-in-parens": [2, "never"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "always"],
"space-unary-ops": [2, {
"words": true,
"nonwords": false
}],
"spaced-comment": ["error", "always"],
"keyword-spacing": [2, {"before": true, "after": true}],
"arrow-spacing": ["error", { "before": true, "after": true }],
"object-curly-spacing": [2, "never"],
//======================================================================
"no-useless-rename": [2, {
"ignoreDestructuring": false,
"ignoreImport": false,
"ignoreExport": false
}],
"no-trailing-spaces": 2,
// "no-underscore-dangle": 2,
"no-multi-spaces": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-dupe-args": 2,
"no-sparse-arrays": 2,
"no-extra-semi": 2,
"no-func-assign": 2,
"no-spaced-func": 2,
"no-unused-vars": 1,
"no-inner-declarations": 2,
"no-console": 0,
"no-var": 1,
"no-self-assign": 2,
"no-self-compare": 2,
"no-cond-assign": 1,
"no-useless-concat": 2,
"no-useless-escape": 0,
// "no-use-before-define": 2,
"no-implicit-coercion": 0,
"no-new-func": 0,
"no-new-wrappers": 2,
// "func-names": ["error", "always"],
"brace-style": [1, "stroustrup", { "allowSingleLine": true }],
"wrap-iife": [2, "inside"],
"yoda": [2, "never"],
"prefer-const": 1,
"prefer-template": 0,
"prefer-arrow-callback": 1,
//======================================================================
"object-shorthand": 1,
}
};