@untile/stylelint-config-react-native

2.0.1 • Public • Published



@untile/stylelint-config-react-native

Untile-flavored stylelint config react-native.

NPM version Untile js-config is released under the MIT license. Follow @untiledigital

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

Package Sidebar

Install

npm i @untile/stylelint-config-react-native

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

9.72 kB

Total Files

11

Last publish

Collaborators

  • untile