-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
52 lines (50 loc) · 1.22 KB
/
Copy path.eslintrc.js
File metadata and controls
52 lines (50 loc) · 1.22 KB
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
module.exports = {
root: true,
extends: ["airbnb-typescript/base", "plugin:@typescript-eslint/recommended", "prettier"],
env: {
node: true,
},
plugins: ["@typescript-eslint", "import", "node"],
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.eslint.json"],
},
rules: {
// "node/file-extension-in-import": ["error", "never"],
"import/extensions": ["off", "always", { ignorePackages: true }],
"import/prefer-default-export": ["off"],
"no-restricted-syntax": ["off"],
"no-await-in-loop": ["off"],
"no-console": ["off"],
"import/no-cycle": ["off"],
"consistent-return": ["off"],
"class-methods-use-this": ["off"],
"@typescript-eslint/no-use-before-define": ["error", "nofunc"],
"@typescript-eslint/naming-convention": [
"error",
{
selector: "variable",
format: ["camelCase", "UPPER_CASE", "snake_case"],
leadingUnderscore: "allow",
},
{
selector: "parameter",
format: ["camelCase"],
leadingUnderscore: "allow",
},
{
selector: "typeLike",
format: ["PascalCase"],
},
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
vars: "all",
varsIgnorePattern: "^_",
args: "after-used",
argsIgnorePattern: "^_",
},
],
},
};