0.2.1 • Published 10 months ago
@melchor629/eslint-config v0.2.1
@melchor629/eslint-config
My personal ESLint config, which includes neostandard base config, recommended ESLint rules, personal rules for import rules, recommended typescript rules and react rules.
The goal of this project is to be used across all my projects, but anyone could potentially use it if desired. The rule selection are my own preference.
Install
Just install:
npm install -D eslint@^9 @melchor629/eslint-configUsage
Add an eslint.config.js in your project and configure:
import melchor629 from '@melchor629/eslint-config'
export default melchor629()If your project has TypeScript, it is recommended to enable the rules:
import melchor629 from '@melchor629/eslint-config'
export default melchor629({
// enables ts support
ts: true,
// enables special rules that uses ts
dirname: import.meta.dirname,
})It is also recommended to select the moduleResolution setting according to your needs if encounter issues with certain rules.
You can also provide your own rules or custom extensions:
import melchor629 from '@melchor629/eslint-config'
export default [
...melchor629(),
{
// Custom ESLint config...
},
]