eslint-config-coorpacademy

2.0.2 • Public • Published

Coorpacademy ESLint config

This library provides a common ESLint config for all Coorpacademy projects.

It creates a list of recommended rules, which is to be enabled in each project.

How to add it to the project

npm install --save-dev eslint-config-coorpacademy

Create a .eslintrc file if you don't already have one, then create/update the extends key like the following:

  "extends"[
    "coorpacademy/core",
    "coorpacademy/ava",
    "coorpacademy/..."
  ]
}

Available rule sets are:

  • core: Core ESLint rules
  • ava: Rules for when using AVA (need to install eslint-plugin-ava)
  • es20XX: Rules for when using ES2015+ syntax
  • jsx: Rules for when using ES2015+ syntax (need to install eslint-plugin-jsx)
  • mocha: Rules for when using Mocha (need to install eslint-plugin-mocha-only)

Semantic versioning

To avoid breaking projects using this configuration, these are the rules for versioning:

  • Major
    • Add new error rules in existing configuration files
    • Update warning rules to be error rules
    • Change options for error rules that makes them more restrictive, even partially
  • Minor
    • Add new configuration files
    • Add new warning rules
    • Update error rules to be warning rules
    • Change options for error rules that makes them less restrictive
    • Change options for warning rules
    • Disable rules
  • Patch
    • Anything not mentioned previously (probably) that should not break client projects

Dependents (0)

Package Sidebar

Install

npm i eslint-config-coorpacademy

Weekly Downloads

5

Version

2.0.2

License

ISC

Last publish

Collaborators

  • jfmengels