Skip to content

Instantly share code, notes, and snippets.

@noopurphalak
Last active December 16, 2020 06:26
Show Gist options
  • Select an option

  • Save noopurphalak/2ec180a3a0f7f62ec7b093a7a58cb0e1 to your computer and use it in GitHub Desktop.

Select an option

Save noopurphalak/2ec180a3a0f7f62ec7b093a7a58cb0e1 to your computer and use it in GitHub Desktop.

Revisions

  1. noopurphalak revised this gist Dec 16, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion prettierrc
    Original file line number Diff line number Diff line change
    @@ -8,11 +8,14 @@
    "bracketSpacing": true,
    "requirePragma": false,
    "arrowParens": "always",
    "jsxBracketSameLine": true,
    "overrides": [
    {
    "files": "*.vue",
    "options": {
    "parser": "vue"
    "parser": "vue",
    "vueIndentScriptAndStyle": true,
    "jsxBracketSameLine": true
    }
    },
    {
  2. noopurphalak created this gist Dec 12, 2020.
    28 changes: 28 additions & 0 deletions prettierrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    {
    "printWidth": 80,
    "tabWidth": 2,
    "useTabs": false,
    "semi": false,
    "singleQuote": true,
    "trailingComma": "all",
    "bracketSpacing": true,
    "requirePragma": false,
    "arrowParens": "always",
    "overrides": [
    {
    "files": "*.vue",
    "options": {
    "parser": "vue"
    }
    },
    {
    "files": "*.css",
    "options": {
    "parser": "css",
    "printWidth": 120,
    "singleQuote": false,
    "semi": true
    }
    }
    ]
    }