0.19.0 • Published 5 years ago
eslint-plugin-ct.macro v0.19.0
eslint-plugin-ct.macro
Check class order for ct.macro
Installation
You'll first need to install ESLint:
yarn add eslint -D
# or via npm
$ npm i eslint --save-devNext, install eslint-plugin-ct.macro:
yarn add eslint-plugin-ct.macro -D
# or via npm
$ npm install eslint-plugin-ct.macro --save-devUsage
Add ct.macro to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"ct.macro"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"ct.macro/class-order": 2
}
}Supported Rules
ct.macro/class-order is the only rule. Set it to 1 and it will throw warnings. Setting it to 2 will throw errors.