Skip to content

Commit 03279b4

Browse files
authored
chore: replace ESLint with oxlint (#715)
* replace eslint with oxlint * ci: lint * ci: disable codeql
1 parent c72a65e commit 03279b4

25 files changed

Lines changed: 943 additions & 1072 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"customizations": {
66
"vscode": {
77
"extensions": [
8-
"dbaeumer.vscode-eslint",
98
"eamodio.gitlens",
109
"oxc.oxc-vscode",
1110
"github.vscode-github-actions",
1211
"yoavbls.pretty-ts-errors",
1312
"redhat.vscode-yaml",
1413
"GraphQL.vscode-graphql",
1514
"GraphQL.vscode-graphql-syntax",
16-
"vitest.explorer"
15+
"vitest.explorer",
16+
"webpro.vscode-knip"
1717
]
1818
}
1919
},

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ See implementation in [src/common/utils.ts](../src/common/utils.ts).
123123
### Code Quality
124124

125125
- **Knip**: Dead code detection ([knip.json](../knip.json)) - ignores [**generated**/](../__generated__/), fragments, wrangler, act
126-
- **ESLint**: Flat config ([eslint.config.js](../eslint.config.js)) with unicorn plugin (some rules disabled: `prefer-top-level-await`, `prevent-abbreviations`)
126+
- **Oxlint**: TypeScript linting with custom rules ([.oxlintrc.json](../.oxlintrc.json))
127127
- **TypeScript**: Strict mode with `verbatimModuleSyntax`, `noEmit`, `checkJs`
128128
- **No console.log**: Use `@actions/core` methods (`info`, `debug`, `warning`, `error`, `setFailed`)
129129

.github/dependabot.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,11 @@ updates:
3838
- '@vitest*'
3939
- 'vitest'
4040
- 'vite'
41-
eslint:
41+
ox:
4242
patterns:
43-
- '@eslint/*'
44-
- '@types/eslint'
45-
- '@typescript-eslint/*'
46-
- 'eslint'
47-
- 'eslint-config-*'
48-
- 'eslint-plugin-*'
49-
- 'globals'
50-
- 'typescript-eslint'
43+
- 'oxfmt'
44+
- 'oxlint'
45+
- 'oxlint-tsgolint'
5146
octokit:
5247
patterns:
5348
- '@octokit/*'

.github/workflows/check-dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
with:
4141
path: |
4242
~/.cache/
43-
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
43+
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/.oxlintrc.json', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
4444
- name: Rebuild the dist/ directory
4545
run: pnpm run build
4646

.github/workflows/codeql.yml

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

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
path: |
3636
~/.cache/
37-
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
37+
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/.oxlintrc.json', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
3838
- name: Create Release Pull Request
3939
id: changesets
4040
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf #v1.7.0

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
with:
3131
path: |
3232
~/.cache/
33-
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
33+
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/.oxlintrc.json', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
3434
- name: Lint
35-
run: pnpm run lint --cache-strategy content
35+
run: pnpm run lint --format=github
3636
- name: Typecheck
3737
run: pnpm run tsc:check
3838
- name: Test

.github/workflows/update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
path: |
2828
~/.cache/
29-
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
29+
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/.oxlintrc.json', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
3030
- name: cli download payloads
3131
run: pnpm run download
3232
env:
@@ -59,7 +59,7 @@ jobs:
5959
with:
6060
path: |
6161
~/.cache/
62-
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
62+
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/.oxlintrc.json', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
6363
- name: cli all
6464
run: pnpm run tsc:types
6565
- name: Create Pull Request

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ pnpm-debug.log*
2020
.DS_Store
2121
Thumbs.db
2222

23-
# eslint
24-
.eslintcache
25-
2623
# TypeScript cache
2724
*.tsbuildinfo
2825

0 commit comments

Comments
 (0)