@westudents/eslint-config-react-native
v1.0.0
Published
Westudents React Native ESLint config, following our styleguide
Downloads
3
Readme
eslint-config-react-native
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](https://img.shields.io/badge/code_style-standard--westudents-orange.svg)](https://github.com/westudents/eslint-config-node)