Created
September 21, 2018 09:41
-
-
Save jastuccio/9deac796ebf2c3ccb02b63ba4c683821 to your computer and use it in GitHub Desktop.
terminal commands to setup eslint (https://medium.com/@UnicornAgency/jamstack-pwa-lets-build-a-polling-app-with-gatsby-js-firebase-and-styled-components-pt-1-78a03a633092)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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