eslint-config-kajoo
Kajoo eslint config utilizing Flow, Prettier and Jest support.
Plugins and configs used:
- eslint-config-prettier
- eslint-plugin-prettier
- eslint-plugin-flowtype
- eslint-plugin-jest
- eslint-plugin-react-native
- eslint-plugin-import
Additionally, it sets these environments:
Installation
yarn add --dev eslint eslint-config-kajoo
Note: We're using yarn
to install deps. Feel free to change commands to use npm
3+ and npx
if you like
Usage
Add to your eslint config (.eslintrc
, or eslintConfig
field in package.json
):
kajoo/vanilla
: Plain JSkajoo/react
: Plain JS + Reactkajoo/react-native
: Plain JS + React + React Nativekajoo
: Plain JS + React + React Native
Example of extending the configuration