Opinionated architectural ESLint rules for TypeScript projects with React support. Current stable version 0.0.23, updated irregularly. Ships type definitions. Requires ESLint ^9.0.0 and TypeScript >=5.0.0. Key differentiators: prescriptive flat configs (core and React) that bundle recommended TypeScript-ESLint rules, functional programming rules, and custom rules for naming conventions (e.g., no TitleCase/titleCase props, no custom kebab-case props, restrict set* prefix to useState setters). Automatically enables TypeScript project service for type-aware rules. Focused on enforcing consistent prop naming and architectural boundaries.
npm install eslint-plugin-sweepitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up eslint-plugin-sweepit with flat config, including core and React configs and rule overrides.
Migrate to flat config (eslint.config.js). See ESLint migration guide.
Disable projectService in parserOptions if performance is an issue: set parserOptions.projectService to false.
Use consistent kebab-case rule keys as specified in the plugin.
Run `npm install --save-dev eslint-plugin-sweepit eslint typescript`.
Import sweepit and spread configs into the config array: `import sweepit from 'eslint-plugin-sweepit'; export default [...sweepit.configs.core];`
Use default import: `import sweepit from 'eslint-plugin-sweepit';`.