TSLint rules for React Native development
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.npmignore
.npmrc
.prettierrc
README.md
noUnusedStylesRule.ts
package-lock.json
package.json
tsconfig.json
tslint-react-native.json

README.md

tslint-react-native

This package includes TSLint rules for React Native development

Available rules

  • no-unused-styles shows unused styles created with StyleSheet.create

Usage

  1. Install as dev dependency with npm i -D tslint-react-native
  2. In your tslint.json add tslint-react-native as array item to extends
  3. Enable the rules you want like in code example below

Example config for tslint.json:

{
  "extends": ["tslint-react-native"],
  "rules": {
    "no-unused-styles": true
  }
}