Skip to content

Changqing-JING/EslintLearn

Repository files navigation

eslint-plugin-eslint-learn

a learning project

Installation

npm install
npm run bundle

Usage

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

{
    "plugins": [
        "eslint-learn"
    ]
}

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

{
    "rules": {
        "eslint-learn/subscribe": "error"
    }
}

Test

npm run coverage

Rules

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

Additional info

Create a new eslint project

npm install -g yo generator-eslint
yo eslint:plugin
yo eslint:rule

Documentation

https://astexplorer.net/

About

example project of eslint plugin in ts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published