UNPKG

eslint-plugin-styled-component-jsx-attributes

Version:

A simple plugin for enforcing the use of the id attribute on styled components.

31 lines (29 loc) 739 B
"use strict"; var makeRule = require('./utils/makeRule'); module.exports = { rules: { 'missing-ids': makeRule('missing-ids') }, configs: { recommended: { plugins: ['styled-component-jsx-attributes'], rules: { "styled-component-jsx-attributes/missing-ids": ["error", { "target": ["none"], "targetCustom": ["button", "input"], "priorityOverSpread": false }] } }, strict: { plugins: ['styled-component-jsx-attributes'], rules: { "styled-component-jsx-attributes/missing-ids": ["error", { "target": ["none"], "targetCustom": ["button", "input"], "priorityOverSpread": false }] } } } };