0.7.0 • Published 2 months ago

stylelint-config-react-native-styled-components v0.7.0

Weekly downloads
1,307
License
MIT
Repository
-
Last release
2 months ago

stylelint-config-react-native-styled-components

NPM version 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).

For stylelint v15+ (recommended)

yarn add \
  stylelint \
  stylelint-react-native \
  stylelint-config-react-native-styled-components \
  postcss-styled-syntax --dev

or

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

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

{
  "extends": ["stylelint-config-react-native-styled-components"],
  "customSyntax": "postcss-styled-syntax"
}

For stylelint v14 and below

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

0.7.0

2 months ago

0.6.1

8 months ago

0.6.0

11 months ago

0.5.0

2 years ago

0.4.0

3 years ago

0.3.0

4 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago