https://github.com/divyagnan/eslint-plugin-inline-styles
Eslint rules surrounding the use of inline-styles.
https://github.com/divyagnan/eslint-plugin-inline-styles
eslint-plugin eslint-rules inline-styles units
Last synced: 2 months ago
JSON representation
Eslint rules surrounding the use of inline-styles.
- Host: GitHub
- URL: https://github.com/divyagnan/eslint-plugin-inline-styles
- Owner: divyagnan
- License: mit
- Created: 2017-06-27T23:22:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-05T22:36:49.000Z (almost 9 years ago)
- Last Synced: 2025-07-05T20:55:10.434Z (12 months ago)
- Topics: eslint-plugin, eslint-rules, inline-styles, units
- Language: JavaScript
- Homepage:
- Size: 69.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @divyagnan/eslint-plugin-inline-styles [](https://badge.fury.io/js/%40divyagnan%2Feslint-plugin-inline-styles) [](https://travis-ci.org/divyagnan/eslint-plugin-inline-styles)
A collection of Eslint rules surrounding the use of inline-styles.
## Installation
You'll first need to install [ESLint](http://eslint.org):
```
$ 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:
```json
{
"plugins": [
"@divyagnan/inline-styles"
]
}
```
Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"@divyagnan/inline-styles/units": 2
}
}
```
## Supported Rules
* [units](docs/rules/units.md) - Checks inline styles for units