Skip to content

CoorpAcademy/eslint-plugin-coorpacademy

Repository files navigation

Coorpacademy ESLint plugin

npm travis License: MIT

CoorpAcademy's ESLint rules and configs.

Installation

npm install --save-dev eslint @coorpacademy/eslint-plugin-coorpacademy

Usage

This package provides multiple configuration for different purposes, that you can apply together in you project as needed. To use them, set the extends key of your .eslintrc file and add @coorpacademy/coorpacademy to your list of plugins.

{
  "extends": [
    "plugin:@coorpacademy/coorpacademy/core",
    "plugin:@coorpacademy/coorpacademy/mocha",
    "plugin:@coorpacademy/coorpacademy/ava",
    "..."
  ],
  "plugins": [
    "@coorpacademy/coorpacademy"
  ]
}

Available rule sets are:

  • ava: Rules for when using AVA
  • core: Shared ESLint rules
  • es20XX: Rules for when using ES2015+ syntax
  • flowtype: Rules for when using Flowtype
  • lodash-fp: Rules for when using Lodash's FP flavor
  • mocha: Rules for when using Mocha
  • prettier: Disables all stylistic rules but adds source code auto-formatting.
  • react: Rules for when using React