eslint-plugin-sakina
v6.1.0
Published
eslint config rules for quick use
Downloads
28
Maintainers
Readme
eslint-plugin-sakina
eslint config rules for quick use.
Required:
eslint ^9
andtypescript ^5
Install
pnpm add -D eslint-plugin-sakina
Scene
normal
// eslint.config.js
module.exports = require('eslint-plugin-sakina/recommended')()
react
// eslint.config.js
module.exports = require('eslint-plugin-sakina/react')()
Options
// 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
})
Legacy version
v5.x
Migration v5 to v6: upgrade eslint to v9.
v4.x
No breaking change.
v3.x
Migration v3 to v4 :
// eslint.config.js
- module.exports = require('eslint-plugin-sakina/recommended')
+ module.exports = require('eslint-plugin-sakina/recommended')()
v2.x
@fz6m/eslint-plugin-sakina
: Old version in v2 branch.
License
MIT