@kilohealth/eslint-config
Kilo.Health ESLint config for React Native, React and Node.js projects.
Getting started
Install the package
yarn add -D @kilohealth/eslint-config
Install dependencies
yarn add -D @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-plugin-import eslint-plugin-jest eslint-plugin-prettier eslint-plugin-promise eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-native eslint-plugin-react-native-a11y eslint-restricted-globals prettier @babel/core @babel/eslint-parser
**note:** you might need to setup babel config if you haven't done that yet.
Add .babelrc.json
{
"presets": [],
"plugins": []
}
Usage
Extend your eslint config in your .eslintrc
:
Node
"extends": "@kilohealth"
React
"extends": "@kilohealth/eslint-config/react"
React Native
"extends": "@kilohealth/eslint-config/react-native"
See also
For redux-saga rules see: @kilohealth/eslint-config-redux-saga