@oxlint-config-inspector/core 1.1.10 → 1.1.12

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.mjs CHANGED
@@ -244,7 +244,7 @@ function mergeArrays(base, override) {
244
244
  }
245
245
  //#endregion
246
246
  //#region package.json
247
- var version = "1.1.10";
247
+ var version = "1.1.12";
248
248
  //#endregion
249
249
  //#region src/generated/builtin-rule-docs.ts
250
250
  const builtinRuleDocs = {
@@ -1037,6 +1037,12 @@ const builtinRuleDocs = {
1037
1037
  "jest/no-unneeded-async-expect-function": { description: "Disallows unnecessary async function wrapper for expected promises." },
1038
1038
  "jest/no-untyped-mock-factory": { description: "This rule triggers a warning if mock() or doMock() is used without a generic type parameter or return type." },
1039
1039
  "jest/padding-around-after-all-blocks": { description: "This rule enforces a line of padding before and after 1 or more afterAll statements." },
1040
+ "jest/padding-around-after-each-blocks": { description: "This rule enforces a line of padding before and after 1 or more afterEach statements." },
1041
+ "jest/padding-around-all": { description: "This rule enforces padding around test framework functions. It combines the behavior of these rules:" },
1042
+ "jest/padding-around-before-all-blocks": { description: "This rule enforces a line of padding before and after beforeAll statements." },
1043
+ "jest/padding-around-before-each-blocks": { description: "This rule enforces a line of padding before and after 1 or more beforeEach statements." },
1044
+ "jest/padding-around-describe-blocks": { description: "This rule enforces a line of padding before and after 1 or more describe statements." },
1045
+ "jest/padding-around-expect-groups": { description: "This rule enforces a line of padding before and after 1 or more expect statements." },
1040
1046
  "jest/padding-around-test-blocks": { description: "This rule enforces a line of padding before and after 1 or more test/it statements." },
1041
1047
  "jest/prefer-called-with": { description: "Suggest using toBeCalledWith() or toHaveBeenCalledWith()." },
1042
1048
  "jest/prefer-comparison-matcher": { description: "This rule checks for comparisons in tests that could be replaced with one of the following built-in comparison matchers:" },
@@ -1109,7 +1115,7 @@ const builtinRuleDocs = {
1109
1115
  maxArgs: 1,
1110
1116
  minArgs: 1
1111
1117
  },
1112
- description: "Checks that expect() is called correctly."
1118
+ description: "Checks that expect() is called correctly. vitest/valid-expect also checks that expectTypeOf() calls use valid modifiers and invoke a matcher."
1113
1119
  },
1114
1120
  "jest/valid-expect-in-promise": { description: "Ensures that expect calls inside promise chains (.then(), .catch(), .finally()) are properly awaited or returned from the test." },
1115
1121
  "jest/valid-title": { description: "Checks that the titles of Jest and Vitest blocks are valid." },
@@ -1183,6 +1189,7 @@ const builtinRuleDocs = {
1183
1189
  },
1184
1190
  "jsdoc/require-returns-description": { description: "Requires that the @returns tag has a description value. The error will not be reported if the return value is void or undefined or if it is Promise<void> or Promise<undefined>." },
1185
1191
  "jsdoc/require-returns-type": { description: "Requires that the @returns tag has a type value (in curly brackets)." },
1192
+ "jsdoc/require-template-description": { description: "Requires a description for @template tags." },
1186
1193
  "jsdoc/require-throws-description": { description: "Requires a description for @throws tags." },
1187
1194
  "jsdoc/require-throws-type": { description: "Requires a type on the @throws tag." },
1188
1195
  "jsdoc/require-yields": {
@@ -2023,6 +2030,7 @@ const builtinRuleDocs = {
2023
2030
  "typescript/no-unsafe-argument": { description: "This rule disallows calling a function with an argument which is typed as any." },
2024
2031
  "typescript/no-unsafe-assignment": { description: "This rule disallows assigning a value with type any to variables and properties." },
2025
2032
  "typescript/no-unsafe-call": { description: "This rule disallows calling a value with type any." },
2033
+ "typescript/no-unsafe-class-instance-assignment": { description: "Disallows using structurally compatible values where an instance of a class or one of its subclasses is expected. It also checks values nested in types such as arrays and promises." },
2026
2034
  "typescript/no-unsafe-declaration-merging": { description: "Disallow unsafe declaration merging." },
2027
2035
  "typescript/no-unsafe-enum-assignment": { description: "Disallows using values that do not share an enum type where an enum value is expected. This includes assignments, arguments, return values, type assertions, mutations, and computed keys in objects keyed by enum members." },
2028
2036
  "typescript/no-unsafe-enum-comparison": { description: "This rule disallows comparing an enum value with a non-enum value." },
@@ -2342,7 +2350,7 @@ const builtinRuleDocs = {
2342
2350
  "unicorn/no-useless-error-capture-stack-trace": { description: "Disallows unnecessary Error.captureStackTrace(…) in error constructors." },
2343
2351
  "unicorn/no-useless-fallback-in-spread": { description: "Disallow useless fallback when spreading in object literals." },
2344
2352
  "unicorn/no-useless-iterator-to-array": { description: "Disallow unnecessary .toArray() on iterators." },
2345
- "unicorn/no-useless-length-check": { description: "It checks for an unnecessary array length check in a logical expression." },
2353
+ "unicorn/no-useless-length-check": { description: "It checks for an unnecessary array length check in a logical expression or before a for...of loop." },
2346
2354
  "unicorn/no-useless-promise-resolve-reject": {
2347
2355
  defaultOptions: { allowReject: false },
2348
2356
  description: "Disallows returning values wrapped in Promise.resolve or Promise.reject in an async function or a Promise#then/catch/finally callback."
@@ -2416,7 +2424,7 @@ const builtinRuleDocs = {
2416
2424
  "unicorn/prefer-keyboard-event-key": { description: "Enforces the use of KeyboardEvent#key over KeyboardEvent#keyCode, which is deprecated." },
2417
2425
  "unicorn/prefer-logical-operator-over-ternary": { description: "This rule finds ternary expressions that can be simplified to a logical operator." },
2418
2426
  "unicorn/prefer-math-min-max": { description: "Prefers use of Math.min() and Math.max() instead of ternary expressions when performing simple comparisons." },
2419
- "unicorn/prefer-math-trunc": { description: "Prefers use of Math.trunc() instead of bitwise operations for clarity and more reliable results." },
2427
+ "unicorn/prefer-math-trunc": { description: "Prefers use of Math.trunc() instead of bitwise operations or parseInt(String(x), 10) for clarity and more reliable results." },
2420
2428
  "unicorn/prefer-modern-dom-apis": { description: "Enforces the use of:" },
2421
2429
  "unicorn/prefer-modern-math-apis": { description: "Checks for usage of legacy patterns for mathematical operations." },
2422
2430
  "unicorn/prefer-module": { description: "Prefer JavaScript modules (ESM) over CommonJS." },
@@ -2540,6 +2548,12 @@ const builtinRuleDocs = {
2540
2548
  "vitest/no-test-return-statement": { description: "Disallow explicitly returning from tests." },
2541
2549
  "vitest/no-unneeded-async-expect-function": { description: "Disallows unnecessary async function wrapper for expected promises." },
2542
2550
  "vitest/padding-around-after-all-blocks": { description: "This rule enforces a line of padding before and after 1 or more afterAll statements." },
2551
+ "vitest/padding-around-after-each-blocks": { description: "This rule enforces a line of padding before and after 1 or more afterEach statements." },
2552
+ "vitest/padding-around-all": { description: "This rule enforces padding around test framework functions. It combines the behavior of these rules:" },
2553
+ "vitest/padding-around-before-all-blocks": { description: "This rule enforces a line of padding before and after beforeAll statements." },
2554
+ "vitest/padding-around-before-each-blocks": { description: "This rule enforces a line of padding before and after 1 or more beforeEach statements." },
2555
+ "vitest/padding-around-describe-blocks": { description: "This rule enforces a line of padding before and after 1 or more describe statements." },
2556
+ "vitest/padding-around-expect-groups": { description: "This rule enforces a line of padding before and after 1 or more expect statements." },
2543
2557
  "vitest/padding-around-test-blocks": { description: "This rule enforces a line of padding before and after 1 or more test/it statements." },
2544
2558
  "vitest/prefer-called-exactly-once-with": { description: "It checks when a target is asserted with both toHaveBeenCalledOnce and toHaveBeenCalledWith instead of toHaveBeenCalledExactlyOnceWith." },
2545
2559
  "vitest/prefer-called-once": { description: "Substitute toBeCalledTimes(1) and toHaveBeenCalledTimes(1) with toBeCalledOnce() and toHaveBeenCalledOnce() respectively." },
@@ -2610,7 +2624,7 @@ const builtinRuleDocs = {
2610
2624
  maxArgs: 1,
2611
2625
  minArgs: 1
2612
2626
  },
2613
- description: "Checks that expect() is called correctly."
2627
+ description: "Checks that expect() is called correctly. vitest/valid-expect also checks that expectTypeOf() calls use valid modifiers and invoke a matcher."
2614
2628
  },
2615
2629
  "vitest/valid-expect-in-promise": { description: "Ensures that expect calls inside promise chains (.then(), .catch(), .finally()) are properly awaited or returned from the test." },
2616
2630
  "vitest/valid-title": { description: "Checks that the titles of Jest and Vitest blocks are valid." },