Skip to content

Commit 8be9bd9

Browse files
committed
chore: migrate from eslint to oxlint
1 parent 75e89d9 commit 8be9bd9

31 files changed

Lines changed: 521 additions & 1745 deletions

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
npx prettier --write "**/*.{js,jsx,ts,tsx,md,css}" --ignore-path
4949
.prettierignore
5050

51-
- name: 🔍 Run ESLint --fix
52-
run: npm run lint -- --fix
51+
- name: 🔍 Run Oxlint --fix
52+
run: oxlint . --fix
5353

5454
- name: 💾 Commit changes
5555
run: |

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414

1515
jobs:
1616
lint:
17-
name: ESLint
17+
name: Oxlint
1818
runs-on: ubuntu-latest
1919
timeout-minutes: 5
2020
steps:

.oxlintrc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extends": ["./node_modules/@epic-web/config/oxlint-config.json"],
3+
"env": {
4+
"browser": true,
5+
"node": true
6+
},
7+
"ignorePatterns": [
8+
"**/.nx/**",
9+
"**/example/playground/**",
10+
"packages/workshop-cli/vitest.config.ts",
11+
"playwright.config.ts"
12+
],
13+
"overrides": [
14+
{
15+
"files": ["example/**"],
16+
"rules": {
17+
"no-unused-vars": "off",
18+
"vitest/no-import-node-test": "off"
19+
}
20+
}
21+
]
22+
}

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ installed in individual repositories which resemble the structure of the
2020

2121
- npm
2222
- node.js
23-
- eslint
23+
- oxlint
2424
- prettier
2525
- typescript
2626
- vitest
@@ -215,7 +215,7 @@ test('renders provided items', () => {
215215

216216
The code style guide can be found in
217217
`node_modules/@epic-web/config/docs/style-guide.md` (once dependencies have been
218-
installed). Only the most important bits are enforced by eslint.
218+
installed). Only the most important bits are enforced by oxlint.
219219

220220
- Prefer ECMAScript private fields (e.g., `#child`) over the `private` keyword
221221
for class fields.

docs/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This repository has two main CI workflows that run on pushes to `main`:
4646

4747
### Auto Format Workflow
4848

49-
- Runs Prettier and ESLint with `--fix` to automatically format code
49+
- Runs Prettier and Oxlint with `--fix` to automatically format code
5050
- Commits any formatting changes with message "chore: cleanup 🧹"
5151
- When changes are committed, triggers a new validation workflow run to ensure
5252
release happens on the formatted code

eslint.config.js

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

example/epicshop/package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/epicshop/setup.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,3 @@ if (result.status === 0) {
4545
process.exit(result.status)
4646
}
4747

48-
/*
49-
eslint
50-
"no-undef": "off",
51-
"vars-on-top": "off",
52-
*/

0 commit comments

Comments
 (0)