mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
build: upgrade prettier
This commit is contained in:
parent
7560895fff
commit
5352526d74
7 changed files with 1078 additions and 310 deletions
|
|
@ -1,4 +1,4 @@
|
|||
*-profile/
|
||||
dist/
|
||||
vscode-icons/
|
||||
/vscode-icons
|
||||
Safari
|
||||
|
|
|
|||
14
package.json
14
package.json
|
|
@ -67,8 +67,8 @@
|
|||
"@types/react-dom": "^18.0.3",
|
||||
"@types/react-window": "^1.8.5",
|
||||
"@types/styled-components": "^5.1.25",
|
||||
"@typescript-eslint/eslint-plugin": "^5.33.1",
|
||||
"@typescript-eslint/parser": "^5.33.1",
|
||||
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
||||
"@typescript-eslint/parser": "^7.18.0",
|
||||
"babel-loader": "^8.2.5",
|
||||
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
|
||||
"clean-webpack-plugin": "^4.0.0",
|
||||
|
|
@ -76,10 +76,10 @@
|
|||
"css-loader": "^2.1.0",
|
||||
"dotenv": "^6.2.0",
|
||||
"dotenv-webpack": "^8.1.0",
|
||||
"eslint": "^8.15.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-react": "^7.29.4",
|
||||
"eslint-plugin-react-hooks": "^4.5.0",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"eslint-plugin-react-hooks": "^5.2.0",
|
||||
"file-loader": "^3.0.1",
|
||||
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
||||
"husky": "^8.0.1",
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
"lint-staged": "^13.0.3",
|
||||
"mini-css-extract-plugin": "^2.9.0",
|
||||
"patch-package": "^8.0.0",
|
||||
"prettier": "^2.8.3",
|
||||
"prettier": "^3.8.0",
|
||||
"raw-loader": "^4.0.0",
|
||||
"sass": "^1.26.2",
|
||||
"sass-loader": "^8.0.2",
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export function SearchBar({ onSearch, onFocus, value }: Props) {
|
|||
({
|
||||
regex: isValidRegexpSource(value),
|
||||
fuzzy: true,
|
||||
}[searchMode]),
|
||||
})[searchMode],
|
||||
[value, searchMode],
|
||||
)
|
||||
const isSupportedRegex = useMemo(
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ export const Gitee: Platform = {
|
|||
mapErrorMessage: (error: Error) =>
|
||||
({
|
||||
['Only signed in user is allowed to call APIs.']: errors.BAD_CREDENTIALS,
|
||||
}[error.message]),
|
||||
})[error.message],
|
||||
}
|
||||
|
||||
export function useGiteeAttachCopySnippetButton(copySnippetButton: boolean) {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
export interface $ {
|
||||
<E extends HTMLElement>(selector: string): E | null
|
||||
<R1>(selector: string, existCallback: (element: HTMLElement) => R1): R1 | null
|
||||
<R1, R2>(selector: string, existCallback: (element: HTMLElement) => R1, otherwise: () => R2):
|
||||
| R1
|
||||
| R2
|
||||
<R1, R2>(
|
||||
selector: string,
|
||||
existCallback: (element: HTMLElement) => R1,
|
||||
otherwise: () => R2,
|
||||
): R1 | R2
|
||||
<E extends HTMLElement, R2>(
|
||||
selector: string,
|
||||
existCallback: undefined | null,
|
||||
|
|
|
|||
Loading…
Reference in a new issue