2023-07-20 19:25:04 -04:00
|
|
|
{
|
2023-11-24 08:59:24 +11:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"project": "./tsconfig.json"
|
|
|
|
},
|
2023-07-21 12:48:23 -04:00
|
|
|
"plugins": [
|
2024-06-24 11:45:40 -04:00
|
|
|
"css-modules",
|
|
|
|
"suggest-no-throw",
|
2023-07-21 12:48:23 -04:00
|
|
|
],
|
2023-07-20 19:25:04 -04:00
|
|
|
"extends": [
|
|
|
|
"react-app",
|
2023-07-21 12:48:23 -04:00
|
|
|
"react-app/jest",
|
|
|
|
"plugin:css-modules/recommended"
|
2023-07-20 19:25:04 -04:00
|
|
|
],
|
|
|
|
"rules": {
|
2024-09-09 18:17:45 -04:00
|
|
|
"@typescript-eslint/no-floating-promises": "error",
|
|
|
|
"@typescript-eslint/no-misused-promises": "error",
|
2023-07-20 19:25:04 -04:00
|
|
|
"semi": [
|
|
|
|
"error",
|
|
|
|
"never"
|
2023-11-11 13:27:12 -08:00
|
|
|
],
|
2023-11-24 08:59:24 +11:00
|
|
|
"react-hooks/exhaustive-deps": "off",
|
2024-06-24 11:45:40 -04:00
|
|
|
"suggest-no-throw/suggest-no-throw": "warn",
|
2023-11-24 08:59:24 +11:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["e2e/**/*.ts"], // Update the pattern based on your file structure
|
|
|
|
"rules": {
|
2024-08-19 15:36:18 -04:00
|
|
|
"suggest-no-throw/suggest-no-throw": "off",
|
2024-08-21 15:02:54 +10:00
|
|
|
"testing-library/prefer-screen-queries": "off",
|
|
|
|
"jest/valid-expect": "off"
|
2023-11-24 08:59:24 +11:00
|
|
|
}
|
2024-06-24 11:45:40 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["src/**/*.test.ts"],
|
|
|
|
"rules": {
|
|
|
|
"suggest-no-throw/suggest-no-throw": "off",
|
|
|
|
}
|
2023-11-24 08:59:24 +11:00
|
|
|
}
|
|
|
|
]
|
2023-07-20 19:25:04 -04:00
|
|
|
}
|