Skip to content

Eslint rules for whitespaces between CJK and half-width characters

License

Notifications You must be signed in to change notification settings

chentsulin/eslint-plugin-pangu

Repository files navigation

eslint-plugin-pangu

npm build License: MIT

Installation

$ npm install --dev eslint eslint-plugin-pangu

Usage

Add pangu to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["pangu"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "pangu/prefer-spacing": "error"
  }
}

Shareable configurations

Recommended

This plugin exports a recommended configuration that enforces good testing practices.

To enable this configuration use the extends property in your .eslintrc config file:

{
  "extends": ["plugin:pangu/recommended"]
}

See ESLint documentation for more information about extending configuration files.

Credit

About

Eslint rules for whitespaces between CJK and half-width characters

Resources

License

Stars

Watchers

Forks

Packages

No packages published