Repository navigation
Description
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: 0Rule 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
Update dependency @biomejs/biome to v2.6.9 (#187)