JSPM

eslint-plugin-styled-no-color-value

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 461
  • Score
    100M100P100Q108588F
  • License MIT

ESLint plugin to disallow the use of color value in styled file

Package Exports

  • eslint-plugin-styled-no-color-value

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-styled-no-color-value) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

eslint-plugin-styled-no-color-value

do not allow includes color value

Installation

You'll first need to install ESLint:

$ npm install eslint --save-dev

Next, install eslint-plugin-styled-no-color-value:

$ npm install eslint-plugin-styled-no-color-value --save-dev

Note: If you installed ESLint globally (using the -g or --global flag) then you must also install eslint-plugin-styled-no-color-value globally.

Usage

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

{
  "plugins": ["styled-no-color-value"]
}

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

{
  "rules": {
    "styled-no-color-value/no-color-value": 2
  }
}

or

{
  "extends": [
    // other
    "plugin:styled-no-color-value/recommended"
  ]
}

Supported Rules

  • no-color-value