ESLint plugin for enforcing and auto-fixing license headers in source files. Current stable version is 1.2.2. It requires ESLint >=8.41.0 and ships TypeScript type definitions. Designed as a lightweight alternative to eslint-plugin-header with support for template variables (year, author, etc.), multiple comment syntaxes (block, line), and configurable decoration. It uses ESM-only exports and has a flat config-first API.
npm install eslint-plugin-simple-headerVerified import paths — ran on the pinned version, not inferred.
ESLint flat config with simple-header plugin, using template variables for year and author.
Use flat config (eslint.config.js) with plugins object as shown in docs.
Use import instead of require; configure package.json with "type": "module" if needed.
Use object syntax: { pattern: '...', default: '...' } instead of array.Override template pattern if you need custom year validation.
Specify files pattern (e.g., ['**/*.js']) to limit scope.
Switch to import or set "type": "module" in package.json.
Use "simple-header/header": ["error", { ... }] instead of "simple-header/header": { ... }.Add templates: { year: { pattern: "\\d{4}", default: "2023" } } to the rule options.