0.0.2 • Published 3 years ago

stylelint-plugin-react-data-attr v0.0.2

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
3 years ago

eslint-plugin-react-data-attr

npm version

Stylelint plugin for data attributes with React.

Installation

$ npm install stylelint-plugin-react-data-attr --save-dev

Setup

{
  "plugins": ["stylelint-plugin-react-data-attr"],
  "rules": {
    "stylelint-plugin-react-data-attr/deny-upper-case": true,
  }
}

Supported Rules

This plugin currently supports 1 rule.

Rule: deny-upper-case

Detects that uppercase letters are used in the data attribute name.

Examples of incorrect code for this rule:

div[data-userInfo] {}

Examples of correct code for this rule:

div[data-user-info] {}

Related