-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.eslintrc.js
More file actions
36 lines (31 loc) · 848 Bytes
/
.eslintrc.js
File metadata and controls
36 lines (31 loc) · 848 Bytes
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
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
},
extends: [
"eslint:recommended",
],
rules: {
"quotes": ["error", "double", { "avoidEscape": true }],
"semi": "off",
"indent": ["error", 2],
"brace-style": "error",
"key-spacing": ["error", { "align": "value" }],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": "error",
"sort-imports": ["error", { allowSeparatedGroups: true }],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
}],
},
parserOptions: {
sourceType: "module",
ecmaVersion: 2018,
},
};