-
Notifications
You must be signed in to change notification settings - Fork 27
Add oxlint to the repo
#102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
marcalexiei
wants to merge
12
commits into
changesets:master
Choose a base branch
from
marcalexiei:oxlint
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9ed8b2b
Add `oxlint` to the repo
marcalexiei 604909c
refine banned types related rules
marcalexiei bb5045c
refine PRSttate
marcalexiei 0cc8930
refine CI
marcalexiei 0248bdb
no explicit return type rules
marcalexiei 06d0118
remove ts-expect error directives
marcalexiei 94aa662
avoid object keys sorting
marcalexiei 44cc050
remove redundant variable
marcalexiei 1b6d461
disable jest/no-conditional-in-test
marcalexiei 8901416
disable oxlint typecheck on both local and CI env
marcalexiei eaf4e8f
consistent step names between jobs
marcalexiei 6572143
sort keys and comment refinements to match review feedback
marcalexiei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,37 @@ | ||
| { | ||
| "$schema": "./node_modules/oxlint/configuration_schema.json", | ||
| "plugins": ["typescript", "unicorn", "oxc", "vitest", "import", "promise"], | ||
| "categories": { | ||
| "correctness": "error", | ||
| "suspicious": "error", | ||
| "perf": "error", | ||
| "pedantic": "error", | ||
| }, | ||
| "options": { | ||
| "typeAware": true, | ||
| "typeCheck": false, | ||
| }, | ||
| "rules": { | ||
| "func-style": "off", | ||
| "max-lines": "off", | ||
| "max-lines-per-function": "off", | ||
| "no-implicit-coercion": "off", | ||
| "no-magic-numbers": "off", | ||
| "no-ternary": "off", | ||
| "no-warning-comments": "off", | ||
| "jest/no-conditional-in-test": "off", | ||
| "typescript/array-type": ["error", { "default": "generic", "readonly": "generic" }], | ||
| "typescript/ban-types": "off", // deprecated, replaced by no-unsafe-function-type and no-wrapper-object-types | ||
| "typescript/consistent-type-imports": "error", | ||
| "typescript/explicit-function-return-type": "off", | ||
| "typescript/explicit-module-boundary-types": "off", | ||
| "typescript/no-unsafe-type-assertion": "off", | ||
| "typescript/no-unsafe-function-type": "error", | ||
| "typescript/no-wrapper-object-types": "error", | ||
| "typescript/return-await": "off", | ||
| "typescript/strict-boolean-expressions": "off", | ||
| }, | ||
| "env": { | ||
| "builtin": true, | ||
| }, | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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,3 @@ | ||
| declare module "human-id" { | ||
| export default function humanId(options: { separator: string; capitalize: boolean }): string; | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven’t enabled the
styleandrestrictionscategories yet to keep the review scope lighter.Let me know if you’d like me to include them.
I can either add them in this PR or follow up with a separate one, whichever you prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what
stylewould bring to the table over just relying on the formatter.As to
restrictions, I briefly looked through the list and some of those rules seem to be useful while some doesn't so perhaps we should try to enable that and turn off specific rules we don't like. I'll try to make a pass through this to assess which ones we want.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I find some of the
stylerules, liketypescript/consistent-type-imports, pretty useful.I would consider give some of them a go, but we we can do it later
Sure, I'll focus on addressing your other feedbacks for now.