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?
- Skips
dist,build,out, and.outputdirectories so compiled artifacts never trigger lint failures. - Drops
**/*.mapsource maps andgenerated/__generated__folders so machine-written code stays out of your reports. - Ignores Next.js
.nextoutput and the generatednext-env.d.tsso framework scaffolding does not add noise. - 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
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
| Pattern | Excludes |
|---|---|
**/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
| Pattern | Excludes |
|---|---|
**/*.map | Source map files emitted alongside output. |
**/generated/** | The generated folder of machine output. |
**/__generated__/** | The __generated__ folder of machine output. |
Next
| Pattern | Excludes |
|---|---|
**/.next/** | The Next.js .next build cache. |
**/next-env.d.ts | The generated Next.js next-env.d.ts file. |
Related
- Review the layering order in ESLint Best Practices.
- See how presets compose end to end in the Presets Overview.