6190de14cc
The #285 gate dropped every remapped (wrong-layout) candidate shorter than 3 chars, which broke the legitimate short prefix '/сщ' -> 'co' -> Code while '/co' still worked. Replace the blanket length filter with a match-TYPE gate: the original query and remaps >= 3 chars match fully (title/description/searchTerms); a short (1-2 char) remap is restricted to a TITLE fuzzy-match. So '/сщ' -> 'co' matches the 'Code' title again, while '/cy' -> 'сн' and '/b' -> 'и' still do not surface Footnote (they only ever leaked in via the 'сноска'/'примечание' searchTerm substrings, not the title). Adds positive tests for /сщ and /co; keeps the /cy and /b negatives. closes #283 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