0f4b03d89f
This actually lands F1+F2 (round 1 pushed only the test rename by mistake). F1: only the ORIGINAL query matches without length limits; remapped (wrong-layout) candidates must be >= 3 chars before they can match, via a shared candidateMatchesItem helper applied to both the item filter and the tie-break sort. Stops a 1-2 char ASCII query from spuriously substring-matching Cyrillic searchTerms (/cy->сн no longer hits 'сноска', /b->и no longer hits 'примечание'), while keeping real wrong-layout commands (/сщву->Code, /cyjcrf->Footnote), genuine short queries (/p, /h1) and Cyrillic terms (/сноска->Footnote) working. F2: reword the buildLayoutCandidates JSDoc (an ASCII query yields multiple candidates; dedup only collapses when nothing is remappable). Adds negative tests for /cy and /b. 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