@dendavidov/eslint-config
v2.3.36
Published
ESLint flat config for TypeScript/Node.js projects, supporting Node.js 22.x LTS.
Readme
@dendavidov/eslint-config
Opinionated ESLint flat config for TypeScript-based Node.js projects.
- ESLint 9+ flat config
- Node.js 22.x LTS or higher required
- TypeScript, Prettier, Jest, and Security rules out of the box
- Jest globals automatically available in test files
Installation
npm i -D @dendavidov/eslint-configUsage
Create eslint.config.js in the root of your project:
CommonJS:
const config = require('@dendavidov/eslint-config');
module.exports = config;ESM:
import config from '@dendavidov/eslint-config';
export default config;Or extend with your own rules:
import config from '@dendavidov/eslint-config';
export default [
...config,
{
rules: {
// Your custom rules
}
}
];Add script to package.json:
{
"scripts": {
"lint": "eslint './src/**/*.{ts,tsx,js,jsx}'"
}
}Node.js Version
This config requires Node.js 22.x LTS or higher.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
