Skip to content

Instantly share code, notes, and snippets.

@xinzhang
Created February 15, 2020 00:52
Show Gist options
  • Select an option

  • Save xinzhang/cb62a711d01d04a7fd008a25708f6428 to your computer and use it in GitHub Desktop.

Select an option

Save xinzhang/cb62a711d01d04a7fd008a25708f6428 to your computer and use it in GitHub Desktop.

Revisions

  1. xinzhang created this gist Feb 15, 2020.
    16 changes: 16 additions & 0 deletions gistfile1.txt
    Original 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',
    };
    ```