2.1.0 • Published 5 years ago

@selfpub/eslint-config v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@selfpub/eslint-config

NpmLicense NPM version

Selfpub’s config for eslint.

Install

Install this package, as well as the parts of Babel you wish to use:

With Yarn

$ yarn add  --dev --exact eslint @selfpub/eslint-config

With npm

npm install eslint @selfpub/eslint-config --save-dev --save-exact

Usage

Via .eslintrc (Recommended)

Then, in your Eslint configuration, extend your eslint config you’d like:

{
  "extends": "@selfpub/eslint-config"
}

A few ESLint plugins are supported as well:

Add extra exclusions for the plugins you use like so:

{
  "extends": [
    "@selfpub/eslint-config",
    "prettier/flowtype",
    "prettier/react",
    "prettier/standard",
    "prettier/unicorn"
  ]
}