wisemapping-frontend/packages/webapp/.eslintrc.json

45 lines
1.2 KiB
JSON
Raw Normal View History

2021-10-03 19:49:20 +02:00
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"prettier",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
2021-10-03 19:49:20 +02:00
],
"parser": "@typescript-eslint/parser",
2021-10-03 19:49:20 +02:00
"parserOptions": {
"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/**/*"
],
"plugins": [
"react",
"@typescript-eslint",
"react-hooks"
],
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",
"@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/*"
]
}
]
2021-10-03 19:49:20 +02:00
}
2022-01-31 01:05:22 +01:00
}