kajoo / eslint-config-kajoo

ESLint preset extending Babel, Flow, Prettier and Jest
MIT License
0 stars 0 forks source link
eslint eslint-config eslint-plugin

eslint-config-kajoo

Greenkeeper badge Build Status

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,
  }
}

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):

{
    "extends": "kajoo"
}

Example of extending the configuration

{
    "extends": "kajoo",
    "rules": {
        "global-require": 0,
        "prefer-destructuring": 0
    }
}