0.1.6 • Published 7 years ago
eslint-config-ebates-edc v0.1.6
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/flowtypeebates-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-edcNote: 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" optionalDependenciesFlowtype
- Requirements:
Run
yarn add -D eslint-plugin-flowtype@<version>Then update the .eslintrc.js.
module.exports = {
extends: [
'ebates-edc',
'ebates-edc/flowtype',
],
// ...
};React
- Requirements:
Run
npx install-peerdeps --dev eslint-config-react-app@<version>