Skip to content

migrate lint stack to OXC tools#66

Merged
ornicar merged 1 commit intolichess-org:masterfrom
Simek:migrate-lint-stack-to-oxc-tools
Mar 31, 2026
Merged

migrate lint stack to OXC tools#66
ornicar merged 1 commit intolichess-org:masterfrom
Simek:migrate-lint-stack-to-oxc-tools

Conversation

@Simek
Copy link
Copy Markdown
Contributor

@Simek Simek commented Mar 31, 2026

Why

Migrate to lint stack based on OXC tools (oxlint + oxfmt) to mach current lila setup, and for small performance gains.

How

Use the same lint config as chessground with restricted globals from lila, match format config to previous Prettier setup. Update package scripts to use new tools. Remove ESLint and Prettier dependencies and configs.

Most of the changes are import related - entries sorting and type modifier additions to improve stripping and fix dependency cycle warnings. Besides that most of the warning were about lack of strict equality checks and existence filters.

Test plan

pnpm lint, pnpm format does not out any errors. pnpm test, pnpm bundle and pnpm demo works as expected.

Preview

Screenshot 2026-03-31 at 10 24 22

@ornicar ornicar merged commit afe5b54 into lichess-org:master Mar 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants