refactor
This commit is contained in:
@@ -8,11 +8,31 @@
|
||||
"sourceType": "module",
|
||||
"ecmaVersion": 2022
|
||||
},
|
||||
"settings": {
|
||||
"boundaries/elements": [
|
||||
{
|
||||
"type": "website",
|
||||
"pattern": "apps/website/**/*"
|
||||
},
|
||||
{
|
||||
"type": "api",
|
||||
"pattern": "apps/api/**/*"
|
||||
},
|
||||
{
|
||||
"type": "adapters",
|
||||
"pattern": "adapters/**/*"
|
||||
},
|
||||
{
|
||||
"type": "core",
|
||||
"pattern": "core/**/*"
|
||||
}
|
||||
]
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["**/*.ts", "**/*.tsx"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"plugins": ["@typescript-eslint", "boundaries"],
|
||||
"extends": [],
|
||||
"rules": {
|
||||
"@typescript-eslint/no-explicit-any": "error",
|
||||
@@ -25,6 +45,30 @@
|
||||
"varsIgnorePattern": "^$",
|
||||
"caughtErrors": "all"
|
||||
}
|
||||
],
|
||||
"boundaries/element-types": [
|
||||
2,
|
||||
{
|
||||
"default": "disallow",
|
||||
"rules": [
|
||||
{
|
||||
"from": ["website"],
|
||||
"allow": ["website"]
|
||||
},
|
||||
{
|
||||
"from": ["api"],
|
||||
"allow": ["api", "adapters", "core"]
|
||||
},
|
||||
{
|
||||
"from": ["adapters"],
|
||||
"allow": ["adapters", "core"]
|
||||
},
|
||||
{
|
||||
"from": ["core"],
|
||||
"allow": ["core"]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user