F1: only the ORIGINAL query does full matching; remapped (wrong-layout) candidates must be >= 3 chars and differ from the original before they can match (via a shared candidateMatchesItem helper, applied to both the filter and the tie-break sort). This stops a short remapped candidate from substring-matching the only cyrillic searchTerms (/cy->сн, /b->и no longer surface Footnote) while keeping real wrong-layout commands (/сщву->Code, /cyjcrf->Footnote) and genuine cyrillic terms (/сноска->Footnote) working. F2: fix the buildLayoutCandidates JSDoc (an ascii query yields multiple candidates, not a single-element set). F3: rename the test to menu-items.layout.test.ts + relative import, per sibling convention. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptionsproperty like this:
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
- Replace
plugin:@typescript-eslint/recommendedtoplugin:@typescript-eslint/recommended-type-checkedorplugin:@typescript-eslint/strict-type-checked - Optionally add
plugin:@typescript-eslint/stylistic-type-checked - Install eslint-plugin-react and add
plugin:react/recommended&plugin:react/jsx-runtimeto theextendslist