1.0.0 • Published 3 years ago
@westudents/eslint-config-react-native v1.0.0
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" peerDependenciesInstall 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 prettierThen install the eslint config
npm i @westudents/eslint-config-react-nativeIf using npm 5+, use this shortcut:
npx install-peerdeps --dev @westudents/eslint-config-react-nativeUsage
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.
[](https://github.com/westudents/eslint-config-node)1.0.0
3 years ago