42 lines
1022 B
Plaintext
42 lines
1022 B
Plaintext
{
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"project": "./tsconfig.json"
|
|
},
|
|
"plugins": [
|
|
"css-modules",
|
|
"suggest-no-throw",
|
|
],
|
|
"extends": [
|
|
"react-app",
|
|
"react-app/jest",
|
|
"plugin:css-modules/recommended"
|
|
],
|
|
"rules": {
|
|
"@typescript-eslint/no-floating-promises": "error",
|
|
"@typescript-eslint/no-misused-promises": "error",
|
|
"semi": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"react-hooks/exhaustive-deps": "off",
|
|
"suggest-no-throw/suggest-no-throw": "warn",
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["e2e/**/*.ts"], // Update the pattern based on your file structure
|
|
"rules": {
|
|
"suggest-no-throw/suggest-no-throw": "off",
|
|
"testing-library/prefer-screen-queries": "off",
|
|
"jest/valid-expect": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/**/*.test.ts"],
|
|
"rules": {
|
|
"suggest-no-throw/suggest-no-throw": "off",
|
|
}
|
|
}
|
|
]
|
|
}
|