bitsy eslint config for react and vue
npm install eslint-config-bitsybash
pnpm i eslint typescript eslint-config-bitsy -D
`
$3
create config file .eslintrc
`json
{
"extends": "bitsy"
}
`
- bitsy: base config, lint JS, TS, JSON
- bitsy/vue: extend base config, lint Vue3
- bitsy/react: extend base config, lint React
> please choose the suitable config for your project
> You don't need .eslintignore normally as it has been provided by the preset.
$3
`json
{
"scripts": {
"lint": "eslint . --fix"
}
}
`
- then you can use the following command to format and fix the code
`bash
pnpm lint
``