-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: inspector is unusual * fix: typo * chore: wip * fix: typo `=` to `===` * chore: update
- Loading branch information
Showing
12 changed files
with
1,027 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { MergeInsertions, UnionToIntersection } from '@type-challenges/utils' | ||
import type categoryRules from './../category-rules.json' | ||
|
||
export type CategoryRules<Rules extends typeof categoryRules = typeof categoryRules> = MergeInsertions<{ | ||
[K in keyof Rules]: { | ||
[KK in keyof Rules[K]]: 'off' | ||
} | ||
}> | ||
|
||
export type Categories = keyof typeof categoryRules | ||
|
||
export type OXLintRules = MergeInsertions<UnionToIntersection<CategoryRules[Categories]>> | ||
|
||
/** | ||
* References https://oxc-project.github.io/docs/guide/usage/linter.html#useful-options-and-examples | ||
*/ | ||
export type OXLintOptions = { | ||
|
||
/** | ||
* Deny the rule or category. | ||
* | ||
* @default 'correctness' | ||
*/ | ||
deny?: 'all' | Categories | Categories[] | ||
|
||
/** | ||
* Allow the rule or category. | ||
*/ | ||
allow?: (keyof OXLintRules)[] | ||
} | boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.