Update to eslint 10 (#36925)
- Enable a few more rules, fix issues. The 2 `value` issues are false-positives. - Add exact types for `window.pageData` and `window.notificationSettings`. - peerDependencyRules for eslint-plugin-github unrestricted, the plugin works in v10, but does not declare compatibility, pending https://github.com/github/eslint-plugin-github/issues/680. - Added [eslint-plugin-de-morgan](https://github.com/azat-io/eslint-plugin-de-morgan), no violations. --------- Signed-off-by: silverwind <me@silverwind.io> Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
26
web_src/js/globals.d.ts
vendored
26
web_src/js/globals.d.ts
vendored
@@ -26,8 +26,30 @@ interface Window {
|
||||
assetUrlPrefix: string,
|
||||
runModeIsProd: boolean,
|
||||
customEmojis: Record<string, string>,
|
||||
pageData: Record<string, any>,
|
||||
notificationSettings: Record<string, any>,
|
||||
pageData: Record<string, any> & {
|
||||
adminUserListSearchForm?: {
|
||||
SortType: string,
|
||||
StatusFilterMap: Record<string, string>,
|
||||
},
|
||||
citationFileContent?: string,
|
||||
prReview?: {
|
||||
numberOfFiles: number,
|
||||
numberOfViewedFiles: number,
|
||||
},
|
||||
DiffFileTree?: import('./modules/diff-file.ts').DiffFileTreeData,
|
||||
FolderIcon?: string,
|
||||
FolderOpenIcon?: string,
|
||||
repoLink?: string,
|
||||
repoActivityTopAuthors?: any[],
|
||||
pullRequestMergeForm?: Record<string, any>,
|
||||
dashboardRepoList?: Record<string, any>,
|
||||
},
|
||||
notificationSettings: {
|
||||
MinTimeout: number,
|
||||
TimeoutStep: number,
|
||||
MaxTimeout: number,
|
||||
EventSourceUpdateTime: number,
|
||||
},
|
||||
enableTimeTracking: boolean,
|
||||
mermaidMaxSourceCharacters: number,
|
||||
i18n: Record<string, string>,
|
||||
|
||||
Reference in New Issue
Block a user