1.0.3 • Published 7 months ago

eslint-plugin-class-types v1.0.3

Weekly downloads
52
License
MIT
Repository
github
Last release
7 months ago

eslint-plugin-class-types

Check class order for when using https://github.com/fleck/class-types.macro

Installation

You'll first need to install ESLint:

yarn add eslint -D
# or via npm
$ npm i eslint --save-dev

Next, install eslint-plugin-class-types:

yarn add eslint-plugin-class-types -D
# or via npm
$ npm install eslint-plugin-class-types --save-dev

Usage

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

{
    "plugins": [
        "class-types"
    ]
}

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

{
    "rules": {
        "class-types/class-order": 2
    }
}

Supported Rules

class-types/class-order is the only rule. Set it to 1 and it will throw warnings. Setting it to 2 will throw errors.

1.0.3

7 months ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.22.0

3 years ago

0.21.0

3 years ago

0.20.0

3 years ago