Skip to content
All changes

FeatureEnhancement

IGNIS Lints with oxlint and Formats with oxfmt

@venizia/dev-configs

Changelog - 2026-10-16 ​

IGNIS lints with oxlint and formats with oxfmt ​

New Feature Enhancement

In one line. @venizia/dev-configs 0.3.0 ships oxlint and oxfmt configs next to the ESLint and Prettier ones, so your project can lint and format much faster.

typescript
// .configs/oxlint.config.mts
import { defineConfig } from 'oxlint';
import { oxlintConfigs } from '@venizia/dev-configs/linters';

export default defineConfig(oxlintConfigs);

On a 253-file package, linting went from 8.16s to about 0.8s with type-aware rules on, and formatting from 2.16s to 0.06s.

What changed ​

  • oxlintConfigs is a rule-for-rule port of the previous preset. Type-aware rules run through oxlint-tsgolint.
  • oxfmtConfigs holds the same seven options as prettierConfigs.
  • ESLint stays for one rule. @typescript-eslint/naming-convention has no oxlint port yet, so namingConventionConfigs runs it alone.
  • eslintConfigs is owned by IGNIS. It no longer wraps @minimaltech/eslint-node and resolves to the same config, rule for rule.
  • The TypeScript target is ES2025. tsconfig.base.json and tsconfig.common.json move from ES2024 to ES2025, target and lib, which adds the ES2025 types (Set methods, iterator helpers, Promise.try).
  • New exports. Subpaths /compilers, /formatters and /linters. From /linters: oxlintConfigs, namingConventionConfigs, ReactOxlintConfigs, reactNamingConventionConfigs, NoRestrictedPropertiesRule (bans crypto.randomUUID, which a plain-http origin does not have), and one class per rule to rebuild it with build() (EqeqeqRule, NoUnusedVarsRule, SwitchCaseBracesRule, NoRestrictedImportsRule, PreferNullishCoalescingRule, NamingConventionRule). From /formatters: oxfmtConfigs.

Who is affected ​

  • Consumers of @venizia/dev-configs. No lint action needed. eslintConfigs, prettierConfigs, ReactEslintConfigs, BunCompiler and the two tsconfig exports keep their shape, and the root import still re-exports everything.
  • Consumers of ReactEslintConfigs. The preset no longer relaxes the base for a UI: no-floating-promises, no-void, no-use-before-define, no-shadow and no-unused-vars are errors again, exhaustive-deps is an error, and crypto.randomUUID is banned. Await or .catch() every promise a handler starts, and declare a component above its first use.
  • Consumers that extend tsconfig.common.json. Your target becomes ES2025. Your runtime needs ES2025 support (Bun 1.4 and Node 24 have it); a bundler that rejects ES2025 needs its own target.
  • Consumers who want the faster tools. Switch with the steps below.

Switch to oxlint and oxfmt ​

  1. Replace the tools:

    bash
    bun remove prettier
    bun add -d @venizia/dev-configs oxlint oxlint-tsgolint oxfmt eslint
  2. Create .configs/oxlint.config.mts, .configs/oxfmt.config.mts and .configs/eslint.config.mjs with the three snippets in the package README. Keep the ESLint config .mjs: ESLint loads a TypeScript config only through jiti, one more dependency.

  3. Update your scripts to pass -c:

    json
    {
      "lint": "oxlint -c .configs/oxlint.config.mts --deny-warnings && eslint -c .configs/eslint.config.mjs . && oxfmt -c .configs/oxfmt.config.mts --check \"**/*.{ts,tsx,mts,js,mjs}\"",
      "lint:fix": "oxlint -c .configs/oxlint.config.mts --fix && eslint -c .configs/eslint.config.mjs . --fix && oxfmt -c .configs/oxfmt.config.mts \"**/*.{ts,tsx,mts,js,mjs}\""
    }
  4. Delete .prettierrc.mjs, .prettierignore and the old eslint.config.mjs.

  5. Remove "./*.config.*" and ".prettierrc.*" from your tsconfig.json include. Keep tsconfig.json at the root.

  6. Run lint:fix once.

Details ​

  • Config location. No tool finds .configs/ on its own, so every call passes -c .configs/<tool>.config.mts. An ignorePatterns entry inside .configs/ resolves against .configs/, so it matches nothing; dist and node_modules are skipped through .gitignore.
  • Warnings. oxlint exits 0 on warnings only, so pass --deny-warnings to fail on a warning, as ESLint did.
  • Format drift. oxfmt breaks long union types with a leading | per line, where Prettier does not. Expect one round of reformatting.
  • Unused disable comments. Drop --report-unused-disable-directives. oxlint does not run the naming-convention rule, so it would flag every naming disable comment as unused.
  • Stricter checks. oxlint caught four real no-unsafe-optional-chaining bugs that ESLint missed: (x?.y as T).z still throws when x is undefined.
  • Not ported. prefer-optional-chain (an oxlint nursery rule) and no-invalid-this (covered by noImplicitThis). n/prefer-node-protocol became unicorn/prefer-node-protocol.
  • Peer dependencies. oxlint (>=1.88.0), oxfmt (>=0.73.0) and oxlint-tsgolint (>=7.0.2004) are new optional peers. typescript-eslint is a new dependency.
  • Upgrading the range. 0.3.0 is a minor bump on a 0.x package, so a ^0.2.x range does not reach it. Write ^0.3.0.
  • TypeScript. oxlint-tsgolint is built on TypeScript 7 and works in a project on 6.
  • Build. tsc-alias must read the root tsconfig.json, not a .configs/ one, or @/... imports stay unrewritten in dist.

See Tooling Configuration for the full setup and rule customization.