Skip to main content

DX - Ignore

Exclude build output, source maps, and generated files from ESLint so linting only targets the source code you actually write.

Why Use This Preset?

  1. Skips dist, build, out, and .output directories so compiled artifacts never trigger lint failures.
  2. Drops **/*.map source maps and generated/__generated__ folders so machine-written code stays out of your reports.
  3. Ignores Next.js .next output and the generated next-env.d.ts so framework scaffolding does not add noise.
  4. Sits first in the layer order so every later preset inherits a clean file set.

Usage

Spread dxIgnore first in your flat config, ahead of the code style, language, and runtime layers.

eslint.config.ts
ts
import {
  dxCodeStyle,
  dxIgnore,
  langTypescript,
  runtimeNode,
} from '@cbnventures/nova/presets/eslint';

export default [
  ...dxIgnore,
  ...dxCodeStyle,
  ...langTypescript,
  ...runtimeNode,
];

What This Preset Configures

The preset registers no plugins, parsers, or rules — it defines three named ignore groups, each scoped with glob patterns. Because they only exclude files, the groups apply globally rather than targeting a specific set of script extensions.

Build output

PatternExcludes
**/dist/**The dist compiled output directory.
**/build/**The build compiled output directory.
**/out/**The out compiled output directory.
**/.output/**The .output compiled output directory.

Generated

PatternExcludes
**/*.mapSource map files emitted alongside output.
**/generated/**The generated folder of machine output.
**/__generated__/**The __generated__ folder of machine output.

Next

PatternExcludes
**/.next/**The Next.js .next build cache.
**/next-env.d.tsThe generated Next.js next-env.d.ts file.