-
-
Notifications
You must be signed in to change notification settings - Fork 11
fix: resolve performance issues causing UI lag #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e6e818c
fix: resolve performance issues causing UI lag when typing translatio…
eweren bd0f730
fix: update some dependencies
eweren 20a46d1
fix: address CodeRabbit review findings
eweren 9e3a816
fix: tsconfig missing node types
eweren b7b27db
fix: eslint issues
eweren 9a8d647
fix: revert upgraded packages and optimize namespace handling
eweren dcbf4c8
fix: address coderabbit concerns
eweren 322033c
fix: improve multi-select normalization in AutocompleteSelect
eweren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| // Flat ESLint config for ESLint v9+, migrated from .eslintrc.json | ||
| import preactConfig from "eslint-config-preact"; | ||
| import tsPlugin from "@typescript-eslint/eslint-plugin"; | ||
| import tsParser from "@typescript-eslint/parser"; | ||
| import reactPlugin from "eslint-plugin-react"; | ||
| import prettierPlugin from "eslint-plugin-prettier"; | ||
| import jestPlugin from "eslint-plugin-jest"; | ||
|
|
||
| /** @type {import("eslint").Linter.FlatConfig[]} */ | ||
| export default [ | ||
| { | ||
| ignores: ["build", ".vscode"], | ||
| }, | ||
| { | ||
| files: ["src/**/*.{ts,tsx,js,jsx}", "scripts/**/*.{ts,js}"], | ||
| languageOptions: { | ||
| ecmaVersion: "latest", | ||
| sourceType: "module", | ||
| parser: tsParser, | ||
| globals: { | ||
| // Browser + ES2021 env equivalent | ||
| ...preactConfig.languageOptions?.globals, | ||
| }, | ||
| }, | ||
| plugins: { | ||
| "@typescript-eslint": tsPlugin, | ||
| react: reactPlugin, | ||
| prettier: prettierPlugin, | ||
| jest: jestPlugin, | ||
| }, | ||
| rules: { | ||
| // Start from preact + recommended + TS recommended | ||
| ...(preactConfig.rules || {}), | ||
| ...tsPlugin.configs.recommended.rules, | ||
|
|
||
| // Project-specific rules from .eslintrc.json | ||
| "prettier/prettier": "error", | ||
| "react-hooks/exhaustive-deps": "off", | ||
| "@typescript-eslint/ban-ts-comment": "off", | ||
| "@typescript-eslint/no-explicit-any": "off", | ||
| "@typescript-eslint/no-non-null-assertion": "off", | ||
| "jest/expect-expect": "off", | ||
|
|
||
| // Globally ignore unused `h` (JSX pragma for Preact) | ||
| "@typescript-eslint/no-unused-vars": [ | ||
| "error", | ||
| { | ||
| argsIgnorePattern: "^_", | ||
| varsIgnorePattern: "^h$", | ||
| }, | ||
| ], | ||
| }, | ||
| settings: { | ||
| react: { | ||
| pragma: "h", | ||
| version: "detect", | ||
| }, | ||
| }, | ||
| }, | ||
| ]; | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.