eslint-plugin-sakina

5.0.0 • Public • Published

eslint-plugin-sakina (Flat config version)

Sakina eslint config rules for quick use.

Note

Enable autofix required vscode-eslint extension >= 2.3.0 and set "eslint.experimental.useFlatConfig": true config.

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

v4.x

No breaking change.

v3.x

Migration from v3 :

// 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

Package Sidebar

Install

npm i eslint-plugin-sakina

Weekly Downloads

65

Version

5.0.0

License

MIT

Unpacked Size

14 kB

Total Files

17

Last publish

Collaborators

  • fz6m