A carefully crafted ESLint and Prettier configuration preset for modern JavaScript and TypeScript projects. Enforce consistent code style and catch potential errors before they make it to production.
- 🎯 Optimized for TypeScript and JavaScript
- ⚡ Works seamlessly with Prettier
- 🔧 Zero configuration needed
- 📦 Easy to extend and customize
Install dependencies:
npm i -D eslint @volt.js/eslint-config
Inside .eslintrc.json
:
{
"extends": [
"@volt.js/eslint-config/next",
"next/core-web-vitals"
]
}
Install dependencies:
npm i -D eslint @volt.js/eslint-config
Inside .eslintrc.json
:
{
"extends": "@volt.js/eslint-config/react"
}
Install dependencies:
npm i -D eslint @volt.js/eslint-config
Inside .eslintrc.json
:
{
"extends": "@volt.js/eslint-config/node"
}
This config includes Prettier settings. Add a prettier.config.js
to your project:
module.exports = require('@volt.js/eslint-config/prettier')
This configuration includes settings for:
- ESLint recommended rules
- TypeScript ESLint rules
- React and JSX/TSX support
- Import/Export rules
- Prettier integration
You can override any rules by adding them to your ESLint config file:
{
"extends": "@volt.js/eslint-config",
"rules": {
// Your custom rules here
}
}
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
MIT License - see the LICENSE file for details
Made with ❤️ by Anderson da Campo