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

fix: type declarations for configs #2566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 15 additions & 18 deletions 33 lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
type ConfigName =
| "base"
| "essential"
| "no-layout-rules"
| "recommended"
| "strongly-recommended"
| "vue3-essential"
| "vue3-recommended"
| "vue3-strongly-recommended"
| "flat/base"
| "flat/vue2-essential"
| "flat/vue2-recommended"
| "flat/vue2-strongly-recommended"
| "flat/essential"
| "flat/recommended"
| "flat/strongly-recommended"

declare const vue: {
meta: any
configs: {
[name in keyof ConfigName]: any
base: Linter.LegacyConfig
essential: Linter.LegacyConfig
'no-layout-rules': Linter.LegacyConfig
recommended: Linter.LegacyConfig
'strongly-recommended': Linter.LegacyConfig
'vue3-essential': Linter.LegacyConfig
'vue3-recommended': Linter.LegacyConfig
'vue3-strongly-recommended': Linter.LegacyConfig
'flat/base': Linter.FlatConfig[]
'flat/vue2-essential': Linter.FlatConfig[]
'flat/vue2-recommended': Linter.FlatConfig[]
'flat/vue2-strongly-recommended': Linter.FlatConfig[]
'flat/essential': Linter.FlatConfig[]
'flat/recommended': Linter.FlatConfig[]
'flat/strongly-recommended': Linter.FlatConfig[]
}
rules: Record<string, any>
processors: {
Expand Down
2 changes: 2 additions & 0 deletions 2 typings/eslint/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ export class Linter {
export namespace Linter {
type LintMessage = ESLintLinter.LintMessage
type LintOptions = ESLintLinter.LintOptions
type LegacyConfig = ESLintLinter.LegacyConfig
type FlatConfig = ESLintLinter.FlatConfig
}
export type ReportDescriptorFix = (
fixer: Rule.RuleFixer
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.