Skip to content

VSCode Integration

17.3.1. Format on Save

The following configuration must be included in .vscode/settings.json.

json
{
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  }
}

Execution order on save:

  1. ESLint applies auto-fixable rules.
  2. Prettier formats the code.

17.3.2. Preventing ESLint and Prettier Conflicts

eslint-config-prettier disables ESLint's formatting-related rules to prevent conflicts with Prettier. prettierConfig must be placed last in the ESLint config array.


17.3.3. Required Extensions

ExtensionIDPurpose
ESLintdbaeumer.vscode-eslintReal-time lint feedback
Prettieresbenp.prettier-vscodeCode formatting
Vue - OfficialVue.volarVue SFC support
TypeScript Vue PluginVue.vscode-typescript-vue-pluginTypeScript support in Vue
Tailwind CSS IntelliSensebradlc.vscode-tailwindcssTailwind autocompletion

Recommended extensions must be specified in .vscode/extensions.json.

json
{
  "recommendations": [
    "dbaeumer.vscode-eslint",
    "esbenp.prettier-vscode",
    "Vue.volar",
    "Vue.vscode-typescript-vue-plugin",
    "bradlc.vscode-tailwindcss"
  ]
}

Including this configuration in the project automatically prompts team members to install the recommended extensions when they open the project.

TIENIPIA QUALIFIED STANDARD