mirror of
https://github.com/outline/outline.git
synced 2026-11-22 05:51:43 +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>
14 lines
525 B
JavaScript
14 lines
525 B
JavaScript
export default {
|
|
// Run prettier first for formatting, then oxlint for linting, and translation updates on changes to JS and
|
|
// TypeScript files
|
|
"**/*.[tj]s?(x)": [
|
|
(f) => `prettier --write ${f.join(" ")}`,
|
|
(f) => (f.length > 20 ? `yarn lint` : `oxlint ${f.join(" ")}`),
|
|
() => `yarn build:i18n`,
|
|
() => "git add shared/i18n/locales/en_US/translation.json",
|
|
],
|
|
|
|
// Automatically de-duplicate packages as yarn is terrible at it
|
|
"(yarn.lock|package.json)": () => `yarn yarn-deduplicate yarn.lock`,
|
|
};
|