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

61 lines
1.5 KiB
JSON
Raw Normal View History

{
"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"
],
2023-01-14 17:40:25 +01:00
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [
".js",
".ts"
]
},
"webpack": {
"config": "./webpack.common.js"
}
}
},
"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",
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/*"
]
}
]
}
}