Skip to content

Instantly share code, notes, and snippets.

@ChoWonmin
Created February 12, 2020 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChoWonmin/aa4f5757a28bcbfd9e38c7d1b0d1a514 to your computer and use it in GitHub Desktop.
Save ChoWonmin/aa4f5757a28bcbfd9e38c7d1b0d1a514 to your computer and use it in GitHub Desktop.
Integrating Prettier + ESLint + Airbnb Style Guide in VSCode
{
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": ["error"]
},
}
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": true
}
# Install the ESLint and Prettier libraries
npm install -D eslint prettier
# If you’re using npm 5+, install the Airbnb config.
npx install-peerdeps --dev eslint-config-airbnb
# Install eslint-config-prettier, eslint-plugin-prettier
npm install -D eslint-config-prettier eslint-plugin-prettier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment