From 68c435dab56bac35f85345cf5492e9810628d078 Mon Sep 17 00:00:00 2001 From: Ben Carey Date: Tue, 17 Nov 2026 14:51:30 -0500 Subject: [PATCH] feat: require PascalCase Vue component filenames The Vue layer now holds .vue files to PascalCase, and the shared Biome config accepts PascalCase as well as kebab-case under any components/ directory, so a component's tests and stories can share its name. strictCase is off there so that names with consecutive capitals, such as UIButton, pass. --- .npmignore | 1 + README.md | 6 +- js/__tests__/biome.test.js | 71 +++++++++++++ js/biome.shared.json | 20 +++- js/eslint/__tests__/vue.test.js | 40 ++++++++ js/eslint/vue.js | 2 +- package-lock.json | 176 ++++++++++++++++++++++++++++++++ package.json | 2 + vitest.config.js | 2 +- 9 files changed, 315 insertions(+), 5 deletions(-) create mode 100644 js/__tests__/biome.test.js create mode 100644 js/eslint/__tests__/vue.test.js diff --git a/.npmignore b/.npmignore index 56fd1fa..152b2e3 100644 --- a/.npmignore +++ b/.npmignore @@ -18,6 +18,7 @@ vendor/ source.toml # Tests and fixtures. +js/__tests__/ js/eslint/__tests__/ js/eslint/rules/__tests__/ tests/ diff --git a/README.md b/README.md index 771e882..237e43a 100644 --- a/README.md +++ b/README.md @@ -225,8 +225,10 @@ export default [...typeChecked, ...vue]; ``` The Vue layer registers the single-file-component parser, resolves `