@jeroenpol/eslint-config
v2.1.4
Published
ESLint config made for Angular, configured by Polware
Downloads
181
Maintainers
Readme
@jeroenpol/eslint-config
Shareable ESLint flat config for TypeScript/JavaScript projects.
ESLint standard this package follows
- Uses the ESLint flat config format (
eslint.config.*). - Designed as a shareable config package imported into your project config.
- Keeps
eslintaspeerDependencies. - Ships required plugins as package
dependenciesfor easier consumer setup.
Install
npm i -D eslint typescript @jeroenpol/eslint-configUse in another project
Create eslint.config.mjs in your project root:
import config from '@jeroenpol/eslint-config';
export default config;Override rules in your project
import config from '@jeroenpol/eslint-config';
export default [
...config,
{
files: ['**/*.ts'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
},
},
];Use only part of the config
import bestPractices from '@jeroenpol/eslint-config/best-practices';
import stylistic from '@jeroenpol/eslint-config/stylistic';
export default [
...bestPractices,
...stylistic,
];Validate locally (smoke test)
Run this in this repository to verify the config can be consumed through its package export:
npm run lint:smoke