Skip to content

Commit 75fd82b

Browse files
committed
refactor: disable specific ESLint rules and remove unused search index functions
1 parent 264b13c commit 75fd82b

2 files changed

Lines changed: 2 additions & 26 deletions

File tree

apps/web/eslint.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,13 @@ export default [
3030
},
3131
rules: {
3232
...reactHooks.configs.recommended.rules,
33-
"react-refresh/only-export-components": [
34-
"warn",
35-
{ allowConstantExport: true },
36-
],
33+
"react-refresh/only-export-components": "off",
3734
"react-compiler/react-compiler": "error",
3835
"prettier/prettier": "error",
3936
"@typescript-eslint/no-explicit-any": "off",
4037
"@typescript-eslint/no-empty-object-type": "off",
4138
"@typescript-eslint/ban-ts-comment": "off",
42-
"react-hooks/exhaustive-deps": "warn",
39+
"react-hooks/exhaustive-deps": "off",
4340
"@typescript-eslint/no-unused-vars": "off",
4441
"unused-imports/no-unused-imports": "error",
4542
"unused-imports/no-unused-vars": [

apps/web/src/utils/text-normalization.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -203,24 +203,3 @@ export function normalizeText(
203203

204204
return tokens;
205205
}
206-
207-
/**
208-
* Create a searchable index from text
209-
* Returns a Set of normalized tokens for fast lookup
210-
*/
211-
export function createSearchIndex(
212-
text: string,
213-
options?: NormalizeOptions
214-
): Set<string> {
215-
return new Set(normalizeText(text, options));
216-
}
217-
218-
/**
219-
* Check if any tokens from query match any tokens in target
220-
*/
221-
export function matchesQuery(
222-
targetTokens: Set<string>,
223-
queryTokens: string[]
224-
): boolean {
225-
return queryTokens.some((token) => targetTokens.has(token));
226-
}

0 commit comments

Comments
 (0)