Skip to main content

@pagopa/oxlint-config

@pagopa/oxlint-config is PagoPA's shared Oxlint configuration. It expresses the DX lint baseline as native Oxlint rules, so a workspace can adopt the same rule set by installing one package, and it supersedes @pagopa/eslint-config, which moved to hold.

The package ships two JSON configurations: base.json for Vitest workspaces and base-jest.json for Jest ones. Oxlint only accepts file paths in extends, so a workspace references the configuration through its installed path instead of a package specifier.

Use cases​

  • Enforcing a consistent set of lint rules across TypeScript and JavaScript repositories
  • Adopting Oxlint without rewriting the DX rule set by hand
  • Linting a workspace substantially faster than with the frozen ESLint configuration
  • Sharing one baseline between a workspace, its packages, and its CI checks

DX ecosystem​

The package is published on GitHub Packages, not on npmjs.com: install it through the gh: alias after logging in to that registry.

Reference of usage in our organization​