3.1.1 • Published 8 months ago
@untile/stylelint-config-react-native v3.1.1
Requirements
- Node.js >= 20
Installation
With npm:
npm install @untile/stylelint-config-react-native --save-devOr using yarn:
yarn add @untile/stylelint-config-react-native -DYou 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-reactSetup
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:stylesExtending 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"
}
}