-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
153 lines (153 loc) · 3.31 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
extends: "eslint:recommended",
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 2017,
sourceType: "module"
},
rules: {
eqeqeq: "error",
"no-extra-parens": [
"error",
"all",
{
nestedBinaryExpressions: false
}
],
"no-inner-declarations": ["error", "both"],
"valid-jsdoc": "error",
"block-scoped-var": "error",
"consistent-return": "error",
"default-case": "error",
"dot-notation": "error",
"no-alert": "error",
"no-case-declarations": "error",
"no-eq-null": "warn",
"no-eval": "warn",
"no-extra-bind": "warn",
"no-floating-decimal": "warn",
"no-implicit-globals": "warn",
"no-lone-blocks": "warn",
"no-loop-func": "warn",
"no-multi-spaces": "warn",
"no-new": "warn",
"no-new-func": "warn",
"no-new-wrappers": "warn",
"no-self-compare": "warn",
"no-unused-expressions": "warn",
"no-useless-call": "warn",
"no-useless-concat": "warn",
"vars-on-top": "warn",
"no-use-before-define": [
"warn",
{
functions: false
}
],
"array-bracket-spacing": "warn",
"block-spacing": ["warn", "never"],
"brace-style": "warn",
camelcase: "warn",
"comma-dangle": "warn",
"comma-spacing": "warn",
"comma-style": "warn",
"computed-property-spacing": "warn",
"eol-last": "warn",
indent: [
"warn",
2,
{
SwitchCase: 1
}
],
"key-spacing": "warn",
"keyword-spacing": "warn",
"linebreak-style": "warn",
"max-len": [
"warn",
120,
{
ignoreTrailingComments: true,
ignoreUrls: true,
ignoreStrings: true
}
],
"new-cap": [
"warn",
{
capIsNew: false
}
],
"no-lonely-if": "warn",
"no-multiple-empty-lines": [
"warn",
{
max: 1,
maxEOF: 1
}
],
"no-plusplus": "warn",
"func-call-spacing": "error",
"no-trailing-spaces": "warn",
"no-unneeded-ternary": "warn",
"no-nested-ternary": "error",
"no-whitespace-before-property": "warn",
"object-curly-spacing": "warn",
"one-var": ["warn", "never"],
"one-var-declaration-per-line": "warn",
"operator-linebreak": ["warn", "after"],
"quote-props": ["warn", "as-needed"],
quotes: [
"error",
"single",
{
avoidEscape: true,
allowTemplateLiterals: true
}
],
"semi-spacing": "warn",
semi: "warn",
"space-before-blocks": "warn",
"space-in-parens": "warn",
"space-infix-ops": "warn",
"arrow-parens": "warn",
"arrow-spacing": "warn",
"no-duplicate-imports": "warn",
"template-curly-spacing": "warn",
curly: "error",
"no-var": "warn",
"prefer-const": "warn",
"space-before-function-paren": [
"warn",
{
named: "never"
}
]
},
overrides: [
// node files
{
files: [
".template-lintrc.js",
"ember-cli-build.js",
"testem.js",
"blueprints/*/index.js",
"config/**/*.js",
"lib/*/index.js"
],
parserOptions: {
sourceType: "script",
ecmaVersion: 2015
},
env: {
browser: false,
node: true
}
}
]
};