Skip to content

Commit 07cad02

Browse files
authored
Migrate to oxlint (#66)
* Migrate to oxlint * ci: run codegen before lint * Revert trustPolicy change * Add back `trustPolicy: no-downgrade`
1 parent 97cec67 commit 07cad02

8 files changed

Lines changed: 309 additions & 689 deletions

File tree

.eslintrc.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141

4242
- uses: ./.github/actions/ci-setup
4343

44+
- name: Codegen
45+
run: pnpm codegen:github
46+
4447
- name: Lint
4548
run: pnpm lint
4649

.oxlintrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"options": {
4+
"typeAware": true,
5+
"typeCheck": true,
6+
"maxWarnings": 0
7+
},
8+
"plugins": [
9+
"eslint",
10+
"typescript",
11+
"unicorn",
12+
"oxc",
13+
"import",
14+
"node",
15+
"vitest"
16+
],
17+
"rules": {
18+
"vitest/expect-expect": "off"
19+
}
20+
}

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"codegen:github": "graphql-codegen --config src/github/codegen.ts",
4747
"format:check": "prettier --check \"**/*.{ts,tsx,md}\"",
4848
"format:fix": "prettier --write \"**/*.{ts,tsx,md}\"",
49-
"lint": "eslint . --max-warnings 0",
49+
"lint": "oxlint",
5050
"test:integration": "vitest -c vitest.integration.config.ts"
5151
},
5252
"devDependencies": {
@@ -60,14 +60,10 @@
6060
"@octokit/core": "^6.1.2",
6161
"@octokit/graphql": "^8.1.1",
6262
"@octokit/graphql-schema": "^14.56.0",
63-
"@types/eslint": "^8.56.5",
6463
"@types/node": "^20.11.24",
65-
"@typescript-eslint/eslint-plugin": "^7.16.0",
66-
"@typescript-eslint/parser": "^7.16.0",
6764
"dotenv": "^16.4.5",
68-
"eslint": "^8.57.0",
69-
"eslint-config-prettier": "^9.1.0",
70-
"eslint-plugin-only-warn": "^1.1.0",
65+
"oxlint": "^1.63.0",
66+
"oxlint-tsgolint": "^0.22.1",
7167
"pino": "^9.3.2",
7268
"pino-pretty": "^11.2.2",
7369
"prettier": "^3.3.3",

0 commit comments

Comments
 (0)