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