@w5s/eslint-config 3.16.0 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1607 -878
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -9
- package/dist/index.js.map +1 -1
- package/package.json +12 -11
- package/src/config/markdown.ts +1 -1
- package/src/config/unused-imports.ts +51 -0
- package/src/config.ts +1 -0
- package/src/defineConfig.ts +20 -16
- package/src/typegen/jsdoc.d.ts +12 -0
- package/src/typegen/jsonc.d.ts +4 -0
- package/src/typegen/perfectionist.d.ts +181 -4
- package/src/typegen/react.d.ts +2 -2
- package/src/typegen/test.d.ts +3 -1
- package/src/typegen/ts.d.ts +1 -0
- package/src/typegen/unicorn.d.ts +374 -322
- package/src/typegen/unused-imports.d.ts +84 -0
- package/src/typegen/yml.d.ts +4 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* prettier-ignore */
|
|
3
|
+
import type { Linter } from 'eslint'
|
|
4
|
+
|
|
5
|
+
declare module 'eslint' {
|
|
6
|
+
namespace Linter {
|
|
7
|
+
interface RulesRecord extends RuleOptions {}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface RuleOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Disallow unused variables
|
|
14
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
15
|
+
*/
|
|
16
|
+
'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>
|
|
17
|
+
/**
|
|
18
|
+
* Disallow unused variables
|
|
19
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
|
|
20
|
+
*/
|
|
21
|
+
'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* ======= Declarations ======= */
|
|
25
|
+
// ----- unused-imports/no-unused-imports -----
|
|
26
|
+
type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
|
|
27
|
+
|
|
28
|
+
args?: ("all" | "after-used" | "none")
|
|
29
|
+
|
|
30
|
+
argsIgnorePattern?: string
|
|
31
|
+
|
|
32
|
+
caughtErrors?: ("all" | "none")
|
|
33
|
+
|
|
34
|
+
caughtErrorsIgnorePattern?: string
|
|
35
|
+
|
|
36
|
+
destructuredArrayIgnorePattern?: string
|
|
37
|
+
|
|
38
|
+
enableAutofixRemoval?: {
|
|
39
|
+
|
|
40
|
+
imports?: boolean
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
ignoreClassWithStaticInitBlock?: boolean
|
|
44
|
+
|
|
45
|
+
ignoreRestSiblings?: boolean
|
|
46
|
+
|
|
47
|
+
ignoreUsingDeclarations?: boolean
|
|
48
|
+
|
|
49
|
+
reportUsedIgnorePattern?: boolean
|
|
50
|
+
|
|
51
|
+
vars?: ("all" | "local")
|
|
52
|
+
|
|
53
|
+
varsIgnorePattern?: string
|
|
54
|
+
})]
|
|
55
|
+
// ----- unused-imports/no-unused-vars -----
|
|
56
|
+
type UnusedImportsNoUnusedVars = []|[(("all" | "local") | {
|
|
57
|
+
|
|
58
|
+
args?: ("all" | "after-used" | "none")
|
|
59
|
+
|
|
60
|
+
argsIgnorePattern?: string
|
|
61
|
+
|
|
62
|
+
caughtErrors?: ("all" | "none")
|
|
63
|
+
|
|
64
|
+
caughtErrorsIgnorePattern?: string
|
|
65
|
+
|
|
66
|
+
destructuredArrayIgnorePattern?: string
|
|
67
|
+
|
|
68
|
+
enableAutofixRemoval?: {
|
|
69
|
+
|
|
70
|
+
imports?: boolean
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
ignoreClassWithStaticInitBlock?: boolean
|
|
74
|
+
|
|
75
|
+
ignoreRestSiblings?: boolean
|
|
76
|
+
|
|
77
|
+
ignoreUsingDeclarations?: boolean
|
|
78
|
+
|
|
79
|
+
reportUsedIgnorePattern?: boolean
|
|
80
|
+
|
|
81
|
+
vars?: ("all" | "local")
|
|
82
|
+
|
|
83
|
+
varsIgnorePattern?: string
|
|
84
|
+
})]
|
package/src/typegen/yml.d.ts
CHANGED
|
@@ -343,11 +343,13 @@ type YmlSortSequenceValues = [{
|
|
|
343
343
|
type?: ("asc" | "desc")
|
|
344
344
|
caseSensitive?: boolean
|
|
345
345
|
natural?: boolean
|
|
346
|
+
key?: string
|
|
346
347
|
}
|
|
347
348
|
})[] | {
|
|
348
349
|
type?: ("asc" | "desc")
|
|
349
350
|
caseSensitive?: boolean
|
|
350
351
|
natural?: boolean
|
|
352
|
+
key?: string
|
|
351
353
|
})
|
|
352
354
|
minValues?: number
|
|
353
355
|
}, ...({
|
|
@@ -358,11 +360,13 @@ type YmlSortSequenceValues = [{
|
|
|
358
360
|
type?: ("asc" | "desc")
|
|
359
361
|
caseSensitive?: boolean
|
|
360
362
|
natural?: boolean
|
|
363
|
+
key?: string
|
|
361
364
|
}
|
|
362
365
|
})[] | {
|
|
363
366
|
type?: ("asc" | "desc")
|
|
364
367
|
caseSensitive?: boolean
|
|
365
368
|
natural?: boolean
|
|
369
|
+
key?: string
|
|
366
370
|
})
|
|
367
371
|
minValues?: number
|
|
368
372
|
})[]]
|