0.1.1 • Published 2 years ago
@oncoursesystems/eslint-config-react-native v0.1.1
@oncoursesystems/eslint-config-react-native
OnCourse Systems' React Native ESLint configuration and rules.
Installation
With npm
:
npm install eslint @oncoursesystems/eslint-config-react-native --save-dev
Or using yarn
:
yarn add eslint @oncoursesystems/eslint-config-react-native -D
Setup
Create an .eslintrc.js
file with the following:
{
"extends": ["@oncoursesystems/eslint-config-react-native"]
}
Usage
Add the following script
to your package.json
:
{
"scripts": {
"lint": "eslint ."
}
}
and run the linter with:
yarn lint