-
-
Notifications
You must be signed in to change notification settings - Fork 9
Migrate to oxlint #66
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
Changes from all commits
75372b9
6da52fe
f6af0bf
8467de0
5ac0b7d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "$schema": "./node_modules/oxlint/configuration_schema.json", | ||
| "options": { | ||
| "typeAware": true, | ||
| "typeCheck": true, | ||
| "maxWarnings": 0 | ||
| }, | ||
| "plugins": [ | ||
| "eslint", | ||
| "typescript", | ||
| "unicorn", | ||
| "oxc", | ||
| "import", | ||
| "node", | ||
| "vitest" | ||
| ], | ||
| "rules": { | ||
| "vitest/expect-expect": "off" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,7 +46,7 @@ | |
| "codegen:github": "graphql-codegen --config src/github/codegen.ts", | ||
| "format:check": "prettier --check \"**/*.{ts,tsx,md}\"", | ||
| "format:fix": "prettier --write \"**/*.{ts,tsx,md}\"", | ||
| "lint": "eslint . --max-warnings 0", | ||
| "lint": "oxlint", | ||
| "test:integration": "vitest -c vitest.integration.config.ts" | ||
| }, | ||
| "devDependencies": { | ||
|
|
@@ -60,14 +60,10 @@ | |
| "@octokit/core": "^6.1.2", | ||
| "@octokit/graphql": "^8.1.1", | ||
| "@octokit/graphql-schema": "^14.56.0", | ||
| "@types/eslint": "^8.56.5", | ||
| "@types/node": "^20.11.24", | ||
| "@typescript-eslint/eslint-plugin": "^7.16.0", | ||
| "@typescript-eslint/parser": "^7.16.0", | ||
| "dotenv": "^16.4.5", | ||
| "eslint": "^8.57.0", | ||
| "eslint-config-prettier": "^9.1.0", | ||
| "eslint-plugin-only-warn": "^1.1.0", | ||
| "oxlint": "^1.63.0", | ||
| "oxlint-tsgolint": "^0.22.1", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hm, I think we are still not using TS Go (deliberately) in the main repo - perhaps it would be best to match the main repo for now and upgrade all repos at once at some point
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want to enable type-aware linting so that I can find more errors, like the floating promise issue (e.g., missing For type-aware linting on ESLint, we can just enable type-aware linting with the already installed TypeScript v5 by enabling For type-aware linting on oxlint, we have to install Just to be clear, installing |
||
| "pino": "^9.3.2", | ||
| "pino-pretty": "^11.2.2", | ||
| "prettier": "^3.3.3", | ||
|
|
||
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.
Note for reviewers:
I enabled all default plugins, plus some other useful plugins. See https://oxc.rs/docs/guide/usage/linter/plugins.html#supported-plugins for a full list of plugins.
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 prefer to not have unicorn since it's a bunch of random lints but since it doesn't affect any code right now I'm fine with it.