This repository has been archived by the owner on Dec 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
47 lines (47 loc) · 1.45 KB
/
.eslintrc.json
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
{
"plugins": ["@typescript-eslint", "jest", "testing-library"],
"extends": [
"next/core-web-vitals",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:testing-library/react",
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:testing-library/react"
],
"parser": "@typescript-eslint/parser",
"rules": {
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"no-unused-vars": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": [
"warn",
{
"additionalHooks": "(useRecoilCallback|useRecoilTransaction_UNSTABLE)"
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/ban-types": "off",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error",
"jest/expect-expect": "off",
"jest/no-commented-out-tests": "off",
"testing-library/await-async-queries": "error",
"testing-library/no-await-sync-queries": "error",
"testing-library/no-debugging-utils": "warn",
"testing-library/no-dom-import": "off",
"testing-library/no-render-in-setup": "off",
"no-restricted-imports": [
"error",
{
"patterns": ["@lib/types/bases/*"]
}
]
}
}