ESLint
Best Practices
Follow ESLint best practices for Nova with one flat config, ordered layers, scoped rule groups, and sensible ignores for predictable linting.
DX - Code Style
Enforce a strict, project-wide code style for JS and TS with a stylistic formatting baseline plus focused groups of core ESLint rules.
DX - Ignore
Exclude project-owned supporting files, build output, source maps, and generated files from ESLint while retaining assets documentation.
Framework - Astro
Lint Astro components with Nova's parser wiring, framework globals, processor, and curated correctness rules.
Framework - Docusaurus
Lint Docusaurus configuration and React components with framework globals and curated React, Hooks, and accessibility rules.
Framework - Express.js
Represent Express.js explicitly in a Nova ESLint stack while Node.js owns its runtime rules and globals.
Framework - Next.js
Lint Next.js and React applications with curated framework, Core Web Vitals, Hooks, and accessibility rules.
Framework - React
Lint React components with Nova-compatible React, Hooks, accessibility, browser, and modern JSX runtime rules.
Framework - Svelte
Lint Svelte components with Nova-compatible official correctness rules, TypeScript parsing, and generated-file ignores.
Framework - Vue
Lint Vue single-file components with Nova-compatible official correctness rules and TypeScript parsing.
Language - JavaScript
Enable the typescript-eslint parser for JavaScript and JSX files so Nova custom rules run on plain JS with full AST support.
Language - MDX
Lint MDX content with the eslint-mdx parser and remark plugin so docs and prose stay consistent alongside your TypeScript source.
Language - TypeScript
Enable the typescript-eslint parser and type-aware rules across all TypeScript files for consistent classes, safe overrides, and tidy declarations.
Runtime - Browser
Declare standard browser globals for JavaScript and TypeScript without exposing Node.js-only APIs.
Runtime - Cloudflare Workers
Declare Worker-compatible globals for Cloudflare Worker JavaScript and TypeScript sources.
Runtime - Edge
Declare Web Worker-compatible globals for portable edge-runtime JavaScript and TypeScript.
Runtime - Node
Lint Node.js code with eslint-plugin-n, ban raw console and process.exit, and relax hashbang checks on CLI entry points.
Runtime - Service Worker
Declare Service Worker globals for JavaScript and TypeScript event handlers and lifecycle code.
Runtime - Web Worker
Declare Web Worker globals for background JavaScript and TypeScript without browser-window APIs.
Tool - Vite
Add Node.js globals to Vite and Vitest configuration files without changing browser application globals.