Aller au contenu

Linter

Ce contenu n’est pas encore disponible dans votre langue.

The project uses Oxlint for linting and Oxfmt for formatting. Configuration lives at the repository root in .oxlintrc.json and .oxfmtrc.json.

Oxlint and Oxfmt replace ESLint and Prettier. This repository has no ESLint flat config and no Prettier config.

  • pnpm lint — run Oxlint
  • pnpm lint:fix — apply Oxlint autofixes
  • pnpm fmt — format with Oxfmt
  • pnpm fmt:check — check formatting without writing

CI runs pnpm lint. Formatting is checked with pnpm fmt:check in local/release flows.

Rules are centralized in .oxlintrc.json. Use overrides to change rules for specific files or directories.

For example, the API workspace turns off typescript/consistent-type-imports:

{
"overrides": [
{
"files": ["apps/api/**/*.ts", "apps/api/**/*.json"],
"rules": {
"typescript/consistent-type-imports": "off"
}
}
]
}

See the Oxlint config file reference for rule names and override syntax.