-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
68 lines (68 loc) · 2.48 KB
/
.eslintrc.js
File metadata and controls
68 lines (68 loc) · 2.48 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
export default {
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"project": "./tsconfig.json" // Ensure you have a tsconfig.json file in your project
},
"plugins": [
"@typescript-eslint"
],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"require-atomic-updates": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"jest/expect-expect": [
"error",
{ "assertFunctionNames": ["expect", "fc.assert"] }
],
"testing-library/no-node-access": "off",
"testing-library/render-result-naming-convention": "off",
"yoda": "warn",
"no-sequences": "error",
"no-return-await": "warn",
"no-await-in-loop": "warn",
"no-loss-of-precision": "warn",
"no-promise-executor-return": "warn",
"no-template-curly-in-string": "warn",
"no-alert": "warn",
"no-implicit-globals": "warn",
"no-labels": "warn",
"@typescript-eslint/no-explicit-any": "off",
"no-loop-func": "warn",
"no-new-wrappers": "warn",
"no-new": "warn",
"no-useless-concat": "warn",
"radix": "error",
"wrap-iife": "off",
"@typescript-eslint/array-type": "warn",
"@typescript-eslint/method-signature-style": "error",
"curly": "warn",
"complexity": "off",
"@typescript-eslint/no-unused-vars": "warn",
"prefer-template": "warn",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/triple-slash-reference": "off"
}
},
],
"rules": {},
"ignorePatterns": [
"tslint.json", // Ignore the TSLint configuration file
"node_modules/", // Ignore the node_modules directory
"dist/", // Ignore the dist directory (commonly used for build outputs)
"*.d.ts" // Ignore TypeScript declaration files
]
};