/
.eslintrc.js
36 lines (36 loc) · 1.01 KB
/
.eslintrc.js
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,
es2020: true,
mocha: true,
node: true
},
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
// "standard",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:node/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
"no-new": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"node/no-unpublished-import": "off",
"node/no-missing-import": "off",
"node/no-unsupported-features/es-syntax": "off",
// "node/no-unsupported-features/es-syntax": ["error", { ignores: ["modules"] }]
camelcase: "off",
"import/no-unresolved": "off",
"node/no-extraneous-import": "off"
}
};