Форматирование scss в VSCode для Vue

Я испортил настройки VSCode и теперь не могу вернуть форматирование SCSS. Он не работает ни для Vue SFC <style lang="scss" />, ни для простых файлов SCSS. У меня установлен Vetur и нет Prettier. Вот мои настройки VSCode:

{
  "editor.formatOnSave": true,
  "editor.formatOnPaste": true,
  "editor.codeActionsOnSave": {
    "source.fixAll": true
  },
  "editor.minimap.enabled": false,
  "breadcrumbs.enabled": false,
  "editor.fontSize": 12.5,
  "editor.tabSize": 2,
  "editor.renderWhitespace": "none",
  "search.exclude": {
    "**/package-lock.json": true,
    "/package-lock.json": true,
    "**/node_modules": true,
    "**/.git": true,
    "**/.DS_Store": true,
    "**/nuxt": true
  },
  "files.exclude": {
    "**/node_modules": true,
    "**/.git": true,
    "**/.DS_Store": true,
    "**/nuxt": true
  },
  "webhint.enableTelemetry": "disabled"
}

Буду очень благодарен за любую помощь!


person David Go    schedule 15.04.2021    source источник


Ответы (1)


Обнаружил проблему, я нарушил .prettierrc несуществующее правило.

person David Go    schedule 15.04.2021