Vize

vue/no-preprocessor-lang

Discourage CSS preprocessor usage in favor of modern CSS.

Default severity Presets Automatic fix Options
warning nuxt, opinionated No None

Applies to: Vue SFC templates and blocks, with script context where the rule requires it.

Bad

The style block selects SCSS through lang, so the no-preprocessor policy reports the authored block.

<template><p>Notice</p></template>
<style lang="scss">
.notice { color: red; }
</style>

Good

The same declarations use plain CSS without a preprocessor lang.

<template><p>Notice</p></template>
<style>
.notice { color: red; }
</style>

Configuration (Vite+)

import { defineConfig } from "@vizejs/vite-plugin/vite-plus";

export default defineConfig({}).withVue({
  linter: {
    "preset": "incremental",
    "rules": {
      "vue/no-preprocessor-lang": "warn"
    }
  },
});

Then run vp run lint.