@w3debugger/eslint-config-minimal
v1.1.0
Published
A minimal, shareable ESLint configuration
Maintainers
Readme
eslint-config-minimal
A minimal, shareable ESLint configuration with sensible defaults.
Features
- ✅ ESLint v9+: Uses the modern flat config format
- ✅ ESLint Recommended: Built on top of
eslint:recommended - ✅ Modern JavaScript: Enforces ES2022+ best practices
- ✅ Minimal but Opinionated: Focused rules for code quality and consistency
- ✅ Universal: Supports both Node.js and browser environments
Installation
npm install --save-dev eslint-config-minimalRequirements: ESLint v9.0.0 or higher
Usage
Create an eslint.config.js file:
module.exports = [
{
...require('eslint-config-minimal'),
files: ['**/*.js'],
}
];Rules Included
This config includes rules for:
- Error Prevention: Warns about
consolestatements, preventsdebuggerandalert - Code Quality: Enforces
constoverlet, modern variable declarations - Style Consistency: 2-space indentation, single quotes, semicolons
- Best Practices: Strict equality, no eval, proper error handling
Customization
You can override any rules in your eslint.config.js:
module.exports = [
{
...require('eslint-config-minimal'),
files: ['**/*.js'],
rules: {
...require('eslint-config-minimal').rules,
'no-console': 'off', // Allow console statements
'indent': ['error', 4], // Use 4-space indentation
},
}
];License
MIT
