This repository has been archived by the owner on Nov 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.json
47 lines (47 loc) · 1.51 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": ["eslint:recommended"],
"ignorePatterns": ["**/*.ejs"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"root": true,
"rules": {
"array-bracket-newline": ["warn", { "multiline": true }],
"arrow-body-style": ["warn", "as-needed"],
"arrow-parens": "warn",
"arrow-spacing": "warn",
"block-spacing": "warn",
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"camelcase": "warn",
"comma-dangle": ["warn", "never"],
"comma-spacing": "warn",
"comma-style": "warn",
"curly": ["warn", "all"],
"dot-location": ["warn", "property"],
"dot-notation": "warn",
"eol-last": "warn",
"implicit-arrow-linebreak": "warn",
"indent": ["warn", 2, { "SwitchCase": 1 }],
"key-spacing": "warn",
"keyword-spacing": "warn",
"no-extra-parens": "warn",
"no-multi-spaces": "warn",
"no-multiple-empty-lines": ["warn", { "max": 2, "maxEOF": 0 }],
"no-trailing-spaces": "warn",
"no-unused-vars": ["warn", { "ignoreRestSiblings": true }],
"no-whitespace-before-property": "warn",
"object-curly-newline": ["warn", { "multiline": true }],
"object-curly-spacing": ["warn", "always"],
"quotes": ["warn", "single"],
"semi": ["warn", "never"],
"space-before-blocks": "warn",
"space-before-function-paren": ["warn", { "anonymous": "never", "named": "never", "asyncArrow": "always" }],
"switch-colon-spacing": "warn"
}
}