Framework - Docusaurus
Exclude the Docusaurus .docusaurus build cache from ESLint so generated framework files never enter your lint reports.
Why Use This Preset?
- Ignores the
.docusauruscache directory so transient framework output does not trigger lint failures. - Keeps your lint runs focused on hand-written content and components rather than regenerated artifacts.
- Slots into the environment/framework layer so it composes cleanly after your code style and language layers.
Usage
Spread fwDocusaurus in the environment/framework slot, after the language layer and before any tool layer.
eslint.config.ts
import {
dxCodeStyle,
dxIgnore,
fwDocusaurus,
langTypescript,
} from '@cbnventures/nova/presets/eslint';
export default [
...dxIgnore,
...dxCodeStyle,
...langTypescript,
...fwDocusaurus,
];
What This Preset Configures
The preset registers no plugins or parsers and authors no rules. It contributes a single named ignore group that keeps the Docusaurus build cache out of every lint run.
Ignored files
| Pattern | Excludes |
|---|---|
./.docusaurus/** | The Docusaurus build cache directory. |
Related
- Review the layering order in ESLint Best Practices.
- See how presets compose end to end in the Presets Overview.
- Pair it with the matching Framework - Docusaurus TSConfig preset.