Extract persistent damage types and definitions into a leaf module so events.ts and types.ts no longer import back into persistent-damage.ts. Enable oxlint import/no-cycle (whole workspace via root tsconfig) to keep cycles out. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
29 lines
735 B
JSON
29 lines
735 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/nicolo-ribaudo/tc39-proposal-type-annotations/refs/heads/main/packages/oxlint/configuration_file_schema.json",
|
|
"plugins": ["typescript", "unicorn", "jest", "import"],
|
|
"categories": {},
|
|
"rules": {
|
|
"typescript/no-unnecessary-type-assertion": "error",
|
|
"typescript/no-deprecated": "warn",
|
|
"typescript/prefer-regexp-exec": "error",
|
|
"unicorn/prefer-string-replace-all": "error",
|
|
"unicorn/prefer-string-raw": "error",
|
|
"import/no-cycle": "error",
|
|
"jest/expect-expect": [
|
|
"error",
|
|
{
|
|
"assertFunctionNames": ["expect", "expectDomainError"]
|
|
}
|
|
]
|
|
},
|
|
"ignorePatterns": [
|
|
"dist",
|
|
"coverage",
|
|
".claude",
|
|
".specify",
|
|
"specs",
|
|
".pnpm-store",
|
|
"scripts"
|
|
]
|
|
}
|