-
-
Notifications
You must be signed in to change notification settings - Fork 942
linter/js: improve/export types #20122
Copy link
Copy link
Open
Labels
A-linterArea - LinterArea - Linter
Description
Coming from oxc-project/oxlint-migrate#424 where we removed the own oxlint types and used the types from oxlint itself.
I do not have a clean way to define some settings, they need some unexpected workaround:
Getting rules severity/config
import type { DummyRule } from 'oxlint';
// should be `AllowWarnDeny | [AllowWarnDeny, ...unknown[]]
export type OxlintConfigRuleSeverity = DummyRule;
// current: type DummyRule = AllowWarnDeny | unknown[];getting globals values
import type { OxlintGlobals } from 'oxlint';
// should be `GlobalValue`
export type OxlintConfigGlobalsValue = OxlintGlobals[string];oxlint plugins union
import type { OxlintConfig } from 'oxlint';
// should be `LintPluginOptionsSchema`
export type OxlintConfigPlugin = Exclude<
OxlintConfig['plugins'],
null | undefined
>[number];Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-linterArea - LinterArea - Linter
Type
Fields
Give feedbackPriority
None yet
Start date
None yet
Target date
None yet
Effort
None yet