This package provides GitBook's .eslintrc as an extensible shared config. It is mostly based on airbnb styleguide and setup with prettier to code format with eslint --fix
.
npm install eslint-config-gitbook --save-dev
With npm 5+, you can now install the package along with its peer dependencies easily:
npx install-peerdeps --dev eslint-config-gitbook
Add to your .eslintrc
:
{
"extends": "gitbook"
}