This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc.cjs
65 lines (64 loc) · 1.78 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
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: __dirname,
sourceType: "module",
},
plugins: ["@typescript-eslint/eslint-plugin"],
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
root: true,
env: {
node: true,
},
ignorePatterns: [".eslintrc.cjs"],
rules: {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/await-thenable": "warn",
"max-classes-per-file": "off",
"no-useless-constructor": "off",
"class-methods-use-this": "off",
eqeqeq: ["warn", "always"],
"lines-between-class-members": "off",
"no-console": [
"warn",
{
allow: ["warn", "error", "info"],
},
],
"no-continue": "off",
"no-plusplus": "off",
"no-param-reassign": [
"warn",
{
props: false,
},
],
"no-restricted-exports": "off",
"no-unused-vars": "off",
"spaced-comment": [
"warn",
"always",
{
markers: ["/"],
},
],
"arrow-body-style": "off",
"prettier/prettier": ["warn"],
},
};