2022-10-31 06:17:01 +01:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es2021": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"prettier",
|
|
|
|
"plugin:react/recommended",
|
2023-01-08 06:10:13 +01:00
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:cypress/recommended"
|
|
|
|
|
2022-10-31 06:17:01 +01:00
|
|
|
],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"ecmaVersion": 12,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"ignorePatterns": [
|
|
|
|
"**/dist/**/*"
|
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
"react",
|
|
|
|
"@typescript-eslint",
|
|
|
|
"react-hooks"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/no-explicit-any": "error",
|
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "error",
|
|
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
|
|
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
|
2022-11-03 02:17:00 +01:00
|
|
|
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
|
|
|
|
"no-restricted-imports": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"patterns": [
|
|
|
|
"@mui/*/*/*",
|
|
|
|
"!@mui/material/test-utils/*"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2022-10-31 06:17:01 +01:00
|
|
|
}
|
|
|
|
}
|