@oxlint-config-inspector/core 1.1.8 → 1.1.10
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 +52 -49
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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.
|
|
247
|
+
var version = "1.1.10";
|
|
248
248
|
//#endregion
|
|
249
249
|
//#region src/generated/builtin-rule-docs.ts
|
|
250
250
|
const builtinRuleDocs = {
|
|
@@ -322,7 +322,7 @@ const builtinRuleDocs = {
|
|
|
322
322
|
exceptions: [],
|
|
323
323
|
max: "Infinity",
|
|
324
324
|
min: 2,
|
|
325
|
-
properties: "
|
|
325
|
+
properties: "always"
|
|
326
326
|
},
|
|
327
327
|
description: "Enforce a minimum and/or maximum identifier length convention by counting the graphemes for a given identifier."
|
|
328
328
|
},
|
|
@@ -592,7 +592,10 @@ const builtinRuleDocs = {
|
|
|
592
592
|
"eslint/no-proto": { description: "Disallow the use of the __proto__ property." },
|
|
593
593
|
"eslint/no-prototype-builtins": { description: "Disallow calling some Object.prototype methods directly on objects." },
|
|
594
594
|
"eslint/no-redeclare": {
|
|
595
|
-
defaultOptions: {
|
|
595
|
+
defaultOptions: {
|
|
596
|
+
builtinGlobals: true,
|
|
597
|
+
ignoreDeclarationMerge: true
|
|
598
|
+
},
|
|
596
599
|
description: "This rule disallows redeclaring variables within the same scope, ensuring that each variable is declared only once. It helps avoid confusion and unintended behavior in code."
|
|
597
600
|
},
|
|
598
601
|
"eslint/no-regex-spaces": { description: "Disallow 2+ consecutive spaces in regular expressions." },
|
|
@@ -628,7 +631,7 @@ const builtinRuleDocs = {
|
|
|
628
631
|
defaultOptions: {
|
|
629
632
|
allow: [],
|
|
630
633
|
builtinGlobals: false,
|
|
631
|
-
hoist: "
|
|
634
|
+
hoist: "functions-and-types",
|
|
632
635
|
ignoreFunctionTypeParameterNameValueShadow: true,
|
|
633
636
|
ignoreOnInitialization: false,
|
|
634
637
|
ignoreTypeValueShadow: true
|
|
@@ -750,7 +753,7 @@ const builtinRuleDocs = {
|
|
|
750
753
|
"eslint/no-warning-comments": {
|
|
751
754
|
defaultOptions: {
|
|
752
755
|
decoration: [],
|
|
753
|
-
location: "
|
|
756
|
+
location: "start",
|
|
754
757
|
terms: [
|
|
755
758
|
"todo",
|
|
756
759
|
"fixme",
|
|
@@ -967,14 +970,14 @@ const builtinRuleDocs = {
|
|
|
967
970
|
},
|
|
968
971
|
"import/no-webpack-loader-syntax": { description: "Forbids using Webpack loader syntax directly in import or require statements." },
|
|
969
972
|
"import/prefer-default-export": {
|
|
970
|
-
defaultOptions: { target: "
|
|
973
|
+
defaultOptions: { target: "single" },
|
|
971
974
|
description: "Checks whether there is a default export."
|
|
972
975
|
},
|
|
973
976
|
"import/unambiguous": { description: "Warn if a module could be mistakenly parsed as a script instead of as a pure ES module." },
|
|
974
977
|
"jest/consistent-test-it": {
|
|
975
978
|
defaultOptions: {
|
|
976
|
-
fn: "
|
|
977
|
-
withinDescribe: "
|
|
979
|
+
fn: "test",
|
|
980
|
+
withinDescribe: "it"
|
|
978
981
|
},
|
|
979
982
|
description: "Jest allows you to choose how you want to define your tests, using the it or the test keywords, with multiple permutations for each:"
|
|
980
983
|
},
|
|
@@ -999,7 +1002,7 @@ const builtinRuleDocs = {
|
|
|
999
1002
|
"jest/no-conditional-in-test": { description: "Disallow conditional statements in tests." },
|
|
1000
1003
|
"jest/no-confusing-set-timeout": { description: "Disallow confusing usages of jest.setTimeout." },
|
|
1001
1004
|
"jest/no-deprecated-functions": {
|
|
1002
|
-
defaultOptions: { jest: { version: "
|
|
1005
|
+
defaultOptions: { jest: { version: "29" } },
|
|
1003
1006
|
description: "Over the years Jest has accrued some debt in the form of functions that have either been renamed for clarity, or replaced with more powerful APIs."
|
|
1004
1007
|
},
|
|
1005
1008
|
"jest/no-disabled-tests": { description: "This rule raises a warning about disabled tests." },
|
|
@@ -1035,7 +1038,7 @@ const builtinRuleDocs = {
|
|
|
1035
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." },
|
|
1036
1039
|
"jest/padding-around-after-all-blocks": { description: "This rule enforces a line of padding before and after 1 or more afterAll statements." },
|
|
1037
1040
|
"jest/padding-around-test-blocks": { description: "This rule enforces a line of padding before and after 1 or more test/it statements." },
|
|
1038
|
-
"jest/prefer-called-with": { description: "Suggest using toBeCalledWith() or toHaveBeenCalledWith()" },
|
|
1041
|
+
"jest/prefer-called-with": { description: "Suggest using toBeCalledWith() or toHaveBeenCalledWith()." },
|
|
1039
1042
|
"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:" },
|
|
1040
1043
|
"jest/prefer-each": { description: "This rule enforces using each rather than manual loops." },
|
|
1041
1044
|
"jest/prefer-ending-with-an-expect": {
|
|
@@ -1141,7 +1144,7 @@ const builtinRuleDocs = {
|
|
|
1141
1144
|
checkGetters: true,
|
|
1142
1145
|
checkRestProperty: false,
|
|
1143
1146
|
checkSetters: true,
|
|
1144
|
-
checkTypesPattern: "
|
|
1147
|
+
checkTypesPattern: "^(?:[oO]bject|[aA]rray|PlainObject|Generic(?:Object|Array))$",
|
|
1145
1148
|
exemptedBy: ["inheritdoc"],
|
|
1146
1149
|
ignoreWhenAllParamsMissing: false,
|
|
1147
1150
|
interfaceExemptsParamsCheck: false,
|
|
@@ -1151,7 +1154,7 @@ const builtinRuleDocs = {
|
|
|
1151
1154
|
},
|
|
1152
1155
|
"jsdoc/require-param-description": {
|
|
1153
1156
|
defaultOptions: {
|
|
1154
|
-
defaultDestructuredRootDescription: "
|
|
1157
|
+
defaultDestructuredRootDescription: "The root object",
|
|
1155
1158
|
setDefaultDestructuredRootDescription: false
|
|
1156
1159
|
},
|
|
1157
1160
|
description: "Requires that each @param tag has a description value."
|
|
@@ -1159,7 +1162,7 @@ const builtinRuleDocs = {
|
|
|
1159
1162
|
"jsdoc/require-param-name": { description: "Requires that all @param tags have names." },
|
|
1160
1163
|
"jsdoc/require-param-type": {
|
|
1161
1164
|
defaultOptions: {
|
|
1162
|
-
defaultDestructuredRootType: "
|
|
1165
|
+
defaultDestructuredRootType: "object",
|
|
1163
1166
|
setDefaultDestructuredRootType: false
|
|
1164
1167
|
},
|
|
1165
1168
|
description: "Requires that each @param tag has a type value (within curly brackets)."
|
|
@@ -1298,7 +1301,7 @@ const builtinRuleDocs = {
|
|
|
1298
1301
|
},
|
|
1299
1302
|
"jsx-a11y/label-has-associated-control": {
|
|
1300
1303
|
defaultOptions: {
|
|
1301
|
-
assert: "
|
|
1304
|
+
assert: "either",
|
|
1302
1305
|
controlComponents: [],
|
|
1303
1306
|
depth: 2,
|
|
1304
1307
|
labelAttributes: [
|
|
@@ -1474,13 +1477,13 @@ const builtinRuleDocs = {
|
|
|
1474
1477
|
description: "Disallow the use of object or array spreads in Array.prototype.map and Array.prototype.flatMap to add properties/elements to array items."
|
|
1475
1478
|
},
|
|
1476
1479
|
"oxc/no-optional-chaining": {
|
|
1477
|
-
defaultOptions: { message: "
|
|
1480
|
+
defaultOptions: { message: "" },
|
|
1478
1481
|
description: "Disallow optional chaining."
|
|
1479
1482
|
},
|
|
1480
1483
|
"oxc/no-rest-spread-properties": {
|
|
1481
1484
|
defaultOptions: {
|
|
1482
|
-
objectRestMessage: "
|
|
1483
|
-
objectSpreadMessage: "
|
|
1485
|
+
objectRestMessage: "",
|
|
1486
|
+
objectSpreadMessage: ""
|
|
1484
1487
|
},
|
|
1485
1488
|
description: "Disallow Object Rest/Spread Properties."
|
|
1486
1489
|
},
|
|
@@ -1589,15 +1592,15 @@ const builtinRuleDocs = {
|
|
|
1589
1592
|
},
|
|
1590
1593
|
"react/jsx-curly-brace-presence": {
|
|
1591
1594
|
defaultOptions: {
|
|
1592
|
-
children: "
|
|
1593
|
-
propElementValues: "
|
|
1594
|
-
props: "
|
|
1595
|
+
children: "never",
|
|
1596
|
+
propElementValues: "ignore",
|
|
1597
|
+
props: "never"
|
|
1595
1598
|
},
|
|
1596
1599
|
description: "Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes."
|
|
1597
1600
|
},
|
|
1598
1601
|
"react/jsx-filename-extension": {
|
|
1599
1602
|
defaultOptions: {
|
|
1600
|
-
allow: "
|
|
1603
|
+
allow: "always",
|
|
1601
1604
|
extensions: ["jsx"],
|
|
1602
1605
|
ignoreFilesWithoutCode: false
|
|
1603
1606
|
},
|
|
@@ -1608,8 +1611,8 @@ const builtinRuleDocs = {
|
|
|
1608
1611
|
defaultOptions: {
|
|
1609
1612
|
checkInlineFunction: false,
|
|
1610
1613
|
checkLocalVariables: false,
|
|
1611
|
-
eventHandlerPrefix: "
|
|
1612
|
-
eventHandlerPropPrefix: "
|
|
1614
|
+
eventHandlerPrefix: "handle",
|
|
1615
|
+
eventHandlerPropPrefix: "on",
|
|
1613
1616
|
ignoreComponentNames: []
|
|
1614
1617
|
},
|
|
1615
1618
|
description: "Ensures that any component or prop methods used to handle events are correctly prefixed."
|
|
@@ -1646,7 +1649,7 @@ const builtinRuleDocs = {
|
|
|
1646
1649
|
"react/jsx-no-target-blank": {
|
|
1647
1650
|
defaultOptions: {
|
|
1648
1651
|
allowReferrer: false,
|
|
1649
|
-
enforceDynamicLinks: "
|
|
1652
|
+
enforceDynamicLinks: "always",
|
|
1650
1653
|
forms: false,
|
|
1651
1654
|
links: true,
|
|
1652
1655
|
warnOnSpreadAttributes: false
|
|
@@ -1670,10 +1673,10 @@ const builtinRuleDocs = {
|
|
|
1670
1673
|
"react/jsx-props-no-spread-multi": { description: "Enforces that any unique expression is only spread once." },
|
|
1671
1674
|
"react/jsx-props-no-spreading": {
|
|
1672
1675
|
defaultOptions: {
|
|
1673
|
-
custom: "
|
|
1676
|
+
custom: "enforce",
|
|
1674
1677
|
exceptions: [],
|
|
1675
|
-
explicitSpread: "
|
|
1676
|
-
html: "
|
|
1678
|
+
explicitSpread: "enforce",
|
|
1679
|
+
html: "enforce"
|
|
1677
1680
|
},
|
|
1678
1681
|
description: "Disallow JSX prop spreading."
|
|
1679
1682
|
},
|
|
@@ -1720,7 +1723,7 @@ const builtinRuleDocs = {
|
|
|
1720
1723
|
defaultOptions: {
|
|
1721
1724
|
allowAsProps: false,
|
|
1722
1725
|
customValidators: [],
|
|
1723
|
-
propNamePattern: "
|
|
1726
|
+
propNamePattern: "render*"
|
|
1724
1727
|
},
|
|
1725
1728
|
description: "Disallows defining React components inside other components."
|
|
1726
1729
|
},
|
|
@@ -1778,7 +1781,7 @@ const builtinRuleDocs = {
|
|
|
1778
1781
|
"typescript/adjacent-overload-signatures": { description: "Require that function overload signatures be consecutive." },
|
|
1779
1782
|
"typescript/array-type": {
|
|
1780
1783
|
defaultOptions: {
|
|
1781
|
-
default: "
|
|
1784
|
+
default: "array",
|
|
1782
1785
|
readonly: null
|
|
1783
1786
|
},
|
|
1784
1787
|
description: "Require consistently using either T[] or Array<T> for arrays."
|
|
@@ -1809,8 +1812,8 @@ const builtinRuleDocs = {
|
|
|
1809
1812
|
"typescript/consistent-type-imports": {
|
|
1810
1813
|
defaultOptions: {
|
|
1811
1814
|
disallowTypeAnnotations: true,
|
|
1812
|
-
fixStyle: "
|
|
1813
|
-
prefer: "
|
|
1815
|
+
fixStyle: "separate-type-imports",
|
|
1816
|
+
prefer: "type-imports"
|
|
1814
1817
|
},
|
|
1815
1818
|
description: "Enforce consistent usage of type imports by adding or removing the type keyword from imports."
|
|
1816
1819
|
},
|
|
@@ -1818,7 +1821,7 @@ const builtinRuleDocs = {
|
|
|
1818
1821
|
defaultOptions: {
|
|
1819
1822
|
allowIndexSignaturePropertyAccess: false,
|
|
1820
1823
|
allowKeywords: true,
|
|
1821
|
-
allowPattern: "
|
|
1824
|
+
allowPattern: "",
|
|
1822
1825
|
allowPrivateClassPropertyAccess: false,
|
|
1823
1826
|
allowProtectedClassPropertyAccess: false
|
|
1824
1827
|
},
|
|
@@ -1894,8 +1897,8 @@ const builtinRuleDocs = {
|
|
|
1894
1897
|
},
|
|
1895
1898
|
"typescript/no-empty-object-type": {
|
|
1896
1899
|
defaultOptions: {
|
|
1897
|
-
allowInterfaces: "
|
|
1898
|
-
allowObjectTypes: "
|
|
1900
|
+
allowInterfaces: "never",
|
|
1901
|
+
allowObjectTypes: "never"
|
|
1899
1902
|
},
|
|
1900
1903
|
description: "To avoid confusion around the {} type allowing any non-nullish value, this rule bans usage of the {} type. That includes interfaces and object type aliases with no fields."
|
|
1901
1904
|
},
|
|
@@ -1948,7 +1951,7 @@ const builtinRuleDocs = {
|
|
|
1948
1951
|
"typescript/no-misused-new": { description: "Enforces valid definitions of new and constructor. This rule prevents classes from defining a method named new, interfaces from defining a method named constructor, and interfaces from defining a construct signature that returns the interface itself." },
|
|
1949
1952
|
"typescript/no-misused-promises": {
|
|
1950
1953
|
defaultOptions: {
|
|
1951
|
-
checksConditionals:
|
|
1954
|
+
checksConditionals: { flagUnions: "none" },
|
|
1952
1955
|
checksSpreads: true,
|
|
1953
1956
|
checksVoidReturn: {
|
|
1954
1957
|
arguments: true,
|
|
@@ -2048,7 +2051,7 @@ const builtinRuleDocs = {
|
|
|
2048
2051
|
"typescript/parameter-properties": {
|
|
2049
2052
|
defaultOptions: {
|
|
2050
2053
|
allow: [],
|
|
2051
|
-
prefer: "
|
|
2054
|
+
prefer: "class-property"
|
|
2052
2055
|
},
|
|
2053
2056
|
description: "Requires or disallows parameter properties in class constructors."
|
|
2054
2057
|
},
|
|
@@ -2118,7 +2121,7 @@ const builtinRuleDocs = {
|
|
|
2118
2121
|
"typescript/prefer-regexp-exec": { description: "Prefer RegExp#exec() over String#match() when extracting a regex match." },
|
|
2119
2122
|
"typescript/prefer-return-this-type": { description: "This rule enforces using this types for return types when possible." },
|
|
2120
2123
|
"typescript/prefer-string-starts-ends-with": {
|
|
2121
|
-
defaultOptions: { allowSingleElementEquality: "
|
|
2124
|
+
defaultOptions: { allowSingleElementEquality: "never" },
|
|
2122
2125
|
description: "Prefer startsWith and endsWith over manual string boundary checks."
|
|
2123
2126
|
},
|
|
2124
2127
|
"typescript/prefer-ts-expect-error": { description: "Enforce using @ts-expect-error over @ts-ignore." },
|
|
@@ -2198,9 +2201,9 @@ const builtinRuleDocs = {
|
|
|
2198
2201
|
},
|
|
2199
2202
|
"typescript/triple-slash-reference": {
|
|
2200
2203
|
defaultOptions: {
|
|
2201
|
-
lib: "
|
|
2202
|
-
path: "
|
|
2203
|
-
types: "
|
|
2204
|
+
lib: "always",
|
|
2205
|
+
path: "never",
|
|
2206
|
+
types: "prefer-import"
|
|
2204
2207
|
},
|
|
2205
2208
|
description: "Disallow certain triple slash directives in favor of ES module import declarations."
|
|
2206
2209
|
},
|
|
@@ -2217,7 +2220,7 @@ const builtinRuleDocs = {
|
|
|
2217
2220
|
},
|
|
2218
2221
|
"typescript/use-unknown-in-catch-callback-variable": { description: "This rule enforces using unknown for catch clause variables instead of any." },
|
|
2219
2222
|
"unicorn/catch-error-name": {
|
|
2220
|
-
defaultOptions: { name: "
|
|
2223
|
+
defaultOptions: { name: "error" },
|
|
2221
2224
|
description: "This rule enforces consistent and descriptive naming for error variables in catch statements, preventing the use of vague names like badName or _ when the error is used."
|
|
2222
2225
|
},
|
|
2223
2226
|
"unicorn/consistent-assert": { description: "Enforces consistent usage of the assert module." },
|
|
@@ -2234,7 +2237,7 @@ const builtinRuleDocs = {
|
|
|
2234
2237
|
"unicorn/error-message": { description: "Enforces providing a message when creating built-in Error objects to improve readability and debugging." },
|
|
2235
2238
|
"unicorn/escape-case": { description: "Enforces defining escape sequence values with uppercase characters rather than lowercase ones. This promotes readability by making the escaped value more distinguishable from the identifier." },
|
|
2236
2239
|
"unicorn/explicit-length-check": {
|
|
2237
|
-
defaultOptions: { "non-zero": "
|
|
2240
|
+
defaultOptions: { "non-zero": "greater-than" },
|
|
2238
2241
|
description: "Enforce explicitly comparing the length or size property of a value."
|
|
2239
2242
|
},
|
|
2240
2243
|
"unicorn/explicit-timer-delay": { description: "Enforce or disallow explicit delay argument for setTimeout() and setInterval()." },
|
|
@@ -2297,7 +2300,7 @@ const builtinRuleDocs = {
|
|
|
2297
2300
|
defaultOptions: {
|
|
2298
2301
|
exclude: [],
|
|
2299
2302
|
include: [],
|
|
2300
|
-
strategy: "
|
|
2303
|
+
strategy: "loose",
|
|
2301
2304
|
useErrorIsError: false
|
|
2302
2305
|
},
|
|
2303
2306
|
description: "Disallows the use of instanceof with ECMAScript built-in constructors because:"
|
|
@@ -2477,13 +2480,13 @@ const builtinRuleDocs = {
|
|
|
2477
2480
|
"vitest/consistent-test-filename": { description: "This rule triggers an error when a file is considered a test file, but its name does not match an expected filename format." },
|
|
2478
2481
|
"vitest/consistent-test-it": {
|
|
2479
2482
|
defaultOptions: {
|
|
2480
|
-
fn: "
|
|
2481
|
-
withinDescribe: "
|
|
2483
|
+
fn: "test",
|
|
2484
|
+
withinDescribe: "it"
|
|
2482
2485
|
},
|
|
2483
2486
|
description: "Vitest allows you to choose how you want to define your tests, using the it or the test keywords, with multiple permutations for each:"
|
|
2484
2487
|
},
|
|
2485
2488
|
"vitest/consistent-vitest-vi": {
|
|
2486
|
-
defaultOptions: { fn: "
|
|
2489
|
+
defaultOptions: { fn: "vi" },
|
|
2487
2490
|
description: "This rule triggers an error when an unexpected Vitest accessor is used."
|
|
2488
2491
|
},
|
|
2489
2492
|
"vitest/expect-expect": {
|
|
@@ -2541,7 +2544,7 @@ const builtinRuleDocs = {
|
|
|
2541
2544
|
"vitest/prefer-called-exactly-once-with": { description: "It checks when a target is asserted with both toHaveBeenCalledOnce and toHaveBeenCalledWith instead of toHaveBeenCalledExactlyOnceWith." },
|
|
2542
2545
|
"vitest/prefer-called-once": { description: "Substitute toBeCalledTimes(1) and toHaveBeenCalledTimes(1) with toBeCalledOnce() and toHaveBeenCalledOnce() respectively." },
|
|
2543
2546
|
"vitest/prefer-called-times": { description: "This rule aims to enforce the use of toBeCalledTimes(1) or toHaveBeenCalledTimes(1) over toBeCalledOnce() or toHaveBeenCalledOnce()." },
|
|
2544
|
-
"vitest/prefer-called-with": { description: "Suggest using toBeCalledWith() or toHaveBeenCalledWith()" },
|
|
2547
|
+
"vitest/prefer-called-with": { description: "Suggest using toBeCalledWith() or toHaveBeenCalledWith()." },
|
|
2545
2548
|
"vitest/prefer-comparison-matcher": { description: "This rule checks for comparisons in tests that could be replaced with one of the following built-in comparison matchers:" },
|
|
2546
2549
|
"vitest/prefer-describe-function-title": { description: "When testing a specific function, this rule aims to enforce passing a named function to describe() instead of an equivalent hardcoded string." },
|
|
2547
2550
|
"vitest/prefer-each": { description: "This rule enforces using each rather than manual loops." },
|
|
@@ -2573,7 +2576,7 @@ const builtinRuleDocs = {
|
|
|
2573
2576
|
"vitest/prefer-mock-return-shorthand": { description: "When working with mocks of functions that return simple values, Jest provides some API sugar functions to reduce the amount of boilerplate you have to write." },
|
|
2574
2577
|
"vitest/prefer-snapshot-hint": { description: "Enforces including a hint string with snapshot matchers (toMatchSnapshot and toThrowErrorMatchingSnapshot)." },
|
|
2575
2578
|
"vitest/prefer-spy-on": { description: "When mocking a function by overwriting a property you have to manually restore the original implementation when cleaning up. When using jest.spyOn() Jest keeps track of changes, and they can be restored with jest.restoreAllMocks(), mockFn.mockRestore() or by setting restoreMocks to true in the Jest config." },
|
|
2576
|
-
"vitest/prefer-strict-boolean-matchers": { description: "
|
|
2579
|
+
"vitest/prefer-strict-boolean-matchers": { description: "This rule warns when toBeTruthy() or toBeFalsy() is used with expect or expectTypeOf. With --fix-suggestions, it will be replaced with toBe(true) or toBe(false)." },
|
|
2577
2580
|
"vitest/prefer-strict-equal": { description: "This rule triggers a warning if toEqual() is used to assert equality." },
|
|
2578
2581
|
"vitest/prefer-to-be": { description: "Recommends using toBe matcher for primitive literals and specific matchers for null, undefined, and NaN." },
|
|
2579
2582
|
"vitest/prefer-to-be-falsy": { description: "This rule warns when toBe(false) is used with expect or expectTypeOf. With --fix-suggestions, it will be replaced with toBeFalsy()." },
|
|
@@ -2616,7 +2619,7 @@ const builtinRuleDocs = {
|
|
|
2616
2619
|
"vue/define-emits-declaration": { description: "Enforce consistent declaration style for defineEmits in Vue. This rule only works in <script setup> with lang=\"ts\"." },
|
|
2617
2620
|
"vue/define-props-declaration": { description: "Enforce consistent declaration style for defineProps in Vue. This rule only works in <script setup> with lang=\"ts\"." },
|
|
2618
2621
|
"vue/define-props-destructuring": {
|
|
2619
|
-
defaultOptions: { destructure: "
|
|
2622
|
+
defaultOptions: { destructure: "only-when-assigned" },
|
|
2620
2623
|
description: "This rule enforces a consistent style for handling Vue 3 Composition API props, allowing you to choose between requiring destructuring or prohibiting it."
|
|
2621
2624
|
},
|
|
2622
2625
|
"vue/max-props": {
|