Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .oxlintrc.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@
// ===================
// Enforce top-level type specifier style
"import/consistent-type-specifier-style": ["error", "top-level"],
// ===================
// Unicorn Rules
// ===================
// Disable top-level await in src (library code should not use top-level await)
"unicorn/prefer-top-level-await": "off",
// Ensure imports are at the top
"import/first": "error",
// Disallow duplicate imports
Expand All @@ -154,5 +159,13 @@
"typescript/no-floating-promises": "warn",
},
},
{
// Examples should use top-level await for cleaner code
"files": ["examples/**/*.ts"],
"rules": {
"no-console": "off",
"unicorn/prefer-top-level-await": "error",
},
},
],
}
Loading