-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
38 lines (38 loc) · 1 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
{
"env": {
"commonjs": true,
"es6": true,
"node": true,
"browser": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": ["plugin:node/recommended"],
"plugins": ["prettier", "mocha-no-only", "node"],
"rules": {
"prettier/prettier": ["warn"],
"no-warning-comments": [
"warn",
{"terms": ["fixme", "removeme", "xxx", "@@@"], "location": "anywhere"}
],
"no-process-exit": "off",
"no-const-assign": "error",
"no-this-before-super": "error",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": [
"warn",
{"varsIgnorePattern": "^_", "args": "all", "argsIgnorePattern": "^_"}
],
"constructor-super": "warn",
"valid-typeof": "warn",
"mocha-no-only/mocha-no-only": "warn",
"node/no-unsupported-features/es-syntax": ["error", {
"ignores": ["dynamicImport", "modules"]
}],
"node/exports-style": ["error", "module.exports"]
}
}