-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.cjs
53 lines (53 loc) · 1.76 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2021,
sourceType: "module",
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
},
plugins: ["@typescript-eslint", "import", "no-instanceof"],
ignorePatterns: ["node_modules", "dist", "dist-cjs", "*.d.ts"],
rules: {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-use-before-define": ["error", { functions: false }],
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-explicit-any": "off",
camelcase: "off",
"class-methods-use-this": "off",
"import/extensions": ["error", "ignorePackages"],
"import/no-extraneous-dependencies": [
"error",
{ devDependencies: ["**/*.test.ts"] },
],
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"keyword-spacing": "error",
"max-classes-per-file": "off",
"max-len": "off",
"no-await-in-loop": "off",
"no-bitwise": "off",
"no-console": "off",
"no-restricted-syntax": "off",
"no-shadow": "off",
"no-continue": "off",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"no-useless-constructor": "off",
"no-return-await": "off",
"consistent-return": "off",
"no-else-return": "off",
"new-cap": ["error", { properties: false, capIsNew: false }],
},
};