node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »


@divyagnan/eslint-plugin-inline-styles npm version Build Status

A collection of Eslint rules surrounding the use of inline-styles.


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.


Add @divyagnan/inline-styles to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

    "plugins": [

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