@kitbag/eslint-config
v1.0.2
Published
The official eslint-config for Kitbag
Downloads
406
Readme
@kitbag/eslint-config
The official eslint-config for Kitbag
Installation
# bun
bun add @kitbag/eslint-config
# yarn
yarn add @kitbag/eslint-config
# npm
npm install @kitbag/eslint-config
Configuration
// eslint.config.js
import kitbag from '@kitbag/eslint-config'
export default [
...kitbag
]
Linting
You'll still install eslint (>= 9.0) and run linting eslint
command
// package.json
{
"scripts": {
"lint": "eslint ./src",
"lint:fix": "eslint ./src --fix",
}
}
Overriding Rules
// eslint.config.js
import kitbag from '@kitbag/eslint-config'
export default [
...kitbag,
{
rules: {
semi: [2, "always"]
}
}
]