Skip to content

Instantly share code, notes, and snippets.

@xinzhang
Created February 15, 2020 00:52
Show Gist options
  • Save xinzhang/cb62a711d01d04a7fd008a25708f6428 to your computer and use it in GitHub Desktop.
Save xinzhang/cb62a711d01d04a7fd008a25708f6428 to your computer and use it in GitHub Desktop.
setup prettier and eslint
this is to setup
* in vscode, install prettier, eslint plugin (remove beautifier)
* npm install prettier eslint-config-prettier eslint-plugin-pretier --save-dev
* command + "," to add formatOnSave true
* add prettier.config.js
```
module.exports = {
$schema: 'http://json.schemastore.org/prettierrc',
arrowParens: 'always',
printWidth: 88,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
};
```
@xinzhang
Copy link
Author

946c240a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment