Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.16 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.16 KB

Skeleton Eslint config

Airbnb eslint with Prettier

npm version

This package gives you a seamless integration between Airbnb eslint and Prettier.

Create a .eslintrc file with the following:

extends: 'eslint-config-skeleton'

Installation

OSX/Linux

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"
)

Windowss

npm install -g install-peerdeps
install-peerdeps --dev eslint-config-skeleton

Prettier

VS Code integration:

Install Prettier - Code formatter for VS code. Add to the following to the settings:

"prettier.eslintIntegration": true,

See the extension README for more details.