0.1.6 • Published 6 years ago

eslint-config-ebates-edc v0.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Build Status

eslint-config-ebates-edc

This package provides ESLint shareable configs which allow us to maintain a consistent coding style across our Javascript repositories.

Our base configuration, ebates-edc extends the eslint-config-airbnb-base. We also provide configuration for other environments:

  • ebates-edc/flowtype
  • ebates-edc/react

Installation

To install both the dependencies and peer-dependencies, make sure you have npm 5+ and run

npx install-peerdeps --dev eslint-config-ebates-edc

Note: install-peerdeps will automatically detect if you're using yarn or npm.

In .eslintrc.js, simply add

module.exports = {
  extends: 'ebates-edc',
  // ...
};

Other configurations

Other configurations require depedencies listed as optional. Run the following command to check the supported version to install.

npm info "eslint-config-ebates-edc@latest" optionalDependencies

Flowtype

Run

yarn add -D eslint-plugin-flowtype@<version>

Then update the .eslintrc.js.

module.exports = {
  extends: [
    'ebates-edc',
    'ebates-edc/flowtype',
  ],
  // ...
};

React

Run

npx install-peerdeps --dev eslint-config-react-app@<version>