Kajoo eslint config utilizing Flow, Prettier and Jest support.
Plugins and configs used:
Additionally, it sets these environments:
{
"env": {
"browser": true,
"es6": true,
"node": true,
"react-native/react-native": true,
}
}
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
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{
"extends": "kajoo"
}
{
"extends": "kajoo",
"rules": {
"global-require": 0,
"prefer-destructuring": 0
}
}