-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
40 lines (40 loc) · 956 Bytes
/
.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
{
"env": {
"es6": true,
"mocha": true
},
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"plugins": ["import", "prettier"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"settings": {
"import/extensions": [".js", ".mjs"],
"import/resolver": {
"node": {
"extensions": [".js"]
}
}
},
"rules": {
"import/no-named-as-default-member": 0,
"import/no-named-as-default": 0,
"arrow-parens": ["error", "always"],
"no-underscore-dangle": "error",
"no-console": "error",
"prettier/prettier": [
"error",
{
"semi": true,
"printWidth": 120,
"singleQuote": true,
"arrowParens": "always"
}
],
"func-names": ["error", "always"],
"comma-dangle": ["error", "never"],
"no-param-reassign": ["error", { "props": false }],
"max-len": ["error", 120, { "ignoreRegExpLiterals": true }]
}
}