mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +03:00
* 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>
31 lines
728 B
YAML
31 lines
728 B
YAML
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
run-linters:
|
|
if: startsWith(github.actor, 'codegen-sh')
|
|
name: Run linters
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
# Give the default GITHUB_TOKEN write permission to commit and push the
|
|
# added or changed files to the repository.
|
|
contents: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20.x
|
|
cache: "yarn"
|
|
- run: yarn install --frozen-lockfile --prefer-offline
|
|
- run: yarn lint --fix
|
|
|
|
- name: Commit changes
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
|
with:
|
|
commit_message: "Applied automatic fixes"
|