2.1.0 • Published 4 years ago

eslint-config-kajoo v2.1.0

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

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

  • kajoo/vanilla: Plain JS
  • kajoo/react: Plain JS + React
  • kajoo/react-native: Plain JS + React + React Native
  • kajoo: Plain JS + React + React Native
{
    "extends": "kajoo"
}

Example of extending the configuration

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