forked from ThemerBot/ThemerBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
33 lines (33 loc) · 1.04 KB
/
.eslintrc.json
File metadata and controls
33 lines (33 loc) · 1.04 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
{
"env": {
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"array-callback-return": "error",
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", "always-multiline"],
"curly": ["error", "all"],
"dot-location": ["error", "property"],
"dot-notation": "error",
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"no-async-promise-executor": "error",
"no-await-in-loop": "error",
"no-dupe-else-if": "error",
"no-else-return": "error",
"no-extra-parens": ["error", "all"],
"no-lonely-if": "error",
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-const": ["warn", { "destructuring": "all" }],
"quotes": ["error", "backtick"],
"semi": ["error", "always"]
}
}