@untile/stylelint-config-react-native
v2.0.1
Published
Untile-flavored stylelint config react
Downloads
4
Maintainers
Readme
Installation
With npm
:
npm install @untile/stylelint-config-react-native --save-dev
Or using yarn
:
yarn add @untile/stylelint-config-react-native -D
You can install the peer dependencies manually or use this command to add them to you package.json
, this makes use of the @untile/stylelint-config-react
peer dependencies:
npx install-peerdeps --dev @untile/stylelint-config-react
Setup
Create an .stylelintrc
file with the following:
{
"extends": ["@untile/stylelint-config-react-native"]
}
Usage
Add the following script
to your package.json
:
{
"scripts": {
"lint:styles": "stylelint './src/**/*.js'"
}
}
and run the linter with:
yarn lint:styles
Extending the config
Simply add a "rules"
key to your config, then add your overrides and additions there.
{
"extends": "@untile/stylelint-config-react-native",
"rules": {
"your-rules-here"
}
}