Skip to content

Commit 0923eac

Browse files
committed
infra: migrate from eslint to oxlint
1 parent ed36f5c commit 0923eac

27 files changed

Lines changed: 562 additions & 1467 deletions

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
"customizations": {
2323
"vscode": {
2424
"extensions": [
25-
"dbaeumer.vscode-eslint",
2625
"editorconfig.editorconfig",
2726
"esbenp.prettier-vscode",
28-
"redhat.vscode-yaml",
29-
"github.vscode-pull-request-github"
27+
"github.vscode-pull-request-github",
28+
"oxc.oxc-vscode",
29+
"redhat.vscode-yaml"
3030
]
3131
}
3232
}

.github/renovate.json5

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,8 @@
3434
"rangeStrategy": "replace"
3535
},
3636
{
37-
"groupName": "eslint",
38-
"matchPackageNames": [
39-
"@eslint/**",
40-
"@stylistic/**",
41-
"eslint",
42-
"eslint-**",
43-
"typescript-eslint"
44-
]
37+
"groupName": "oxlint",
38+
"matchPackageNames": ["oxlint", "oxlint-tsgolint"]
4539
},
4640
{
4741
"groupName": "vitest",

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
run: pnpm install
143143

144144
- name: Lint
145-
run: pnpm run lint
145+
run: pnpm run lint --format=github
146146

147147
- name: Check formatting
148148
run: pnpm prettier --check .

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ node_modules/
3636
# Optional npm cache directory
3737
.npm
3838

39-
# Optional eslint cache
40-
.eslintcache
4139

4240
# Microbundle cache
4341
.rpt2_cache/
@@ -111,3 +109,4 @@ cypress/screenshots
111109
cypress/videos
112110

113111
_local/
112+
.claude/

.vscode/extensions.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"recommendations": [
3-
"dbaeumer.vscode-eslint",
43
"editorconfig.editorconfig",
54
"esbenp.prettier-vscode",
6-
"redhat.vscode-yaml",
7-
"github.vscode-pull-request-github"
5+
"github.vscode-pull-request-github",
6+
"oxc.oxc-vscode",
7+
"redhat.vscode-yaml"
88
]
99
}

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
// Enable eslint validation for js and ts files
3-
"eslint.validate": ["javascript", "typescript"],
4-
52
// Always use the `package.json`'s `typescript`
63
"typescript.tsdk": "node_modules/typescript/lib",
74

CONTRIBUTING.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This is a shorthand for running the following scripts in order:
2121
- `pnpm run generate:locales` - generates locale files
2222
- `pnpm run generate:api-docs` - generates API documentation
2323
- `pnpm run format` - runs [prettify](https://github.com/prettier/prettier) to format code
24-
- `pnpm run lint` - runs [ESLint](https://github.com/eslint/eslint) to enforce project code standards
24+
- `pnpm run lint` - runs [oxlint](https://oxc.rs/docs/guide/usage/linter) to enforce project code standards
2525
- `pnpm run build:clean` - removes artifacts from previous builds
2626
- `pnpm run build:code` - builds the code
2727
- `pnpm run test:update-snapshots` - runs all tests, and updates any snapshots if needed
@@ -301,9 +301,7 @@ function foo(options: { test: string }) {
301301
- `@internal` - If the method is not intended to be used by the end user, e.g. a helper function.
302302
- `@remark` - If the method depends on external data not being controlled by Faker, e.g. a third-party image provider.
303303

304-
> We use eslint-plugin-jsdoc to test for basic styling and sorting of doc-tags.
305-
306-
This is in place so all JSDoc tags will get sorted automatically, so you don't have to bother with it. This also means that most rules in this section can get auto fixed by the eslint formatter.
304+
> We use oxlint with the jsdoc plugin to test for basic styling of doc-tags.
307305
308306
> JSDocs should always be multiline
309307

docs/contributing/submit-a-pull-request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ It is a shorthand for running the following scripts in order:
4444
- `pnpm run generate:locales` - generates locale files
4545
- `pnpm run generate:api-docs` - generates API documentation
4646
- `pnpm run format` - runs [prettier](https://github.com/prettier/prettier) to format code
47-
- `pnpm run lint` - runs [ESLint](https://github.com/eslint/eslint) to enforce project code standards
47+
- `pnpm run lint` - runs [oxlint](https://oxc.rs/docs/guide/usage/linter) to enforce project code standards
4848
- `pnpm run build:clean` - removes artifacts from previous builds
4949
- `pnpm run build:code` - builds the code
5050
- `pnpm run test:update-snapshots` - runs all tests with [vitest](https://github.com/vitest-dev/vitest), and updates any snapshots if needed

eslint.config.ts

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

0 commit comments

Comments
 (0)