76 lines
1.6 KiB
JSON
76 lines
1.6 KiB
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"es2022": true,
|
|
"node": true
|
|
},
|
|
"parserOptions": {
|
|
"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", "boundaries"],
|
|
"extends": [],
|
|
"rules": {
|
|
"@typescript-eslint/no-explicit-any": "error",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
"args": "all",
|
|
"argsIgnorePattern": "^$",
|
|
"vars": "all",
|
|
"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"]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |