eslint-plugin-stringlint

0.0.6 • Public • Published

eslint-plugin-stringlint

这是为项目定制的eslint插件,主要目的为禁止项目中出现的不合法字符串

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-stringlint:

npm install eslint-plugin-stringlint --save-dev

Usage

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

{
    "plugins": [
        "stringlint"
    ]
}

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

{
    "rules": {
        "stringlint/rule-name": 2
    }
}

Configurations

TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).

Rules

TODO: Run eslint-doc-generator to generate the rules list.

Package Sidebar

Install

npm i eslint-plugin-stringlint

Weekly Downloads

3

Version

0.0.6

License

ISC

Unpacked Size

9.62 kB

Total Files

12

Last publish

Collaborators

  • xufenglin