Front End Engineer. Loves Web, JavaScript, Coffee, Food, Aquascaping and Discus.
See more
Notice that we’re using .attrs() to provide default attributes to the input element that we’re creating with styled-components. Adding a type attribute of checkbox is what makes the input a chec…
.attrs()
input
styled-components
type
checkbox
…using JSX via RuleTester.setDefaultConfig. This will allow our rule to be tested with a parser that knows about JSX.
RuleTester.setDefaultConfig