Skip to content

Commit 88b764d

Browse files
committed
chore: lint fix
1 parent 72c1bc5 commit 88b764d

60 files changed

Lines changed: 79 additions & 64 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

eslint.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ const srcRules = {
1818
await genModuleAbsolutePathIfExists(projectDir, 'node_modules/@mwcp/share') ?? '.',
1919
],
2020
}],
21+
'id-length': 0,
22+
"@typescript-eslint/no-unused-vars": 0,
23+
'@typescript-eslint/prefer-ts-expect-error': 0,
24+
'@typescript-eslint/no-duplicate-enum-values': 0,
25+
'node/no-extraneous-import': 0,
26+
'unicorn/filename-case': 0,
27+
"linebreak-style": 0,
28+
'node/shebang': 0,
2129
}
2230
const testRules = {
2331
'@typescript-eslint/no-explicit-any': 0,

packages/win32-api/src/lib/comctl32/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import { Comctl32 } from './api.types.js'
88

99

1010
export {
11-
DefComctl32, Comctl32,
11+
Comctl32,
12+
DefComctl32,
1213
}
1314

1415
export const dllName = DllNames.comctl32

packages/win32-api/src/lib/user32/mapper/GetClassInfoExW.mapper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const GetClassInfoExW_mapper: MultipleChoiceMapper<Params, DefParams> = (
2323
assert(Array.isArray(row))
2424
const defArg = row[1]
2525

26+
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
2627
switch (typeof lpszClass) {
2728
case 'string': {
2829
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition

packages/win32-api/src/lib/winspool/api.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unnecessary-type-parameters */
12
/* c8 ignore start */
23
import type * as S from 'win32-def/struct'
34
import type * as T from 'win32-def/types'

packages/win32-api/src/util/winspool/winspool.index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
export * from './winspool.types.js'
2+
export type * from './winspool.types.js'
33
export * from './ClosePrinter.js'
44
export * from './EndDocPrinter.js'
55
export * from './EnumPrinters.js'

packages/win32-api/test/0.dummy.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { fileShortPath } from '@waiting/shared-core'
44

55
import { testConfig } from '#@/root.config.js'
66

7+
78
describe(fileShortPath(import.meta.url), () => {
89

910
describe('should work', () => {

packages/win32-api/test/lib/kernel32/2000.GetModuleHandleW.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import assert from 'node:assert/strict'
33
import { fileShortPath } from '@waiting/shared-core'
44
import { ucsBufferFrom } from 'win32-def'
55

6-
import { Kernel32 as Lib, DllNames } from '##/index.js'
6+
import { DllNames, Kernel32 as Lib } from '##/index.js'
77

88

99
describe(fileShortPath(import.meta.url), () => {

packages/win32-api/test/lib/kernel32/2001.GetModuleHandleExW.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import assert from 'node:assert/strict'
33
import { fileShortPath } from '@waiting/shared-core'
44
import { ucsBufferFrom } from 'win32-def'
55

6-
import { Kernel32 as Lib, DllNames, ffi } from '##/index.js'
6+
import { DllNames, Kernel32 as Lib, ffi } from '##/index.js'
77

88

99
describe(fileShortPath(import.meta.url), () => {

packages/win32-api/test/lib/user32/1000.RegisterClassExW.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { fileShortPath } from '@waiting/shared-core'
44
import { WNDCLASSEXW_Factory } from 'win32-def/struct'
55
import type { WNDCLASSEXW_Type } from 'win32-def/struct'
66

7-
import { User32 as Lib, Kernel32 } from '##/index.js'
7+
import { Kernel32, User32 as Lib } from '##/index.js'
88

99

1010
describe(fileShortPath(import.meta.url), () => {

packages/win32-api/test/lib/user32/1001.GetClassInfoExW.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ucsBufferFrom } from 'win32-def'
55
import { WNDCLASSEXW_Factory } from 'win32-def/struct'
66
import type { WNDCLASSEXW_Type } from 'win32-def/struct'
77

8-
import { User32 as Lib, Kernel32 } from '##/index.js'
8+
import { Kernel32, User32 as Lib } from '##/index.js'
99

1010

1111
describe(fileShortPath(import.meta.url), () => {

0 commit comments

Comments
 (0)