-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
33 lines (33 loc) · 955 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
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": ["plugin:node/recommended"],
"plugins": ["prettier", "mocha-no-only", "node"],
"parser": "babel-eslint",
"rules": {
"prettier/prettier": ["error"],
"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": [
"error",
{"varsIgnorePattern": "^_", "args": "all", "argsIgnorePattern": "^_"}
],
"constructor-super": "warn",
"valid-typeof": "warn",
"mocha-no-only/mocha-no-only": "error",
"no-debugger": "error",
"node/exports-style": ["error", "module.exports"],
"node/no-unsupported-features/es-syntax": ["off"]
}
}