-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
59 lines (59 loc) · 2.24 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"env": {
"node": true,
"es6": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2022,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "import", "eslint-plugin-import"],
"rules": {
"no-console": "off",
"no-empty": "off",
"no-implicit-coercion": "error",
"arrow-body-style": ["error", "as-needed"],
"curly": ["error", "all"],
"no-return-await": "error",
"prefer-regex-literals": "error",
"prefer-promise-reject-errors": "error",
"require-atomic-updates": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": ["error", { "functions": false }],
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/prefer-ts-expect-error": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
"@typescript-eslint/prefer-as-const": "error",
"@typescript-eslint/prefer-reduce-type-parameter": "error",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/no-duplicate-enum-values": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "(^_|[iI]gnored)",
"argsIgnorePattern": "(^_|[iI]gnored)",
"ignoreRestSiblings": true
}
],
"import/extensions": ["error", "ignorePackages"]
}
}