/eslint-config

Shareable eslint config

Primary LanguageJavaScript

eslint-config

This is pmedianetwork's ESLint config used for JavaScript projects. It is based on Airbnb's JavaScript Style Guide and uses prettier.

Installation

npm install --save-dev pmedianetwork/eslint-config

Use it by setting the extends field in your .eslintrc:

{
  extends: 'plugin:@pmedianetwork/recommended',
};

Optionally combine

With flow

{
  extends: 'plugin:@pmedianetwork/flow',
};

With typescript

{
  extends: 'plugin:@pmedianetwork/typescript',
};

Release Management

See http://handbook.adverity.net/changesets/#the-library-changesets-workflow

Testing

To run tests run npm run test

Custom rules

Please see list of available rules