This package gives you a seamless integration between Airbnb eslint and Prettier.
Create a .eslintrc
file with the following:
extends: 'eslint-config-skeleton'
To install this package and all its peer dependencies run:
(
export PKG=eslint-config-skeleton;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
npm install -g install-peerdeps
install-peerdeps --dev eslint-config-skeleton
Install Prettier - Code formatter for VS code. Add to the following to the settings:
"prettier.eslintIntegration": true,
See the extension README for more details.