eslint-config-ebates-edc
v0.1.6
Published
Ebates's EDC base JS ESLint config for consistent coding style.
Downloads
18
Maintainers
Readme
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
- 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>