Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ba6a1d4

Browse filesBrowse files
authored
fix: type declarations for configs (#2566)
1 parent a91ae04 commit ba6a1d4
Copy full SHA for ba6a1d4

File tree

2 files changed

+17
-18
lines changed
Filter options

2 files changed

+17
-18
lines changed

‎lib/index.d.ts

Copy file name to clipboardExpand all lines: lib/index.d.ts
+15-18Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
type ConfigName =
2-
| "base"
3-
| "essential"
4-
| "no-layout-rules"
5-
| "recommended"
6-
| "strongly-recommended"
7-
| "vue3-essential"
8-
| "vue3-recommended"
9-
| "vue3-strongly-recommended"
10-
| "flat/base"
11-
| "flat/vue2-essential"
12-
| "flat/vue2-recommended"
13-
| "flat/vue2-strongly-recommended"
14-
| "flat/essential"
15-
| "flat/recommended"
16-
| "flat/strongly-recommended"
17-
181
declare const vue: {
192
meta: any
203
configs: {
21-
[name in keyof ConfigName]: any
4+
base: Linter.LegacyConfig
5+
essential: Linter.LegacyConfig
6+
'no-layout-rules': Linter.LegacyConfig
7+
recommended: Linter.LegacyConfig
8+
'strongly-recommended': Linter.LegacyConfig
9+
'vue3-essential': Linter.LegacyConfig
10+
'vue3-recommended': Linter.LegacyConfig
11+
'vue3-strongly-recommended': Linter.LegacyConfig
12+
'flat/base': Linter.FlatConfig[]
13+
'flat/vue2-essential': Linter.FlatConfig[]
14+
'flat/vue2-recommended': Linter.FlatConfig[]
15+
'flat/vue2-strongly-recommended': Linter.FlatConfig[]
16+
'flat/essential': Linter.FlatConfig[]
17+
'flat/recommended': Linter.FlatConfig[]
18+
'flat/strongly-recommended': Linter.FlatConfig[]
2219
}
2320
rules: Record<string, any>
2421
processors: {

‎typings/eslint/index.d.ts

Copy file name to clipboardExpand all lines: typings/eslint/index.d.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ export class Linter {
389389
export namespace Linter {
390390
type LintMessage = ESLintLinter.LintMessage
391391
type LintOptions = ESLintLinter.LintOptions
392+
type LegacyConfig = ESLintLinter.LegacyConfig
393+
type FlatConfig = ESLintLinter.FlatConfig
392394
}
393395
export type ReportDescriptorFix = (
394396
fixer: Rule.RuleFixer

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.