-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
105 lines (105 loc) · 3.31 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
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
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"jest": true,
"atomtest": true
},
"extends": [
"eslint:recommended",
"plugin:import/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"plugins": [
"@babel"
],
"settings": {
"import/core-modules": ["atom"]
},
"rules": {
"array-bracket-newline": ["error", "consistent"],
"array-bracket-spacing": ["error", "never"],
"arrow-body-style": ["error", "always"],
"arrow-parens": "error",
"arrow-spacing": "error",
"block-scoped-var": "error",
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": "error",
"comma-dangle": ["error", "only-multiline"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never", { "enforceForClassMembers": true }],
"consistent-return": "error",
"curly": "error",
"default-case-last": "error",
"default-param-last": ["error"],
"dot-location": ["error", "property"],
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always"],
"func-call-spacing": ["error", "never"],
"func-style": ["error", "declaration"],
"function-call-argument-newline": ["error", "consistent"],
"function-paren-newline": ["error", "consistent"],
"indent": ["error", 2],
"key-spacing": "error",
"keyword-spacing": "error",
"lines-between-class-members": ["error", "always"],
"new-parens": "error",
"no-array-constructor": "error",
"no-confusing-arrow": "error",
"no-console": "warn",
"no-else-return": "error",
"no-eval": "error",
"no-extra-semi": "error",
"no-lonely-if": "error",
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 0, "maxEOF": 1 }],
"no-return-assign": "error",
"no-return-await": "error",
"no-shadow": "error",
"no-tabs": "error",
"no-template-curly-in-string": "error",
"no-unneeded-ternary": "error",
"no-var": "error",
"no-warning-comments": "error",
"no-whitespace-before-property": "error",
"object-curly-newline": ["error", { "consistent": true }],
"object-curly-spacing": ["error", "always"],
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"rest-spread-spacing": ["error", "never"],
"semi": "error",
"semi-spacing": "error",
"semi-style": ["error", "last"],
"sort-imports": ["error", { "ignoreCase": true, "ignoreDeclarationSort": false }],
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "warn",
"switch-colon-spacing": "error",
"template-curly-spacing": ["error", "never"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }]
},
"overrides": [
{
"files": ["*.json"],
"parser": "jsonc-eslint-parser",
"extends": [
"plugin:jsonc/recommended-with-jsonc"
],
"rules": {
"jsonc/auto": "error"
}
}
]
}