npm

stylelint-plugin-react-data-attr

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i stylelint-plugin-react-data-attr

Weekly Downloads

0

Version

0.0.2

License

UNLICENSED

Unpacked Size

3.9 kB

Total Files

3

Last publish

Collaborators

  • progfay