This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
82 lines (82 loc) · 2.09 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"root": true,
"env": {
"browser": true
},
"parserOptions": {
"project": ["./tsconfig.json"]
},
"extends": [
"@qlik/eslint-config",
"@qlik/eslint-config-react/typescript",
"@qlik/eslint-config/jest",
"@qlik/eslint-config/playwright"
],
"plugins": ["prettier"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {
"max-len": 0,
"no-plusplus": 0,
"no-bitwise": 0,
"prettier/prettier": 2,
"arrow-body-style": 0,
"prefer-arrow-callback": 0,
"no-unused-expressions": 0,
"prefer-destructuring": [2, { "object": true, "array": false }],
"no-param-reassign": [2, { "props": false }],
"import/extensions": [
2,
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"@typescript-eslint/ban-ts-comment": [2, { "ts-ignore": "allow-with-description" }],
"no-shadow": 0,
"@typescript-eslint/no-shadow": 2,
"@typescript-eslint/no-unused-expressions": [1, { "allowShortCircuit": true, "allowTernary": true }],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": true
}
],
"import/prefer-default-export": 1
},
"overrides": [
{
"files": ["**/*.{spec,test}.{ts,tsx}", "jest.setup.js", "jest.config.js"],
"env": {
"browser": false,
"node": true,
"jest/globals": true
},
"globals": {
"expect": false,
"page": false,
"window": true
},
"plugins": ["jest", "react"],
"rules": {
"jest/no-disabled-tests": 1,
"jest/no-focused-tests": 2,
"jest/no-identical-title": 2,
"jest/prefer-to-have-length": 1,
"jest/valid-expect": 0, // TODO: fix this
"@typescript-eslint/unbound-method": 0 // TODO: fix this
}
}
]
}