@oxlint/migrate 1.80.0 → 1.81.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.
@@ -30,7 +30,7 @@ const loadESLintConfig = async (filePath) => {
30
30
  };
31
31
  //#endregion
32
32
  //#region package.json
33
- var version = "1.80.0";
33
+ var version = "1.81.0";
34
34
  //#endregion
35
35
  //#region src/walker/comments/replaceRuleDirectiveComment.ts
36
36
  const allRulesSet = new Set(Object.values(rules_exports).flat());
@@ -10,10 +10,10 @@
10
10
  /**
11
11
  * What to enforce for `/// <reference types="..." />` references.
12
12
  */
13
- //#region node_modules/.pnpm/oxlint@1.80.0_oxlint-tsgolint@0.25.0/node_modules/oxlint/dist/index.d.ts
13
+ //#region node_modules/.pnpm/oxlint@1.81.0_oxlint-tsgolint@0.25.0/node_modules/oxlint/dist/index.d.ts
14
14
  //#region src-js/package/config.generated.d.ts
15
15
  type AllowWarnDeny = ("allow" | "off" | "warn" | "error" | "deny") | number;
16
- type GlobalValue = ("readonly" | "writable" | "off") | undefined;
16
+ type GlobalValue = "readonly" | "writable" | "off";
17
17
  type ExternalPluginEntry = string | {
18
18
  /**
19
19
  * Custom name/alias for the plugin.
@@ -82,7 +82,7 @@ type Mode = "prefer-top-level" | "prefer-inline" | "prefer-top-level-if-only-typ
82
82
  */
83
83
  type ExtensionRule = "always" | "never" | "ignorePackages";
84
84
  type ImportExtensionsObject = ImportExtensionsConfig | {
85
- [k: string]: ExtensionRule;
85
+ [k: string]: ExtensionRule | undefined;
86
86
  };
87
87
  /**
88
88
  * Action to take for path group overrides.
@@ -283,7 +283,7 @@ type ChecksVoidReturn = boolean | ChecksVoidReturnOptions;
283
283
  * - A string - ban with custom message
284
284
  * - An object with `message` and optional `fixWith` and `suggest`
285
285
  */
286
- type BanConfigValue = (True | string | {
286
+ type BanConfigValue = True | string | {
287
287
  /**
288
288
  * Replacement type for automatic fixing. Applied directly with `--fix`.
289
289
  */
@@ -296,7 +296,7 @@ type BanConfigValue = (True | string | {
296
296
  * Suggested replacement types for manual review. Shown as editor suggestions.
297
297
  */
298
298
  suggest?: string[];
299
- }) | undefined;
299
+ };
300
300
  type True = true;
301
301
  /**
302
302
  * Represents the different ways `allowConstantLoopConditions` can be specified in JSON.
@@ -322,7 +322,7 @@ type TypesOption = "always" | "never" | "prefer-import";
322
322
  type BomOptionType = "always" | "never";
323
323
  type NonZero = "greater-than" | "not-equal";
324
324
  type ExplicitTimerDelayMode = "always" | "never";
325
- type ModuleStylesOverride = (false | {
325
+ type ModuleStylesOverride = false | {
326
326
  /**
327
327
  * Whether default imports or whole-module `require()` assignments are allowed for this module.
328
328
  *
@@ -359,7 +359,7 @@ type ModuleStylesOverride = (false | {
359
359
  * ```
360
360
  */
361
361
  unassigned?: boolean;
362
- }) | undefined;
362
+ };
363
363
  type NoInstanceofBuiltinsStrategy = "strict" | "loose";
364
364
  type PreferTernaryOption = "always" | "only-single-line";
365
365
  type RelativeUrlStyleConfig = "never" | "always";
@@ -375,14 +375,14 @@ type CaseType2 = "camelCase" | "snake_case";
375
375
  type AllowYoda = "never" | "always";
376
376
  type OxlintOverrides = OxlintOverride[];
377
377
  type JestVersionSchema = number | string;
378
- type TagNamePreference = (string | {
378
+ type TagNamePreference = string | {
379
379
  message: string;
380
380
  replacement: string;
381
381
  [k: string]: unknown | undefined;
382
382
  } | {
383
383
  message: string;
384
384
  [k: string]: unknown | undefined;
385
- } | boolean) | undefined;
385
+ } | boolean;
386
386
  type OneOrManyFor_String = string | string[];
387
387
  type CustomComponent = string | {
388
388
  attribute: string;
@@ -1713,7 +1713,7 @@ interface DummyRuleMap {
1713
1713
  "vue/valid-define-props"?: RuleNoConfig;
1714
1714
  "vue/valid-next-tick"?: RuleNoConfig;
1715
1715
  yoda?: RuleNoConfig | [AllowWarnDeny, AllowYoda] | [AllowWarnDeny, AllowYoda, YodaOptions];
1716
- [k: string]: DummyRule | undefined;
1716
+ [k: string]: DummyRule | RuleNoConfig | [AllowWarnDeny, AccessorPairsConfig] | [AllowWarnDeny, ArrayCallbackReturn] | [AllowWarnDeny, Mode2] | [AllowWarnDeny, Mode2, ArrowBodyStyleConfig] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, OptionsJsonEnum] | [AllowWarnDeny, ClassMethodsUseThisConfig] | [AllowWarnDeny, ComplexityConfigEnum] | [AllowWarnDeny, CurlyType] | [AllowWarnDeny, CurlyType, CurlyConsistent] | [AllowWarnDeny, DefaultCaseConfig] | [AllowWarnDeny, CompareType] | [AllowWarnDeny, CompareType, EqeqeqOptions] | [AllowWarnDeny, FuncNameMatchingMode] | [AllowWarnDeny, FuncNameMatchingMode, FuncNameMatchingConfig] | [AllowWarnDeny, FuncNameMatchingMode] | [AllowWarnDeny, FuncNameMatchingConfig] | [AllowWarnDeny, FuncNamesConfigType] | [AllowWarnDeny, FuncNamesConfigType, FuncNamesGeneratorsConfig] | [AllowWarnDeny, Style] | [AllowWarnDeny, Style, FuncStyleConfig] | [AllowWarnDeny, GetterReturn] | [AllowWarnDeny, PairOrder] | [AllowWarnDeny, PairOrder, GroupedAccessorPairsConfig] | [AllowWarnDeny, ...string[]] | [AllowWarnDeny, IdLengthConfig] | [AllowWarnDeny, string] | [AllowWarnDeny, string, IdMatchOptions] | [AllowWarnDeny, Mode] | [AllowWarnDeny, ExtensionRule] | [AllowWarnDeny, ExtensionRule, ImportExtensionsObject] | [AllowWarnDeny, ExtensionRule] | [AllowWarnDeny, ImportExtensionsObject] | [AllowWarnDeny, AbsoluteFirst] | [AllowWarnDeny, MaxDependenciesConfigJson] | [AllowWarnDeny, Namespace] | [AllowWarnDeny, NewlineAfterImport] | [AllowWarnDeny, NoAbsolutePath] | [AllowWarnDeny, NoAnonymousDefaultExport] | [AllowWarnDeny, NoCommonjs] | [AllowWarnDeny, NoCycle] | [AllowWarnDeny, NoDuplicates] | [AllowWarnDeny, NoDynamicRequire] | [AllowWarnDeny, NoNamespaceConfig] | [AllowWarnDeny, NoNodejsModulesConfig] | [AllowWarnDeny, NoUnassignedImportConfig] | [AllowWarnDeny, PreferDefaultExport] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, InitDeclarationsConfig] | [AllowWarnDeny, ConsistentTestItConfig] | [AllowWarnDeny, ExpectExpectConfig] | [AllowWarnDeny, MaxExpectsConfig] | [AllowWarnDeny, MaxNestedDescribeConfig] | [AllowWarnDeny, NoDeprecatedFunctionsConfig] | [AllowWarnDeny, NoHooksConfig] | [AllowWarnDeny, NoLargeSnapshotsConfig] | [AllowWarnDeny, NoRestrictedTestMethodsConfig] | [AllowWarnDeny, NoRestrictedMatchersConfig] | [AllowWarnDeny, NoStandaloneExpectConfig] | [AllowWarnDeny, PreferEndingWithAnExpectConfig] | [AllowWarnDeny, PreferExpectAssertionsConfig] | [AllowWarnDeny, PreferImportingJestGlobalsConfig] | [AllowWarnDeny, PreferLowercaseTitleConfig] | [AllowWarnDeny, SnapshotHintMode] | [AllowWarnDeny, RequireHookConfig] | [AllowWarnDeny, RequireTopLevelDescribeConfig] | [AllowWarnDeny, ValidExpectConfig] | [AllowWarnDeny, CheckTagNamesConfig] | [AllowWarnDeny, EmptyTagsConfig] | [AllowWarnDeny, NoBlankBlocks] | [AllowWarnDeny, NoDefaultsConfig] | [AllowWarnDeny, RequireParamConfig] | [AllowWarnDeny, RequireParamDescriptionConfig] | [AllowWarnDeny, RequireParamTypeConfig] | [AllowWarnDeny, RequireReturnsConfig] | [AllowWarnDeny, RequireYieldsConfig] | [AllowWarnDeny, AltTextConfigSchema] | [AllowWarnDeny, AnchorAmbiguousTextConfig] | [AllowWarnDeny, AnchorHasContentConfig] | [AllowWarnDeny, AnchorIsValidConfig] | [AllowWarnDeny, AriaRoleConfig] | [AllowWarnDeny, AutocompleteValidConfig] | [AllowWarnDeny, ControlHasAssociatedLabelConfig] | [AllowWarnDeny, HeadingHasContentConfig] | [AllowWarnDeny, ImgRedundantAltConfig] | [AllowWarnDeny, InteractiveSupportsFocusConfig] | [AllowWarnDeny, LabelHasAssociatedControlConfig] | [AllowWarnDeny, MediaHasCaptionConfig] | [AllowWarnDeny, MouseEventsHaveKeyEventsConfig] | [AllowWarnDeny, NoAutofocus] | [AllowWarnDeny, NoDistractingElementsConfig] | [AllowWarnDeny, NoInteractiveElementToNoninteractiveRoleConfig] | [AllowWarnDeny, NoNoninteractiveElementInteractionsConfig] | [AllowWarnDeny, NoNoninteractiveElementToInteractiveRoleConfig] | [AllowWarnDeny, NoNoninteractiveTabindexConfig] | [AllowWarnDeny, NoRedundantRolesConfig] | [AllowWarnDeny, NoStaticElementInteractionsConfig] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, LogicalAssignmentOperatorsConfig] | [AllowWarnDeny, MaxClassesPerFileConfigEnum] | [AllowWarnDeny, MaxDepthConfigEnum] | [AllowWarnDeny, MaxLinesConfigEnum] | [AllowWarnDeny, MaxLinesPerFunctionConfigEnum] | [AllowWarnDeny, MaxNestedCallbacksConfigEnum] | [AllowWarnDeny, MaxParamsConfigEnum] | [AllowWarnDeny, MaxStatementsConfigEnum] | [AllowWarnDeny, NewCapConfig] | [AllowWarnDeny, NoBitwiseConfig] | [AllowWarnDeny, NoCondAssignConfig] | [AllowWarnDeny, NoConsoleConfig] | [AllowWarnDeny, NoConstantBinaryExpressionConfig] | [AllowWarnDeny, NoConstantCondition] | [AllowWarnDeny, NoDuplicateImports] | [AllowWarnDeny, NoElseReturn] | [AllowWarnDeny, NoEmpty] | [AllowWarnDeny, NoEmptyFunctionConfig] | [AllowWarnDeny, NoEmptyPattern] | [AllowWarnDeny, NoEval] | [AllowWarnDeny, NoExtendNativeConfig] | [AllowWarnDeny, NoExtraBooleanCast] | [AllowWarnDeny, NoFallthroughConfig] | [AllowWarnDeny, NoGlobalAssignConfig] | [AllowWarnDeny, NoImplicitCoercionConfig] | [AllowWarnDeny, NoImplicitGlobalsConfig] | [AllowWarnDeny, NoInlineCommentsConfig] | [AllowWarnDeny, NoInnerDeclarationsConfig] | [AllowWarnDeny, NoInnerDeclarationsConfig, NoInnerDeclarationsOptions] | [AllowWarnDeny, NoInvalidRegexpConfig] | [AllowWarnDeny, NoIrregularWhitespaceConfig] | [AllowWarnDeny, NoLabels] | [AllowWarnDeny, NoMagicNumbersConfig] | [AllowWarnDeny, NoMisleadingCharacterClass] | [AllowWarnDeny, NoMultiAssign] | [AllowWarnDeny, NoParamReassignConfig] | [AllowWarnDeny, NoPlusplus] | [AllowWarnDeny, NoPromiseExecutorReturnConfig] | [AllowWarnDeny, NoRedeclare] | [AllowWarnDeny, NoRestrictedExportsConfig] | [AllowWarnDeny, ...NoRestrictedGlobalsConfigEnum[]] | [AllowWarnDeny, ...NoRestrictedImportsConfigEnum[]] | [AllowWarnDeny, ...PropertyDetails[]] | [AllowWarnDeny, NoReturnAssignMode] | [AllowWarnDeny, NoSelfAssign] | [AllowWarnDeny, NoSequences] | [AllowWarnDeny, NoShadowConfig] | [AllowWarnDeny, NoShadowRestrictedNamesConfig] | [AllowWarnDeny, NoUndef] | [AllowWarnDeny, NoUnderscoreDangleConfig] | [AllowWarnDeny, NoUnneededTernary] | [AllowWarnDeny, NoUnreachableLoopConfig] | [AllowWarnDeny, NoUnsafeNegation] | [AllowWarnDeny, NoUnsafeOptionalChaining] | [AllowWarnDeny, NoUnusedExpressionsConfig] | [AllowWarnDeny, NoUnusedVarsConfig] | [AllowWarnDeny, NoUseBeforeDefineConfigJson] | [AllowWarnDeny, NoUselessComputedKey] | [AllowWarnDeny, NoUselessEscapeConfig] | [AllowWarnDeny, NoUselessRenameConfig] | [AllowWarnDeny, NoVoid] | [AllowWarnDeny, NoWarningCommentsConfig] | [AllowWarnDeny, CallbackReturn] | [AllowWarnDeny, ExportsStyleMode] | [AllowWarnDeny, ExportsStyleMode, ExportsStyleOptions] | [AllowWarnDeny, HandleCallbackErrConfig] | [AllowWarnDeny, NoMixedRequiresConfig] | [AllowWarnDeny, NoProcessEnvConfig] | [AllowWarnDeny, NoSyncConfig] | [AllowWarnDeny, NoTopLevelAwaitConfig] | [AllowWarnDeny, ShorthandType] | [AllowWarnDeny, ShorthandType, ObjectShorthandOptions] | [AllowWarnDeny, OneVar] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, NoAsyncEndpointHandlersConfig] | [AllowWarnDeny, NoBarrelFile] | [AllowWarnDeny, NoMapSpreadConfig] | [AllowWarnDeny, NoOptionalChainingConfig] | [AllowWarnDeny, NoRestSpreadPropertiesOptions] | [AllowWarnDeny, PreferArrowCallbackConfig] | [AllowWarnDeny, PreferConstConfig] | [AllowWarnDeny, PreferDestructuringOption] | [AllowWarnDeny, PreferDestructuringOption, PreferDestructuringEnforcementConfig] | [AllowWarnDeny, PreferPromiseRejectErrors] | [AllowWarnDeny, PreferRegexLiteralsConfig] | [AllowWarnDeny, PreserveCaughtErrorOptions] | [AllowWarnDeny, AlwaysReturnConfig] | [AllowWarnDeny, CatchOrReturnConfig] | [AllowWarnDeny, NoCallbackInPromiseConfig] | [AllowWarnDeny, NoPromiseInCallbackConfig] | [AllowWarnDeny, NoReturnWrap] | [AllowWarnDeny, ParamNamesConfig] | [AllowWarnDeny, PreferAwaitToThenConfig] | [AllowWarnDeny, SpecOnlyConfig] | [AllowWarnDeny, RadixType] | [AllowWarnDeny, ReactPerfConfig] | [AllowWarnDeny, ButtonHasType] | [AllowWarnDeny, CheckedRequiresOnchangeOrReadonly] | [AllowWarnDeny, DisplayNameConfig] | [AllowWarnDeny, ExhaustiveDepsConfig] | [AllowWarnDeny, ForbidComponentPropsConfig] | [AllowWarnDeny, ForbidDomPropsConfig] | [AllowWarnDeny, ForbidElementsConfig] | [AllowWarnDeny, FunctionComponentDefinitionConfig] | [AllowWarnDeny, HookUseStateConfig] | [AllowWarnDeny, EnforceBooleanAttribute] | [AllowWarnDeny, EnforceBooleanAttribute, JsxBooleanValueOptions] | [AllowWarnDeny, JsxCurlyBracePresenceConfig] | [AllowWarnDeny, JsxFilenameExtensionConfig] | [AllowWarnDeny, FragmentMode] | [AllowWarnDeny, JsxHandlerNamesConfig] | [AllowWarnDeny, JsxKeyConfig] | [AllowWarnDeny, JsxMaxDepthConfig] | [AllowWarnDeny, JsxNoLiteralsConfig] | [AllowWarnDeny, JsxNoScriptUrlComponent[]] | [AllowWarnDeny, JsxNoScriptUrlComponent[], JsxNoScriptUrlOptions] | [AllowWarnDeny, JsxNoScriptUrlOptions] | [AllowWarnDeny, JsxNoTargetBlank] | [AllowWarnDeny, JsxNoUselessFragment] | [AllowWarnDeny, JsxPascalCaseConfig] | [AllowWarnDeny, JsxPropsNoSpreadingConfig] | [AllowWarnDeny, AllowedOrDisallowInFunc] | [AllowWarnDeny, NoMultiCompConfig] | [AllowWarnDeny, NoStringRefs] | [AllowWarnDeny, NoUnknownPropertyConfig] | [AllowWarnDeny, NoUnsafeConfig] | [AllowWarnDeny, NoUnstableNestedComponentsConfig] | [AllowWarnDeny, OnlyExportComponentsConfig] | [AllowWarnDeny, PreferFunctionComponent] | [AllowWarnDeny, SelfClosingComp] | [AllowWarnDeny, StylePropObjectConfig] | [AllowWarnDeny, RequireUnicodeRegexpConfig] | [AllowWarnDeny, SortImportsOptions] | [AllowWarnDeny, SortOrder] | [AllowWarnDeny, SortOrder, SortKeysOptions] | [AllowWarnDeny, SortVars] | [AllowWarnDeny, ArrayTypeConfig] | [AllowWarnDeny, BanTsCommentConfig] | [AllowWarnDeny, ClassLiteralPropertyStyleOption] | [AllowWarnDeny, PreferGenericType] | [AllowWarnDeny, ConsistentIndexedObjectStyleConfig] | [AllowWarnDeny, ConsistentReturnConfig] | [AllowWarnDeny, ConsistentTypeAssertionsConfig] | [AllowWarnDeny, ConsistentTypeDefinitionsConfig] | [AllowWarnDeny, ConsistentTypeExportsConfig] | [AllowWarnDeny, ConsistentTypeImportsConfig] | [AllowWarnDeny, DotNotationConfig] | [AllowWarnDeny, ExplicitFunctionReturnTypeConfig] | [AllowWarnDeny, ExplicitMemberAccessibilityConfig] | [AllowWarnDeny, ExplicitModuleBoundaryTypesConfig] | [AllowWarnDeny, MethodSignatureStyleConfig] | [AllowWarnDeny, NoBaseToStringConfig] | [AllowWarnDeny, NoConfusingVoidExpressionConfig] | [AllowWarnDeny, NoDeprecatedConfig] | [AllowWarnDeny, NoDuplicateTypeConstituentsConfig] | [AllowWarnDeny, NoEmptyInterface] | [AllowWarnDeny, NoEmptyObjectTypeConfig] | [AllowWarnDeny, NoExplicitAny] | [AllowWarnDeny, NoExtraneousClass] | [AllowWarnDeny, NoFloatingPromisesConfig] | [AllowWarnDeny, NoInferrableTypes] | [AllowWarnDeny, NoInvalidVoidTypeConfig] | [AllowWarnDeny, NoMeaninglessVoidOperatorConfig] | [AllowWarnDeny, NoMisusedPromisesConfig] | [AllowWarnDeny, NoMisusedSpreadConfig] | [AllowWarnDeny, NoNamespace] | [AllowWarnDeny, NoRequireImportsConfig] | [AllowWarnDeny, NoRestrictedTypesConfig] | [AllowWarnDeny, NoThisAliasConfig] | [AllowWarnDeny, NoUnnecessaryBooleanLiteralCompareConfig] | [AllowWarnDeny, NoUnnecessaryConditionConfig] | [AllowWarnDeny, NoUnnecessaryTypeAssertionConfig] | [AllowWarnDeny, NoUnsafeMemberAccessConfig] | [AllowWarnDeny, OnlyThrowErrorConfig] | [AllowWarnDeny, ParameterPropertiesConfig] | [AllowWarnDeny, PreferLiteralEnumMember] | [AllowWarnDeny, PreferNullishCoalescingConfig] | [AllowWarnDeny, PreferOptionalChainConfig] | [AllowWarnDeny, PreferPromiseRejectErrorsConfig] | [AllowWarnDeny, PreferReadonlyConfig] | [AllowWarnDeny, PreferReadonlyParameterTypesConfig] | [AllowWarnDeny, PreferStringStartsEndsWithConfig] | [AllowWarnDeny, PromiseFunctionAsyncConfig] | [AllowWarnDeny, RequireArraySortCompareConfig] | [AllowWarnDeny, RestrictPlusOperandsConfig] | [AllowWarnDeny, RestrictTemplateExpressionsConfig] | [AllowWarnDeny, ReturnAwaitOption] | [AllowWarnDeny, StrictBooleanExpressionsConfig] | [AllowWarnDeny, StrictVoidReturnConfig] | [AllowWarnDeny, SwitchExhaustivenessCheckConfig] | [AllowWarnDeny, TripleSlashReferenceConfig] | [AllowWarnDeny, UnboundMethodConfig] | [AllowWarnDeny, UnifiedSignaturesOptions] | [AllowWarnDeny, BomOptionType] | [AllowWarnDeny, CatchErrorNameConfig] | [AllowWarnDeny, ConsistentFunctionScoping] | [AllowWarnDeny, ExplicitLengthCheck] | [AllowWarnDeny, ExplicitTimerDelayMode] | [AllowWarnDeny, ImportStyleConfig] | [AllowWarnDeny, MaxNestedCalls] | [AllowWarnDeny, NoArrayReduce] | [AllowWarnDeny, NoArrayReverse] | [AllowWarnDeny, NoArraySort] | [AllowWarnDeny, NoInstanceofBuiltinsConfig] | [AllowWarnDeny, NoNull] | [AllowWarnDeny, NoTypeofUndefined] | [AllowWarnDeny, NoUselessPromiseResolveRejectOptions] | [AllowWarnDeny, NoUselessUndefined] | [AllowWarnDeny, NumericSeparatorsStyleConfig] | [AllowWarnDeny, PreferAtConfig] | [AllowWarnDeny, PreferExportFrom] | [AllowWarnDeny, PreferNumberPropertiesConfig] | [AllowWarnDeny, PreferObjectFromEntriesConfig] | [AllowWarnDeny, PreferSingleCallConfig] | [AllowWarnDeny, PreferStructuredCloneConfig] | [AllowWarnDeny, PreferTernaryOption] | [AllowWarnDeny, RelativeUrlStyleConfig] | [AllowWarnDeny, SwitchCaseBracesConfig] | [AllowWarnDeny, TextEncodingIdentifierCase] | [AllowWarnDeny, UseIsnan] | [AllowWarnDeny, ValidTypeof] | [AllowWarnDeny, ConsistentEachForJson] | [AllowWarnDeny, ConsistentTestFilenameConfig] | [AllowWarnDeny, ConsistentVitestConfig] | [AllowWarnDeny, PreferImportInMockConfig] | [AllowWarnDeny, RequireMockTypeParametersConfig] | [AllowWarnDeny, CaseType] | [AllowWarnDeny, DeclarationStyle] | [AllowWarnDeny, DeclarationStyle2] | [AllowWarnDeny, DefinePropsDestructuring] | [AllowWarnDeny, MaxProps] | [AllowWarnDeny, NextTickOption] | [AllowWarnDeny, NoAsyncInComputedPropertiesConfig] | [AllowWarnDeny, NoDeprecatedModelDefinitionConfig] | [AllowWarnDeny, NoDupeKeysConfig] | [AllowWarnDeny, NoReservedComponentNames] | [AllowWarnDeny, NoReservedKeysConfig] | [AllowWarnDeny, NoReservedPropsConfig] | [AllowWarnDeny, CaseType2] | [AllowWarnDeny, CaseType2, Options$1] | [AllowWarnDeny, RequireDirectExport] | [AllowWarnDeny, ReturnInComputedPropertyConfig] | [AllowWarnDeny, AllowYoda] | [AllowWarnDeny, AllowYoda, YodaOptions] | undefined;
1717
1717
  }
1718
1718
  interface AccessorPairsConfig {
1719
1719
  /**
@@ -1992,7 +1992,7 @@ interface ImportExtensionsConfig {
1992
1992
  * Per-extension rules.
1993
1993
  */
1994
1994
  pattern?: {
1995
- [k: string]: ExtensionRule;
1995
+ [k: string]: ExtensionRule | undefined;
1996
1996
  };
1997
1997
  }
1998
1998
  interface PathGroupOverrideConfig {
@@ -2327,10 +2327,10 @@ interface NoLargeSnapshotsConfig {
2327
2327
  maxSize?: number;
2328
2328
  }
2329
2329
  interface NoRestrictedTestMethodsConfig {
2330
- [k: string]: (string | null) | undefined;
2330
+ [k: string]: string | null | undefined;
2331
2331
  }
2332
2332
  interface NoRestrictedMatchersConfig {
2333
- [k: string]: (string | null) | undefined;
2333
+ [k: string]: string | null | undefined;
2334
2334
  }
2335
2335
  interface NoStandaloneExpectConfig {
2336
2336
  /**
@@ -6120,9 +6120,11 @@ interface SwitchExhaustivenessCheckConfig {
6120
6120
  */
6121
6121
  considerDefaultExhaustiveForUnions?: boolean;
6122
6122
  /**
6123
- * Regular expression pattern that when matched in a default case comment,
6124
- * will suppress the exhaustiveness check.
6125
- * Example: `"@skip-exhaustive-check"` to allow `default: // @skip-exhaustive-check`
6123
+ * Regular expression pattern for a comment that acts as an omitted `default` case.
6124
+ * The comment must appear after the final case and the switch must not have a `default` case.
6125
+ * For union types, it suppresses the exhaustiveness check only when
6126
+ * `considerDefaultExhaustiveForUnions` is enabled.
6127
+ * Example: `"^skip default$"` to allow a switch ending in `// skip default`.
6126
6128
  */
6127
6129
  defaultCaseCommentPattern?: string;
6128
6130
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "1.80.0",
3
+ "version": "1.81.0",
4
4
  "description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "commander": "^15.0.0",
31
31
  "globals": "^17.0.0",
32
- "oxc-parser": "^0.146.0",
32
+ "oxc-parser": "^0.148.0",
33
33
  "tinyglobby": "^0.2.14"
34
34
  },
35
35
  "devDependencies": {
@@ -72,8 +72,8 @@
72
72
  "husky": "^9.1.7",
73
73
  "lint-staged": "^17.0.0",
74
74
  "next": "^16.0.0",
75
- "oxfmt": "^0.64.0",
76
- "oxlint": "^1.80.0",
75
+ "oxfmt": "^0.66.0",
76
+ "oxlint": "^1.81.0",
77
77
  "oxlint-tsgolint": "^0.25.0",
78
78
  "tsdown": "^0.22.0",
79
79
  "typescript": "^6.0.0",