@divyagnan/eslint-plugin-inline-styles
v3.0.0
Published
A collection of Eslint rules surrounding the use of inline-styles.
Downloads
2
Maintainers
Readme
@divyagnan/eslint-plugin-inline-styles
A collection of Eslint rules surrounding the use of inline-styles.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @divyagnan/eslint-plugin-inline-styles
:
$ npm install @divyagnan/eslint-plugin-inline-styles --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install @divyagnan/eslint-plugin-inline-styles
globally.
Usage
Add @divyagnan/inline-styles
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"@divyagnan/inline-styles"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@divyagnan/inline-styles/units": 2
}
}
Supported Rules
- units - Checks inline styles for units