Skip to content

πŸ’… useFilenamingConvention reports a .vue file once per embedded snippet with HTML full supportΒ #12818

Description

@FLPPPPPP

Environment information

Details
CLI:
  Version:                      2.6.4
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           windows

Environment:
  BIOME_DISTRIBUTION:                npm
  BIOME_LOG_FILE:                    unset
  BIOME_LOG_PATH:                    unset
  BIOME_LOG_PREFIX_NAME:             unset
  BIOME_LOG_LEVEL:                   unset
  BIOME_LOG_KIND:                    unset
  BIOME_CONFIG_PATH:                 unset
  BIOME_THREADS:                     unset
  BIOME_WATCHER_KIND:                unset
  BIOME_WATCHER_POLLING_INTERVAL:    unset
  BIOME_BINARY:                      unset
  RUST_BACKTRACE:                    unset
  NO_COLOR:                     unset
  TERM:                         xterm-256color
  JS_RUNTIME_VERSION:           v26.7.0
  JS_RUNTIME_NAME:              node
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Status:                       Loaded successfully.
  Path:                         biome.json
  Formatter enabled:            true
  Linter enabled:               true
  Assist enabled:               true
  VCS enabled:                  false
  HTML full support enabled:    true

Linter:
  JavaScript enabled:           unset
  JSON enabled:                 unset
  CSS enabled:                  unset
  GraphQL enabled:              unset
  Recommended:                  unset
  Enabled rules:
    style/useFilenamingConvention

Files:
  Ignore Unknown:               unset
  Includes:                     unset

Workspace:
  Open Documents:               0

Rule name

useFilenamingConvention

Playground link

Reproduction repository: https://github.com/FLPPPPPP/biome-repro-filenaming-dup (the playground cannot set the file name)

biome.json:

{
  "html": {
    "experimentalFullSupportEnabled": true,
    "linter": { "enabled": true }
  },
  "linter": {
    "rules": {
      "preset": "none",
      "style": { "useFilenamingConvention": "error" }
    }
  }
}

src/FooBar.vue:

<script setup>
const a = 1;
</script>

<template>
  <span>{{ a }}</span>
  <span>{{ a }}</span>
  <span>{{ a }}</span>
</template>

biome lint src prints the same diagnostic ("The filename should be in camelCase or kebab-case or snake_case or equal to the name of an export.") 4 times for src/FooBar.vue and ends with "Found 4 errors.".

The count is one per embedded JavaScript snippet: the <script> block plus each {{ }} interpolation. With 0, 1 and 3 interpolations the file is reported 1, 2 and 4 times. Without html.experimentalFullSupportEnabled it is reported once. A .ts file is reported once. Same count on 2.5.0 and 2.6.4, and on 2.4.8 and 2.4.16 with "recommended": false in place of "preset": "none", which those versions do not know.

Expected result

One useFilenamingConvention diagnostic per file, whatever the number of template expressions.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Activity

  1. added theissue type on Nov 2, 2026
  2. added
    A-Linter
    S-Needs triage
    on Nov 2, 2026
  3. self-assigned this
    on Nov 2, 2026
  4. added
    S-Bug-confirmed
    and removed
    S-Needs triage
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-LinterS-Bug-confirmed

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions