JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q51422F
  • License MIT

Sakina eslint config rules for quick use

Package Exports

  • eslint-plugin-sakina/package.json
  • eslint-plugin-sakina/react
  • eslint-plugin-sakina/recommended

Readme

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/...')({
  tsconfig: './tsconfig.eslint.json', // or ['./tsconfig.json', './packages/*/tsconfig.json']
  root: __dirname
})

Legacy version

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