Skip to content

Commit e1af67c

Browse files
build: migrate from eslint to oxlint
Consolidates the root .eslintrc.json and five nested configs (build, script, docs, default_app, spec) into a single .oxlintrc.json at the repo root. script/lint.js now shells out to the oxlint binary from node_modules/.bin instead of using the ESLint Node API, and emits GitHub Actions annotations directly via --format=github in CI (replacing the deleted eslint-stylish problem matcher). Oxlint has no markdown processor, so the ESLint-based lint of JS code blocks in docs/**/*.md is replaced with an inline regex check for bare Node.js builtin imports. This preserves the rule docs/.eslintrc.json was originally added for in #42113; the rest of the standard ruleset on docs code blocks was already being enforced in parallel by lint-roller-markdown-standard.
1 parent 64c5440 commit e1af67c

31 files changed

Lines changed: 681 additions & 2314 deletions

‎.devcontainer/devcontainer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"ms-vscode.cpptools",
3636
"mutantdino.resourcemonitor",
3737
"dsanders11.vscode-electron-build-tools",
38-
"dbaeumer.vscode-eslint",
38+
"oxc.oxc-vscode",
3939
"shakram02.bash-beautify",
4040
"marshallofsound.gnls-electron"
4141
],

‎.eslintrc.json‎

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

‎.github/problem-matchers/eslint-stylish.json‎

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

‎.github/workflows/pipeline-electron-lint.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ jobs:
7676
- name: Add problem matchers
7777
shell: bash
7878
run: |
79-
echo "::add-matcher::src/electron/.github/problem-matchers/eslint-stylish.json"
8079
echo "::add-matcher::src/electron/.github/problem-matchers/markdownlint.json"
8180
- name: Run Lint
8281
shell: bash

0 commit comments

Comments
 (0)