A CLI tool (v2.1.5, updated 2024) to bootstrap linting configurations for front-end Git repositories. Integrates ESLint, Stylelint, Commitlint, npmpackagejsonlint, Prettier, and markdownlint with sensible defaults. Ships TypeScript types. Requires Node.js >=18. It is part of the create-npm-packages monorepo, designed for quick setup of consistent lint standards, though adoption is low (~100 monthly downloads).
npm install cnp-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Runs the interactive CLI to set up ESLint, Stylelint, Commitlint, and Prettier configurations for a front-end project.
Upgrade Node.js to version 18 or higher.
Use npx cnp-lint instead of npm install -g cnp-lint && cnp-lint.
Refer to configs via file path in your linter config, e.g., extends: './node_modules/cnp-lint/eslintrc.json'.
Consider using eslint-config-prettier or other widely adopted alternatives for better support.
Use file path reference in ESLint config: extends: './node_modules/cnp-lint/eslintrc.json' (or the path from your project root).
Upgrade Node.js to version 18 or later.
Use npx cnp-lint instead of global install.