1.0.0 • Published 2 years ago

@westudents/eslint-config-react-native v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

eslint-config-react-native

javascript style guide NPM version

This package provides Westudents React Native .eslintrc as an extensible shared config.

Getting Started

Install

The package requires eslint and some other dependencies to work, which you can list via:

npm info "@westudents/eslint-config-react-native@latest" peerDependencies

Install the peer dependencies:

npm i --save-dev @react-native-community/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-plugin-prettier prettier

Then install the eslint config

npm i @westudents/eslint-config-react-native

If using npm 5+, use this shortcut:

npx install-peerdeps --dev @westudents/eslint-config-react-native

Usage

Add @westudents/eslint-config-react-native to your .eslintrc as follows

module.exports = {
    ...,
    extends: '@westudents/eslint-config-react-native'
}

You can add this scripts to your package.json:

{
    ...,
    "scripts": {
        ...,
        "lint": "eslint .",
        "lint:fix": "eslint --fix"
    }
}

Badge

Feel free to add this badge to your README file.

javascript style guide

[![javascript style guide](https://img.shields.io/badge/code_style-standard--westudents-orange.svg)](https://github.com/westudents/eslint-config-node)