-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
72 lines (70 loc) · 1.78 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
module.exports = {
env: {
amd: true,
node: true,
jest: true,
es2021: true,
},
extends: ["airbnb", "plugin:node/recommended"],
parserOptions: {
ecmaVersion: 2020,
},
plugins: ["jest", "import"],
settings: {
"import/resolver": {
node: {
extensions: [".js", ".ts"],
},
},
},
rules: {
/* other */
"no-void": "off",
camelcase: "off",
"no-shadow": "off",
"no-console": "warn",
"comma-dangle": "off",
"no-return-assign": "off",
"no-param-reassign": "off",
"operator-linebreak": "off",
"no-use-before-define": "off",
"function-paren-newline": "off",
quotes: ["error", "double"],
"implicit-arrow-linebreak": "off",
"linebreak-style": ["off", "windows"],
"max-len": ["error", { ignoreComments: true, code: 90 }],
"no-unused-vars": ["warn"],
/* node */
"node/prefer-promises/dns": "error",
"node/prefer-promises/fs": "error",
"node/prefer-global/url": ["error", "always"],
"node/prefer-global/buffer": ["error", "always"],
"node/prefer-global/console": ["error", "always"],
"node/prefer-global/process": ["error", "always"],
"node/exports-style": ["error", "module.exports"],
"node/file-extension-in-import": ["error", "always"],
"node/prefer-global/url-search-params": ["error", "always"],
/* import */
"import/extensions": [
"off",
"ignorePackages",
{
ts: "never",
tsx: "never",
},
],
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": [
"warn",
{
devDependencies: [
"**/*.test.tsx",
"**/*.spec.ts",
/* webpack config */
"config/webpack/*.ts",
],
},
],
},
};