@eventmobi/eslint-config

0.17.0 • Public • Published

eslint-config-eventmobi

EventMobi's base ESLint configuration. Most rules are inherited from the excellent eslint-config-airbnb, with some rules customized for EventMobi.

Install

Because of this you must install the peer dependencies of the configuration. When you update eslint-config-eventmobi you may get peer dependency errors - running this command again should update the modules. Note that this assumes you are installing the latest version. If not, change latest to whatever version you are using.

(
  export PKG=@eventmobi/eslint-config;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)

Alternatively you can manually view the peer dependencies required here by running

npm info "@eventmobi/eslint-config" peerDependencies

Usage

Add one of these three configurations to your .eslintrc file:

ES2015 + React
{
  "extends": "eventmobi"
}
ES2015 (without React)
{
  "extends": "eventmobi/base"
}
ES5 and below
{
  "extends": "eventmobi/legacy"
}

You can override settings from the shareable config by adding them directly into your .eslintrc file.

Readme

Keywords

none

Package Sidebar

Install

npm i @eventmobi/eslint-config

Weekly Downloads

2

Version

0.17.0

License

UNLICENSED

Unpacked Size

6.32 kB

Total Files

9

Last publish

Collaborators

  • em-user