0.2.0 • Published 2 years ago

eslint-plugin-custom-event-type v0.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

eslint-plugin-custom-event-type

Ensures the consistent spelling of CustomEvent types. For example all camelCase or all kebab-case.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-custom-event-type:

npm install eslint-plugin-custom-event-type --save-dev

Usage

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

{
    "plugins": [
        "custom-event-type"
    ]
}

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

{
    "rules": {
      "custom-event-type/kebab-case": [ "error" ]
    }
}

Supported Rules

  • Fill in provided rules here