@dendavidov/eslint-config-react
v2.1.56
Published
Shareable ESLint config for React + TypeScript (ESLint 10+)
Readme
@dendavidov/eslint-config-react
Opinionated eslint-config for React.js SPA with ESLint 10+.
Includes security best-practice rules via eslint-plugin-security.
Installation
npm i -D @dendavidov/eslint-config-reactUsage
Create eslint.config.js in the root of your project:
import config from '@dendavidov/eslint-config-react';
export default config;Or extend with your own rules:
import config from '@dendavidov/eslint-config-react';
export default [
...config,
{
rules: {
// Your custom rules
},
},
];Add script to package.json:
{
"scripts": {
"lint": "eslint './src/**/*.{ts,tsx,js,jsx}'"
}
}Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
