KeenV
2/21/2020 - 3:26 PM

Prettier Configuration

prettier configuration via a .prettierrc file or vscode config file

"trailingComma": "none",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"jsxSingleQuote": false,
  "vetur.format.defaultFormatter.js": "prettier-eslint",
  "vetur.format.defaultFormatterOptions": {
    "prettyhtml": {
      "printWidth": 100,
      "tabWidth": 2,
      "singleQuote": false,
      "wrapAttributes": false,
      "sortAttributes": false,
    },
    "prettier": {
      "printWidth": 100,
      "tabWidth": 2,
      "semi": false,
      "singleQuote": true,
      "trailingComma": "none",
      "bracketSpacing": false
    }
  }