eslint-prettier-next-15 (v0.1.11) is an automated CLI tool that configures ESLint (v9) and Prettier (v3) for Next.js 15 projects. It detects the package manager (npm, yarn, pnpm, or bun), removes old configurations, installs recommended dependencies (including @typescript-eslint, eslint-config-next, prettier plugins for import sorting and JSON formatting), and generates flat ESLint config and .prettierrc files. Designed for fresh or existing Next.js 15 apps, it enforces consistent code quality rules with zero manual setup. Updated irregularly; relies on flat config (eslint.config.mjs) and ESM-only imports.
npm install eslint-prettier-next-15Verified import paths — ran on the pinned version, not inferred.
Creates a fresh Next.js 15 app, runs the setup script, then validates linting and formatting.
Manually backup your configuration files before running the script, or reapply them after setup.
After running the script, update eslint-config-next to the latest version manually: npm install eslint-config-next@latest --save-dev
Ensure you are in the root directory of your Next.js 15 project before executing the command.
Verify that eslint and eslint-config-next are installed and compatible.
Run the command in a Next.js 15 project root after installing dependencies.
Upgrade Node.js to v18 or later, or ensure "type": "module" is in package.json.
Delete node_modules and package-lock.json, then run npm install again, or run the script again.
Add 'eslint-plugin-import' to the plugins and extend 'plugin:import/errors' or disable the rule.
No dependency data recorded yet.