eslint-plugin-creatr
v1.0.15
Published
Custom ESLint rules for Next.js projects by Creatr
Maintainers
Readme
eslint-plugin-creatr
Custom ESLint rules for Next.js projects by Creatr.
Installation
You'll first need to install ESLint:
bun install eslint --save-devNext, install eslint-plugin-creatr:
bun install eslint-plugin-creatr --save-devUsage
Add creatr to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["creatr"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"creatr/require-use-client": "error"
}
}Or use the recommended configuration:
{
"extends": ["plugin:creatr/recommended"]
}For Next.js App Router projects:
{
"extends": ["plugin:creatr/nextjs-app-router"]
}Supported Rules
require-use-client- Require "use client" directive when using client-side features
Configurations
recommended- Basic configuration with essential rulesnextjs-app-router- Configuration optimized for Next.js App Router
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-rule) - Commit your changes (
git commit -m 'Add some amazing rule') - Push to the branch (
git push origin feature/amazing-rule) - Open a Pull Request
License
MIT
