Migrate from ESLint to oxlint for 50x performance improvement (#9682)

* Migrate from ESLint to oxlint

- Upgraded ESLint to v9 and created flat config for migration compatibility
- Used @oxlint/migrate tool to generate .oxlintrc.json configuration
- Installed oxlint v1.7.0 for 50-100x performance improvement
- Updated package.json scripts to use oxlint instead of eslint
- Updated lint-staged configuration for pre-commit hooks
- Configured ignore patterns for migrations, scripts, and build files
- Removed old ESLint dependencies and configuration files
- Maintained equivalent linting behavior with much faster execution

Performance improvement: ~17 seconds → ~350ms (48x faster)

* rules

* --prefer-offline to speed up yarn install

---------

Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom@getoutline.com>
This commit is contained in:
codegen-sh[bot]
2025-07-19 15:42:55 -04:00
committed by GitHub
parent 6e33b90f62
commit 8e4dfa65f0
8 changed files with 256 additions and 1161 deletions
+6 -6
View File
@@ -33,7 +33,7 @@ jobs:
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --frozen-lockfile --prefer-offline
lint:
needs: build
@@ -44,7 +44,7 @@ jobs:
with:
node-version: 22.x
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn install --frozen-lockfile --prefer-offline
- run: yarn lint
types:
@@ -56,7 +56,7 @@ jobs:
with:
node-version: 22.x
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn install --frozen-lockfile --prefer-offline
- run: yarn tsc
changes:
@@ -98,7 +98,7 @@ jobs:
with:
node-version: 22.x
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn install --frozen-lockfile --prefer-offline
- run: yarn test:${{ matrix.test-group }}
test-server:
@@ -130,7 +130,7 @@ jobs:
with:
node-version: 22.x
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn install --frozen-lockfile --prefer-offline
- run: yarn sequelize db:migrate
- name: Run server tests
run: |
@@ -147,7 +147,7 @@ jobs:
with:
node-version: 22.x
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn install --frozen-lockfile --prefer-offline
- name: Set environment to production
run: echo "NODE_ENV=production" >> $GITHUB_ENV
- run: yarn vite:build
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
with:
node-version: 20.x
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn install --frozen-lockfile --prefer-offline
- run: yarn lint --fix
- name: Commit changes