@selfpub/eslint-config

2.1.0 • Public • Published

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

  • [eslint-plugin-flowtype]
  • [eslint-plugin-react]
  • [eslint-plugin-standard]
  • [eslint-plugin-unicorn]

Add extra exclusions for the plugins you use like so:

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

Package Sidebar

Install

npm i @selfpub/eslint-config

Weekly Downloads

0

Version

2.1.0

License

MIT

Unpacked Size

27 kB

Total Files

16

Last publish

Collaborators

  • devxom