-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
42 lines (42 loc) · 1.01 KB
/
.eslintrc
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
{
"extends": ["prettier", "airbnb-base"],
"parserOptions": {
"ecmaVersion": 12
},
"env": {
"commonjs": true,
"node": true,
"es6": true
},
"rules": {
"no-unused-vars": ["error", { "lets": "all", "args": "none" }],
"func-names": ["error", "never", { "generators": "always" }],
"no-underscore-dangle": ["error", { "allow": ["_id", "._id"] }],
"no-var": ["off", "error"],
"one-var": ["off"],
"comma-dangle": ["error", "never"],
"object-curly-newline": [
"error",
{
// "ObjectExpression": "never"
"ObjectPattern": { "multiline": true },
"ImportDeclaration": "never"
// "ExportDeclaration": { "multiline": true, "minProperties": 3 }
}
],
"no-console": 0,
"indent": 0,
"linebreak-style": 0,
"prettier/prettier": [
"error",
{
"trailingComma": "none",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 4,
"semi": true
}
]
},
"plugins": ["prettier"]
}