Created
February 15, 2020 00:52
-
-
Save xinzhang/cb62a711d01d04a7fd008a25708f6428 to your computer and use it in GitHub Desktop.
Revisions
-
xinzhang created this gist
Feb 15, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ 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', }; ```