Skip to content

Instantly share code, notes, and snippets.

@jastuccio
Created September 21, 2018 09:41
Show Gist options
  • Save jastuccio/9deac796ebf2c3ccb02b63ba4c683821 to your computer and use it in GitHub Desktop.
Save jastuccio/9deac796ebf2c3ccb02b63ba4c683821 to your computer and use it in GitHub Desktop.
export PKG=eslint-config-airbnb;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
#Install other ESLint peer-dependancies as well as prettier:
npm install -D babel-eslint eslint-config-react eslint-config-prettier eslint-plugin-prettier prettier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment