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

62 lines
1.6 KiB
JSON
Raw Permalink Normal View History

2021-10-03 19:49:20 +02:00
{
2023-01-14 17:40:25 +01:00
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [
".js",
".ts"
]
},
"webpack": {
"config": "./webpack.common.js"
}
}
},
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",
2023-01-09 04:06:44 +01:00
"react-hooks/rules-of-hooks": "off", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "off", // Checks effect dependencies
2022-11-03 02:17:00 +01:00
"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
}