2.1.0 • Published 4 years ago
eslint-config-kajoo v2.1.0
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:
{
"env": {
"browser": true,
"es6": true,
"node": true,
"react-native/react-native": true,
}
}
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
{
"extends": "kajoo"
}
Example of extending the configuration
{
"extends": "kajoo",
"rules": {
"global-require": 0,
"prefer-destructuring": 0
}
}