Vize

vue/camelcase

Require camelCase identifiers in template expressions.

Default severity Presets Automatic fix Options
warning None No None

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

Bad

user_name contains an internal underscore.

<template>
  <p>{{ { user_name: value } }}</p>
</template>

Good

userName follows camelCase.

<template>
  <p>{{ { userName: value } }}</p>
</template>

Configuration (Vite+)

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

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

Then run vp run lint.