stylelint-config-react-native-styled-components

[![NPM version](http://img.shields.io/npm/v/stylelint-config-react-native-styled-components.svg)](https://www.npmjs.org/package/stylelint-config-react-native-styled-components) [![Build Status](https://travis-ci.org/kristerkari/stylelint-config-react-nati

Usage no npm install needed!

<script type="module">
  import stylelintConfigReactNativeStyledComponents from 'https://cdn.skypack.dev/stylelint-config-react-native-styled-components';
</script>

README

stylelint-config-react-native-styled-components

NPM version Build Status Build status contributions welcome

Shareable stylelint config for styled components when using React Native.

Installation and usage

Install stylelint-config-react-native-styled-components (and stylelint + stylelint-react-native):

yarn add \
  stylelint \
  stylelint-react-native \
  stylelint-processor-styled-components \
  stylelint-config-react-native-styled-components --dev

or

npm install \
  stylelint \
  stylelint-react-native \
  stylelint-processor-styled-components \
  stylelint-config-react-native-styled-components --save-dev

Create the .stylelintrc config file (or open the existing one) add the stylelint processor and extend stylelint-config-react-native-styled-components config.

{
  "processors": ["stylelint-processor-styled-components"],
  "extends": ["stylelint-config-react-native-styled-components"]
}

License

MIT