3.1.1 • Published 3 months ago

@untile/stylelint-config-react-native v3.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Requirements

  • Node.js >= 20

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"
  }
}
3.1.1

3 months ago

3.1.0

3 months ago

3.0.0

4 months ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago