This commit is contained in:
2025-12-17 23:14:07 +01:00
parent 6123264353
commit 236655ba9e
4 changed files with 187 additions and 1 deletions

View File

@@ -32,6 +32,18 @@
]
},
"overrides": [
{
"files": ["**/index.ts", "**/index.tsx"],
"rules": {
"no-restricted-syntax": [
"error",
{
"selector": "Program",
"message": "index.ts files are forbidden. Use explicit file names instead (e.g., UserService.ts, not index.ts)."
}
]
}
},
{
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
@@ -95,7 +107,14 @@
}
],
"import/no-default-export": "error",
"import/no-useless-path-segments": "error"
"import/no-useless-path-segments": "error",
"no-restricted-syntax": [
"error",
{
"selector": "ExportDefaultDeclaration",
"message": "Default exports are forbidden. Use named exports instead."
}
]
}
}
]