-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
33 lines (33 loc) · 1008 Bytes
/
.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
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true
},
extends: ["airbnb-base"],
parserOptions: {
ecmaVersion: 12
},
plugins: ["prettier"],
rules: {
"keyword-spacing": [
"error",
{
before: true,
after: true
}
],
indent: ["error", 4],
quotes: ["error", "double"],
"comma-dangle": ["error", "never"],
semi: ["error", "never"],
"no-underscore-dangle": ["error", { allow: [] }],
"no-param-reassign": ["error", { props: false }],
"no-console": ["error", { allow: ["warn", "log", "error", "debug"] }],
"operator-linebreak": ["error", "after"],
"new-cap": ["error", { newIsCap: false }],
"max-len": ["error", { code: 230 }],
"function-paren-newline": ["warn", { minItems: 4 }],
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"]
}
}