eslint config rules for quick use.
Required:
eslint ^9
andtypescript ^5
pnpm add -D eslint-plugin-sakina
// eslint.config.js
module.exports = require('eslint-plugin-sakina/recommended')()
// eslint.config.js
module.exports = require('eslint-plugin-sakina/react')()
// eslint.config.js
module.exports = require('eslint-plugin-sakina/...')({
// ↓ only one option can be configured:
// use `projectService`
projectService: true,
// or use `project`
tsconfig: './tsconfig.eslint.json', // or ['./tsconfig.json', './packages/*/tsconfig.json']
// ↓ config project root dir
root: __dirname
})
Migration v5 to v6: upgrade eslint to v9.
No breaking change.
Migration v3 to v4 :
// eslint.config.js
- module.exports = require('eslint-plugin-sakina/recommended')
+ module.exports = require('eslint-plugin-sakina/recommended')()
@fz6m/eslint-plugin-sakina
: Old version in v2 branch.
MIT