mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-15 03:27:57 +01:00
62 lines
1.6 KiB
JSON
62 lines
1.6 KiB
JSON
{
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
},
|
|
"import/resolver": {
|
|
"node": {
|
|
"extensions": [
|
|
".js",
|
|
".ts"
|
|
]
|
|
},
|
|
"webpack": {
|
|
"config": "./webpack.common.js"
|
|
}
|
|
}
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"prettier",
|
|
"plugin:react/recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"ignorePatterns": [
|
|
"**/packages/mindplot/**/*",
|
|
"**/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": "off", // Checks rules of Hooks
|
|
"react-hooks/exhaustive-deps": "off", // Checks effect dependencies
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": [
|
|
"@mui/*/*/*",
|
|
"!@mui/material/test-utils/*"
|
|
]
|
|
}
|
|
],
|
|
"react/no-unknown-property": ["error", { "ignore": ["css"] }]
|
|
}
|
|
} |