@oxlint-config-inspector/core 1.1.0 → 1.1.2

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.d.mts CHANGED
@@ -139,7 +139,8 @@ type InspectedOverrideGroupRule = {
139
139
  type InspectedOverrideGroup = {
140
140
  /** File globs excluded by the override, when configured. */excludeFiles?: string[]; /** File globs included by the override. */
141
141
  files: string[]; /** Zero-based position of the override in the resolved config. */
142
- index: number; /** Plugins enabled by this override block. */
142
+ index: number; /** JS plugins enabled by this override block. */
143
+ jsPlugins?: string[]; /** Plugins enabled by this override block. */
143
144
  plugins?: string[]; /** Rules configured by this override block. */
144
145
  rules: InspectedOverrideGroupRule[];
145
146
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/config.ts","../src/plugins.ts","../src/types.ts","../src/inspect.ts","../src/rules.ts"],"mappings":";KAmBY,gBAAA;EAAgB,+EAE1B,KAAA,YAF0B;EAI1B,UAAA;EAEA,GAAA;AAAA;;cAoBW,YAAA;;;;;;KCCD,eAAA;EACV,OAAA;EACA,IAAA;EACA,SAAA;AAAA;;;KCjDU,QAAA;EACV,KAAA;EACA,KAAA;EACA,QAAA;EACA,UAAA;EACA,GAAA;EACA,OAAA;EACA,QAAA;AAAA;;;;;;KCQU,qBAAA;;;AHUP;KGLO,eAAA;EHyB2F,8CGvBrG,SAAA,UHuBqG;EGrBrG,IAAA;EAEA,SAAA;EAEA,MAAA,EAAQ,qBAAqB;AAAA;;;;KAMnB,wBAAA,GAA2B,eAAe;;;AFe3C;KEVC,YAAA;;;ADvCZ;KC4CY,mBAAA;;;;KAKA,iBAAA;;;;KAKA,0BAAA;;;AD/CF;KCoDE,mBAAA;gGAEV,OAAA,aA9CU;EAgDV,GAAA;EAEA,MAAA,UAlD+B;EAoD/B,QAAA,EAAU,YAAY;AAAA;;;;KAMZ,kBAAA;EA/CV,sDAiDA,YAAA,UA/CQ;EAiDR,eAAA,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WAAA,YA1B2B;EA4B3B,cAAA,UAtBgC;EAwBhC,WAAA,UAZiC;EAcjC,cAAA,EAAgB,sBAAA,IAtBhB;EAwBA,YAAA,EAAc,wBAAA,IApBd;EAsBA,OAAA,EAAS,eAAA,IAlBT;EAoBA,iBAAA,YApBiC;EAsBjC,KAAA,EAAO,aAAA,IAhBG;EAkBV,KAAA,EAAO,kBAAA;EAEP,YAAA,EAAc,aAAA,IAVA;EAYd,OAAA;AAAA;;;;;;;iBAeoB,aAAA,CAAc,OAAA,GAAS,gBAAA,GAAwB,OAAA,CAAQ,mBAAA;;;KC1OjE,qBAAA;EJagB,wEIX1B,WAAW;AAAA;;;;;AJiBR;AAoBL;iBI5BsB,cAAA,CAAe,OAAA,GAAU,qBAAA,GAAwB,OAAA,CAAQ,QAAA"}
package/dist/index.mjs CHANGED
@@ -242,7 +242,7 @@ function mergeArrays(base, override) {
242
242
  }
243
243
  //#endregion
244
244
  //#region package.json
245
- var version = "1.1.0";
245
+ var version = "1.1.2";
246
246
  //#endregion
247
247
  //#region src/generated/builtin-rule-docs.ts
248
248
  const builtinRuleDocs = {
@@ -313,6 +313,7 @@ const builtinRuleDocs = {
313
313
  description: "Require grouped accessor pairs in object literals and classes."
314
314
  },
315
315
  "eslint/guard-for-in": { description: "Require for-in loops to include an if statement." },
316
+ "eslint/id-denylist": { description: "Disallow specified identifiers" },
316
317
  "eslint/id-length": {
317
318
  defaultOptions: {
318
319
  checkGeneric: true,
@@ -429,7 +430,10 @@ const builtinRuleDocs = {
429
430
  description: "Disallow the use of console."
430
431
  },
431
432
  "eslint/no-const-assign": { description: "Disallow reassigning const variables." },
432
- "eslint/no-constant-binary-expression": { description: "Disallow expressions where the operation doesn't affect the value." },
433
+ "eslint/no-constant-binary-expression": {
434
+ defaultOptions: { checkRelationalComparisons: true },
435
+ description: "Disallow expressions where the operation doesn't affect the value."
436
+ },
433
437
  "eslint/no-constant-condition": { description: "Disallow constant expressions in conditions." },
434
438
  "eslint/no-constructor-return": { description: "Disallow returning a value from a constructor." },
435
439
  "eslint/no-continue": { description: "Disallow continue statements." },
@@ -465,7 +469,7 @@ const builtinRuleDocs = {
465
469
  "eslint/no-empty-static-block": { description: "Disallow empty static blocks." },
466
470
  "eslint/no-eq-null": { description: "Disallow null comparisons without type-checking operators." },
467
471
  "eslint/no-eval": {
468
- defaultOptions: { allowIndirect: true },
472
+ defaultOptions: { allowIndirect: false },
469
473
  description: "Disallows referencing the eval function. This rule is aimed at preventing potentially dangerous, unnecessary, and slow code by disallowing the use of the eval() function."
470
474
  },
471
475
  "eslint/no-ex-assign": { description: "Disallow reassigning exceptions in catch clauses." },
@@ -514,7 +518,7 @@ const builtinRuleDocs = {
514
518
  },
515
519
  "eslint/no-irregular-whitespace": {
516
520
  defaultOptions: {
517
- skipComments: true,
521
+ skipComments: false,
518
522
  skipJSXText: true,
519
523
  skipRegExps: true,
520
524
  skipStrings: true,
@@ -603,19 +607,8 @@ const builtinRuleDocs = {
603
607
  },
604
608
  description: "This rule disallows specified names from being used as exported names."
605
609
  },
606
- "eslint/no-restricted-globals": {
607
- defaultOptions: {
608
- checkGlobalObject: false,
609
- globalObjects: [
610
- "globalThis",
611
- "self",
612
- "window"
613
- ],
614
- globals: {}
615
- },
616
- description: "Specify global variable names that should not be used in your application."
617
- },
618
- "eslint/no-restricted-imports": { description: "This rule allows you to specify imports that you don’t want to use in your application. It applies to static imports only, not dynamic ones." },
610
+ "eslint/no-restricted-globals": { description: "Specify global variable names that should not be used in your application." },
611
+ "eslint/no-restricted-imports": { description: "This rule allows you to specify imports that you don’t want to use in your application. It applies to static imports and to dynamic import() with a string-literal source; computed sources like import(bar) are ignored." },
619
612
  "eslint/no-restricted-properties": { description: "This rule allows you to disallow access to certain properties on certain objects." },
620
613
  "eslint/no-return-assign": { description: "Disallows assignment operators in return statements." },
621
614
  "eslint/no-script-url": { description: "Disallow javascript: URLs." },
@@ -671,12 +664,16 @@ const builtinRuleDocs = {
671
664
  description: "Disallows dangling underscores in identifiers."
672
665
  },
673
666
  "eslint/no-unexpected-multiline": { description: "In most cases, semicolons are not required in JavaScript in order for code to be parsed and executed as expected. Typically this occurs because semicolons are automatically inserted based on a fixed set of rules. This rule exists to detect those cases where a semicolon is NOT inserted automatically, and may be parsed differently than expected." },
674
- "eslint/no-unmodified-loop-condition": { description: "Disallow references in loop conditions that are never modified within the loop." },
667
+ "eslint/no-unmodified-loop-condition": {
668
+ defaultOptions: { checkConditionalExpressions: false },
669
+ description: "Disallow references in loop conditions that are never modified within the loop."
670
+ },
675
671
  "eslint/no-unneeded-ternary": {
676
672
  defaultOptions: { defaultAssignment: true },
677
673
  description: "Disallow ternary operators when simpler alternatives exist."
678
674
  },
679
675
  "eslint/no-unreachable": { description: "Disallow unreachable code after return, throw, continue, and break statements." },
676
+ "eslint/no-unreachable-loop": { description: "Disallow loops whose body allows only one iteration." },
680
677
  "eslint/no-unsafe-finally": { description: "Disallow control flow statements in finally blocks." },
681
678
  "eslint/no-unsafe-negation": {
682
679
  defaultOptions: { enforceForOrderingRelations: false },
@@ -748,7 +745,18 @@ const builtinRuleDocs = {
748
745
  defaultOptions: { allowAsStatement: false },
749
746
  description: "Disallows the use of the void operator."
750
747
  },
751
- "eslint/no-warning-comments": { description: "Disallows warning comments such as TODO, FIXME, XXX in code." },
748
+ "eslint/no-warning-comments": {
749
+ defaultOptions: {
750
+ decoration: [],
751
+ location: "\"start\"",
752
+ terms: [
753
+ "todo",
754
+ "fixme",
755
+ "xxx"
756
+ ]
757
+ },
758
+ description: "Disallows warning comments such as TODO, FIXME, XXX in code."
759
+ },
752
760
  "eslint/no-with": { description: "Disallow with statements." },
753
761
  "eslint/object-shorthand": {
754
762
  defaultOptions: { "The 2nd option": {
@@ -758,6 +766,7 @@ const builtinRuleDocs = {
758
766
  } },
759
767
  description: "Require or disallow method and property shorthand syntax for object literals"
760
768
  },
769
+ "eslint/one-var": { description: "Enforces variables to be declared either together or separately." },
761
770
  "eslint/operator-assignment": { description: "This rule requires or disallows assignment operator shorthand where possible. It encourages the use of shorthand assignment operators like +=, -=, =, /=, etc. to make the code more concise and readable." },
762
771
  "eslint/prefer-arrow-callback": {
763
772
  defaultOptions: {
@@ -771,7 +780,10 @@ const builtinRuleDocs = {
771
780
  description: "Requires const declarations for variables that are never reassigned after their initial declaration."
772
781
  },
773
782
  "eslint/prefer-destructuring": {
774
- defaultOptions: { "The 2nd option": { enforceForRenamedProperties: false } },
783
+ defaultOptions: { "The 2nd option": {
784
+ enforceForDeclarationWithTypeAnnotation: false,
785
+ enforceForRenamedProperties: false
786
+ } },
775
787
  description: "Require destructuring from arrays and/or objects."
776
788
  },
777
789
  "eslint/prefer-exponentiation-operator": { description: "Disallow the use of Math.pow in favor of the operator." },
@@ -1003,7 +1015,7 @@ const builtinRuleDocs = {
1003
1015
  "jest/no-large-snapshots": {
1004
1016
  defaultOptions: {
1005
1017
  allowedSnapshots: {},
1006
- inlineMaxSize: 50,
1018
+ inlineMaxSize: null,
1007
1019
  maxSize: 50
1008
1020
  },
1009
1021
  description: "Disallow large snapshots."
@@ -1111,6 +1123,10 @@ const builtinRuleDocs = {
1111
1123
  description: "Expects the following tags to be empty of any content:"
1112
1124
  },
1113
1125
  "jsdoc/implements-on-classes": { description: "Reports an issue with any non-constructor function using @implements." },
1126
+ "jsdoc/no-blank-blocks": {
1127
+ defaultOptions: { enableFixer: false },
1128
+ description: "Reports and optionally removes blocks with whitespace only."
1129
+ },
1114
1130
  "jsdoc/no-defaults": {
1115
1131
  defaultOptions: { noOptionalParamNames: false },
1116
1132
  description: "This rule reports defaults being used on the relevant portion of @param or @default. It also optionally reports the presence of the square-bracketed optional arguments at all."
@@ -1124,7 +1140,10 @@ const builtinRuleDocs = {
1124
1140
  checkRestProperty: false,
1125
1141
  checkSetters: true,
1126
1142
  checkTypesPattern: "\"^(?:[oO]bject|[aA]rray|PlainObject|Generic(?:Object|Array))$\"",
1127
- exemptedBy: ["inheritdoc"]
1143
+ exemptedBy: ["inheritdoc"],
1144
+ ignoreWhenAllParamsMissing: false,
1145
+ interfaceExemptsParamsCheck: false,
1146
+ useDefaultObjectProperties: false
1128
1147
  },
1129
1148
  description: "Requires that all function parameters are documented with JSDoc @param tags."
1130
1149
  },
@@ -1190,7 +1209,10 @@ const builtinRuleDocs = {
1190
1209
  ] },
1191
1210
  description: "Inspects anchor link text for the use of ambiguous words."
1192
1211
  },
1193
- "jsx-a11y/anchor-has-content": { description: "Enforce that anchors have content and that the content is accessible to screen readers. Accessible means that it is not hidden using the aria-hidden prop." },
1212
+ "jsx-a11y/anchor-has-content": {
1213
+ defaultOptions: { components: [] },
1214
+ description: "Enforce that anchors have content and that the content is accessible to screen readers. Accessible means that it is not hidden using the aria-hidden prop."
1215
+ },
1194
1216
  "jsx-a11y/anchor-is-valid": {
1195
1217
  defaultOptions: {
1196
1218
  components: [],
@@ -1385,6 +1407,10 @@ const builtinRuleDocs = {
1385
1407
  "nextjs/no-typos": { description: "Detects common typos in Next.js data fetching function names." },
1386
1408
  "nextjs/no-unwanted-polyfillio": { description: "Prevent use of unsafe polyfill.io domains and duplicate polyfills." },
1387
1409
  "node/callback-return": { description: "Require return statements after callbacks." },
1410
+ "node/exports-style": {
1411
+ defaultOptions: { "The 2nd option": { allowBatchAssign: false } },
1412
+ description: "Enforce either module.exports or exports."
1413
+ },
1388
1414
  "node/global-require": { description: "Require require() calls to be placed at top-level module scope." },
1389
1415
  "node/handle-callback-err": { description: "This rule expects that when you're using the callback pattern in Node.js you'll handle the error." },
1390
1416
  "node/no-exports-assign": { description: "Disallows assignment to exports." },
@@ -1408,11 +1434,16 @@ const builtinRuleDocs = {
1408
1434
  },
1409
1435
  description: "Disallows synchronous methods from being called in Node.js code."
1410
1436
  },
1437
+ "node/no-top-level-await": {
1438
+ defaultOptions: { ignoreBin: false },
1439
+ description: "Disallows the use of top-level await, including for await...of loops and await using declarations that are not nested inside a function."
1440
+ },
1411
1441
  "oxc/approx-constant": { description: "Disallows the use of approximate constants, instead preferring the use of the constants in the Math object." },
1412
1442
  "oxc/bad-array-method-on-arguments": { description: "This rule applies when an array method is called on the arguments object itself." },
1413
1443
  "oxc/bad-bitwise-operator": { description: "This rule applies when bitwise operators are used where logical operators are expected." },
1414
- "oxc/bad-char-at-comparison": { description: "This rule warns when the return value of the charAt method is used to compare a string of length greater than 1." },
1444
+ "oxc/bad-char-at-comparison": { description: "This rule warns when a character accessed with charAt, at, or bracket notation is compared with a string of length greater than 1." },
1415
1445
  "oxc/bad-comparison-sequence": { description: "This rule applies when the comparison operator is applied two or more times in a row." },
1446
+ "oxc/bad-match-all-arg": { description: "This rule warns when the matchAll method is called with a regular expression that does not have the global flag (g)." },
1416
1447
  "oxc/bad-min-max-func": { description: "Checks whether the clamp function Math.min(Math.max(x, y), z) always evaluates to a constant result because the arguments are in the wrong order." },
1417
1448
  "oxc/bad-object-literal-comparison": { description: "Checks for comparisons between object and array literals." },
1418
1449
  "oxc/bad-replace-all-arg": { description: "This rule warns when the replaceAll method is called with a regular expression that does not have the global flag (g)." },
@@ -1510,6 +1541,7 @@ const builtinRuleDocs = {
1510
1541
  },
1511
1542
  description: "Enforces an explicit type attribute for all HTML button elements."
1512
1543
  },
1544
+ "react/capitalized-calls": { description: "Disallows calling capitalized functions or methods directly during render instead of rendering them with JSX, since capitalized names are reserved for components." },
1513
1545
  "react/checked-requires-onchange-or-readonly": {
1514
1546
  defaultOptions: {
1515
1547
  ignoreExclusiveCheckedAttribute: false,
@@ -1524,16 +1556,24 @@ const builtinRuleDocs = {
1524
1556
  },
1525
1557
  description: "Enforces that React components have a displayName property."
1526
1558
  },
1559
+ "react/error-boundaries": { description: "Validates using error boundaries instead of try/catch around JSX for errors in child components." },
1527
1560
  "react/exhaustive-deps": { description: "Verifies the list of dependencies for Hooks like useEffect and similar." },
1561
+ "react/exhaustive-effect-dependencies": { description: "Validates that effect dependency arrays are exhaustive and contain no extraneous values." },
1528
1562
  "react/forbid-component-props": { description: "This rule prevents passing of props to components. This rule only applies to Components (e.g. <Foo />) and not DOM nodes (e.g. <div />). By default this rule prevents passing of props that add lots of complexity (className, style) to Components. The list of forbidden props can be customized with the forbid option." },
1529
1563
  "react/forbid-dom-props": { description: "This rule prevents passing of props to elements. This rule only applies to DOM Nodes (e.g. <div />) and not Components (e.g. <Component />). The list of forbidden props can be customized with the forbid option." },
1530
1564
  "react/forbid-elements": { description: "Allows you to configure a list of forbidden elements and to specify their desired replacements." },
1531
1565
  "react/forward-ref-uses-ref": { description: "Requires that components wrapped with forwardRef must have a ref parameter. Omitting the ref argument is usually a bug, and components not using ref don't need to be wrapped by forwardRef." },
1566
+ "react/function-component-definition": { description: "Enforces a consistent function form for React function components." },
1567
+ "react/globals": { description: "Disallows assigning to or mutating variables declared outside a component or hook during render; side effects must run outside of render." },
1532
1568
  "react/hook-use-state": {
1533
1569
  defaultOptions: { allowDestructuredState: false },
1534
1570
  description: "Ensure destructuring and symmetric naming of useState hook value and setter variables."
1535
1571
  },
1572
+ "react/hooks": { description: "Runs the React Compiler's Rules of Hooks validation: hooks must be called unconditionally, in a consistent order, at the top level of a component or hook, and not be used as first-class values." },
1536
1573
  "react/iframe-missing-sandbox": { description: "Enforce the sandbox attribute on iframe elements." },
1574
+ "react/immutability": { description: "Disallows mutating props, state, hook arguments, hook return values, and other values that are immutable by the Rules of React." },
1575
+ "react/incompatible-library": { description: "Warns on usage of library APIs known to be incompatible with memoization (manual or automatic), such as react-hook-form's watch(), TanStack Table's useReactTable(), and TanStack Virtual's useVirtualizer()." },
1576
+ "react/invariant": { description: "Reports internal React Compiler invariant violations. These indicate a bug in the compiler itself, not in your code — consider reporting them to the oxc or React teams." },
1537
1577
  "react/jsx-boolean-value": {
1538
1578
  defaultOptions: { "The 2nd option": {
1539
1579
  always: [],
@@ -1632,11 +1672,13 @@ const builtinRuleDocs = {
1632
1672
  },
1633
1673
  description: "Disallow JSX prop spreading."
1634
1674
  },
1675
+ "react/memo-dependencies": { description: "Validates that useMemo() and useCallback() declare comprehensive dependency lists without extraneous values." },
1635
1676
  "react/no-array-index-key": { description: "Warn if an element uses an Array index in its key." },
1636
1677
  "react/no-children-prop": { description: "Checks that children are not passed using a prop." },
1637
1678
  "react/no-clone-element": { description: "Prevents the usage of React.cloneElement, which is considered an anti-pattern in React." },
1638
1679
  "react/no-danger": { description: "This rule prevents the use of dangerouslySetInnerHTML prop." },
1639
1680
  "react/no-danger-with-children": { description: "Disallows DOM elements from using both children and dangerouslySetInnerHTML properties." },
1681
+ "react/no-deriving-state-in-effects": { description: "Disallows deriving values from state inside an effect and storing them back into state; derived values should be computed during render instead." },
1640
1682
  "react/no-did-mount-set-state": { description: "Disallows using setState in the componentDidMount lifecycle method." },
1641
1683
  "react/no-did-update-set-state": { description: "Disallow usage of setState in componentDidUpdate." },
1642
1684
  "react/no-direct-mutation-state": { description: "This rule forbids the direct mutation of this.state in React components." },
@@ -1695,12 +1737,12 @@ const builtinRuleDocs = {
1695
1737
  },
1696
1738
  description: "Enforces that React components are written as function components instead of class components."
1697
1739
  },
1698
- "react/react-compiler": {
1699
- defaultOptions: { reportAllBailouts: false },
1700
- description: "Runs the React Compiler's analysis in lint-only mode and reports code that violates the Rules of React — for example calling hooks conditionally, calling setState during render, accessing refs during render, or mutating props and state."
1701
- },
1740
+ "react/preserve-manual-memoization": { description: "Validates that existing manual memoization (useMemo, useCallback, React.memo) is preserved by the React Compiler: the compiler only compiles code whose inferred dependencies match or exceed the manually specified ones." },
1741
+ "react/purity": { description: "Validates that components and hooks are pure by checking that they do not call known-impure functions such as Math.random(), Date.now(), or performance.now() during render." },
1702
1742
  "react/react-in-jsx-scope": { description: "Enforces that React is imported and in-scope when using JSX syntax." },
1743
+ "react/refs": { description: "Validates correct usage of refs: ref.current may not be read or written during render, only in event handlers and effects." },
1703
1744
  "react/require-render-return": { description: "Require render methods in ES5 and ES2015 React components to return a value." },
1745
+ "react/rule-suppression": { description: "Reports ESLint/Oxlint suppressions of React rules (for example eslint-disable-next-line react-hooks/exhaustive-deps) inside a component or hook. The React Compiler skips functions containing such suppressions, since the suppressed violation may make compilation unsafe." },
1704
1746
  "react/rules-of-hooks": { description: "Enforces the Rules of Hooks, ensuring that React Hooks are only called in valid contexts and in the correct order." },
1705
1747
  "react/self-closing-comp": {
1706
1748
  defaultOptions: {
@@ -1709,12 +1751,20 @@ const builtinRuleDocs = {
1709
1751
  },
1710
1752
  description: "Detects components without children which can be self-closed to avoid unnecessary extra closing tags."
1711
1753
  },
1754
+ "react/set-state-in-effect": { description: "Disallows calling setState synchronously inside an effect body." },
1755
+ "react/set-state-in-render": { description: "Disallows unconditionally setting state during render (including inside useMemo callbacks), which triggers additional renders and can cause infinite render loops." },
1712
1756
  "react/state-in-constructor": { description: "Enforces the state initialization style to be either in a constructor or with a class property." },
1757
+ "react/static-components": { description: "Validates that components are static — defined at module scope rather than recreated on every render — because dynamically recreated components reset state and cause excessive re-rendering." },
1713
1758
  "react/style-prop-object": {
1714
1759
  defaultOptions: { allow: [] },
1715
1760
  description: "Require that the value of the prop style be an object or a variable that is an object."
1716
1761
  },
1762
+ "react/syntax": { description: "Reports invalid JavaScript encountered by React Compiler while analyzing a component or hook, such as reassigning a const binding." },
1763
+ "react/todo": { description: "Reports code that React Compiler cannot yet analyze because it uses features the compiler has not implemented. These are skipped optimizations (bail-outs), not rule violations." },
1764
+ "react/unsupported-syntax": { description: "Warns on syntax that React Compiler does not plan to support, such as eval; components and hooks using it are skipped, not optimized." },
1765
+ "react/use-memo": { description: "Validates usage of the useMemo() hook against common mistakes, such as passing an async or generator callback or misusing its arguments." },
1717
1766
  "react/void-dom-elements-no-children": { description: "Disallow void DOM elements (e.g. <img />, <br />) from receiving children." },
1767
+ "react/void-use-memo": { description: "Validates that useMemo() callbacks return a value and that the memoized result is actually used by the component or hook." },
1718
1768
  "react-perf/jsx-no-jsx-as-prop": { description: "Prevent JSX elements that are local to the current method from being used as values of JSX props." },
1719
1769
  "react-perf/jsx-no-new-array-as-prop": { description: "Prevent arrays that are local to the current method from being used as values of JSX props." },
1720
1770
  "react-perf/jsx-no-new-function-as-prop": { description: "Prevent functions that are local to the current method from being used as values of JSX props." },
@@ -1753,7 +1803,7 @@ const builtinRuleDocs = {
1753
1803
  fixStyle: "\"separate-type-imports\"",
1754
1804
  prefer: "\"type-imports\""
1755
1805
  },
1756
- description: "Enforce consistent usage of type imports."
1806
+ description: "Enforce consistent usage of type imports by adding or removing the type keyword from imports."
1757
1807
  },
1758
1808
  "typescript/dot-notation": {
1759
1809
  defaultOptions: {
@@ -1918,10 +1968,7 @@ const builtinRuleDocs = {
1918
1968
  "typescript/no-non-null-assertion": { description: "Disallow non-null assertions using the ! postfix operator." },
1919
1969
  "typescript/no-redundant-type-constituents": { description: "This rule disallows type constituents of unions and intersections that are redundant." },
1920
1970
  "typescript/no-require-imports": {
1921
- defaultOptions: {
1922
- allow: [],
1923
- allowAsImport: false
1924
- },
1971
+ defaultOptions: { allowAsImport: false },
1925
1972
  description: "Forbids the use of CommonJS require calls."
1926
1973
  },
1927
1974
  "typescript/no-restricted-types": {
@@ -2179,6 +2226,7 @@ const builtinRuleDocs = {
2179
2226
  defaultOptions: { "non-zero": "\"greater-than\"" },
2180
2227
  description: "Enforce explicitly comparing the length or size property of a value."
2181
2228
  },
2229
+ "unicorn/explicit-timer-delay": { description: "Enforce or disallow explicit delay argument for setTimeout() and setInterval()." },
2182
2230
  "unicorn/filename-case": {
2183
2231
  defaultOptions: {
2184
2232
  case: null,
@@ -2202,7 +2250,7 @@ const builtinRuleDocs = {
2202
2250
  defaultOptions: { max: 3 },
2203
2251
  description: "Limit the depth of nested calls."
2204
2252
  },
2205
- "unicorn/new-for-builtins": { description: "Enforces the use of new for the following builtins: Object, Array, ArrayBuffer, BigInt64Array, BigUint64Array, DataView, Date, Error, Float32Array, Float64Array, Function, Int8Array, Int16Array, Int32Array, Map, WeakMap, Set, WeakSet, Promise, RegExp, Uint8Array, Uint16Array, Uint32Array, Uint8ClampedArray, SharedArrayBuffer, Proxy, WeakRef, FinalizationRegistry." },
2253
+ "unicorn/new-for-builtins": { description: "Enforces the use of new for the following builtins: Object, Array, ArrayBuffer, BigInt64Array, BigUint64Array, DataView, Date, Error, Float16Array, Float32Array, Float64Array, Function, Int8Array, Int16Array, Int32Array, Map, WeakMap, Set, WeakSet, Promise, RegExp, Uint8Array, Uint16Array, Uint32Array, Uint8ClampedArray, SharedArrayBuffer, Proxy, WeakRef, FinalizationRegistry." },
2206
2254
  "unicorn/no-abusive-eslint-disable": { description: "Disallows oxlint-disable or eslint-disable comments without specifying rules." },
2207
2255
  "unicorn/no-accessor-recursion": { description: "Disallow recursive access to this within getters and setters." },
2208
2256
  "unicorn/no-anonymous-default-export": { description: "Disallows anonymous functions and classes as default exports." },
@@ -2219,11 +2267,15 @@ const builtinRuleDocs = {
2219
2267
  description: "Prefer using Array#toReversed() over Array#reverse()."
2220
2268
  },
2221
2269
  "unicorn/no-array-sort": {
2222
- defaultOptions: { allowExpressionStatement: true },
2270
+ defaultOptions: {
2271
+ allowAfterSpread: false,
2272
+ allowExpressionStatement: true
2273
+ },
2223
2274
  description: "Prefer using Array#toSorted() over Array#sort()."
2224
2275
  },
2225
2276
  "unicorn/no-await-expression-member": { description: "Disallows member access from await expressions." },
2226
2277
  "unicorn/no-await-in-promise-methods": { description: "Disallow using await in Promise method parameters." },
2278
+ "unicorn/no-confusing-array-with": { description: "Disallows confusing uses of Array#with()." },
2227
2279
  "unicorn/no-console-spaces": { description: "Disallows leading/trailing space inside console.log() and similar methods." },
2228
2280
  "unicorn/no-document-cookie": { description: "Disallows direct use of document.cookie." },
2229
2281
  "unicorn/no-empty-file": { description: "Disallows files that do not contain any meaningful code." },
@@ -2316,7 +2368,7 @@ const builtinRuleDocs = {
2316
2368
  description: "Enforces a convention of grouping digits using numeric separators."
2317
2369
  },
2318
2370
  "unicorn/prefer-add-event-listener": { description: "Enforces the use of .addEventListener() and .removeEventListener() over their on-function counterparts." },
2319
- "unicorn/prefer-array-find": { description: "Encourages using Array.prototype.find instead of filter(...)[0] or similar patterns when only the first matching element is needed." },
2371
+ "unicorn/prefer-array-find": { description: "Encourages using Array.prototype.find and Array.prototype.findLast instead of taking the first or last matching element from filter(...)." },
2320
2372
  "unicorn/prefer-array-flat": { description: "Prefers Array#flat() over legacy techniques to flatten arrays." },
2321
2373
  "unicorn/prefer-array-flat-map": { description: "Prefers the use of .flatMap() when map().flat() are used together." },
2322
2374
  "unicorn/prefer-array-index-of": { description: "Enforces using indexOf or lastIndexOf instead of findIndex or findLastIndex when the callback is a simple strict equality comparison." },
@@ -2455,7 +2507,7 @@ const builtinRuleDocs = {
2455
2507
  "vitest/no-large-snapshots": {
2456
2508
  defaultOptions: {
2457
2509
  allowedSnapshots: {},
2458
- inlineMaxSize: 50,
2510
+ inlineMaxSize: null,
2459
2511
  maxSize: 50
2460
2512
  },
2461
2513
  description: "Disallow large snapshots."
@@ -2471,6 +2523,7 @@ const builtinRuleDocs = {
2471
2523
  "vitest/no-test-return-statement": { description: "Disallow explicitly returning from tests." },
2472
2524
  "vitest/no-unneeded-async-expect-function": { description: "Disallows unnecessary async function wrapper for expected promises." },
2473
2525
  "vitest/padding-around-after-all-blocks": { description: "This rule enforces a line of padding before and after 1 or more afterAll statements." },
2526
+ "vitest/padding-around-test-blocks": { description: "This rule enforces a line of padding before and after 1 or more test/it statements." },
2474
2527
  "vitest/prefer-called-exactly-once-with": { description: "It checks when a target is asserted with both toHaveBeenCalledOnce and toHaveBeenCalledWith instead of toHaveBeenCalledExactlyOnceWith." },
2475
2528
  "vitest/prefer-called-once": { description: "Substitute toBeCalledTimes(1) and toHaveBeenCalledTimes(1) with toBeCalledOnce() and toHaveBeenCalledOnce() respectively." },
2476
2529
  "vitest/prefer-called-times": { description: "This rule aims to enforce the use of toBeCalledTimes(1) or toHaveBeenCalledTimes(1) over toBeCalledOnce() or toHaveBeenCalledOnce()." },
@@ -2607,10 +2660,7 @@ const builtinRuleDocs = {
2607
2660
  "vue/no-this-in-before-route-enter": { description: "Disallow this usage in a beforeRouteEnter method." },
2608
2661
  "vue/no-watch-after-await": { description: "Disallow asynchronously-registered watch." },
2609
2662
  "vue/prefer-import-from-vue": { description: "Enforce imports from vue instead of @vue/." },
2610
- "vue/prop-name-casing": {
2611
- defaultOptions: { "The 2nd option": { ignoreProps: [] } },
2612
- description: "Enforce a specific casing (camelCase or snake\\_case) for Vue component prop names."
2613
- },
2663
+ "vue/prop-name-casing": { description: "Enforce a specific casing (camelCase or snake\\_case) for Vue component prop names." },
2614
2664
  "vue/require-default-export": { description: "Require components to be the default export." },
2615
2665
  "vue/require-default-prop": { description: "Requires default value to be set for props that are not marked as required." },
2616
2666
  "vue/require-direct-export": {
@@ -2677,6 +2727,25 @@ function getPluginEntries(config) {
2677
2727
  return [...entries.values()];
2678
2728
  }
2679
2729
  /**
2730
+ * Resolves display names for JS plugin entries declared in a single config block.
2731
+ *
2732
+ * Entries are matched to loaded plugins by their deduplication key so that the
2733
+ * same specifier loaded under multiple aliases resolves deterministically. Entries
2734
+ * that failed to load fall back to their alias or specifier.
2735
+ *
2736
+ * @param entries - JS plugin entries from a root or override config block.
2737
+ * @param plugins - Successfully loaded plugins used to normalize names.
2738
+ * @returns Display names in declaration order.
2739
+ */
2740
+ function getPluginEntryNames(entries, plugins) {
2741
+ const namesByKey = new Map(plugins.map((plugin) => [plugin.entryKey, plugin.name]));
2742
+ return entries.map((entry) => {
2743
+ const loadedName = namesByKey.get(getPluginEntryKey(entry));
2744
+ if (loadedName) return loadedName;
2745
+ return typeof entry === "string" ? entry : entry.name;
2746
+ });
2747
+ }
2748
+ /**
2680
2749
  * Computes a deduplication key for a plugin entry.
2681
2750
  *
2682
2751
  * String entries use the specifier itself as the key. Object entries use
@@ -2714,10 +2783,12 @@ async function loadPlugin(entry, configFilepath, pluginLoader) {
2714
2783
  const resolvedPath = resolvePluginPath(specifier, configFilepath, pluginLoader);
2715
2784
  const plugin = await importPlugin(resolvedPath, pluginLoader);
2716
2785
  const name = getPluginName$1(entry, specifier, plugin);
2786
+ const rules = getPluginRules(name, plugin);
2717
2787
  return {
2788
+ entryKey: getPluginEntryKey(entry),
2718
2789
  name,
2719
2790
  resolvedPath,
2720
- rules: getPluginRules(name, plugin),
2791
+ rules,
2721
2792
  specifier
2722
2793
  };
2723
2794
  }
@@ -2937,6 +3008,11 @@ function getBuiltinRuleId(rule) {
2937
3008
  }
2938
3009
  //#endregion
2939
3010
  //#region src/inspect.ts
3011
+ const DEFAULT_ENABLED_PLUGIN_NAMES = [
3012
+ "typescript",
3013
+ "unicorn",
3014
+ "oxc"
3015
+ ];
2940
3016
  /**
2941
3017
  * Loads an Oxlint config and returns an inspection model for its rules and JS plugins.
2942
3018
  *
@@ -2960,9 +3036,9 @@ async function inspectConfig(options = {}) {
2960
3036
  * @returns The inspected config result.
2961
3037
  */
2962
3038
  function inspectLoadedConfig(config, builtinRules, plugins, pluginErrors) {
2963
- const catalog = createRuleCatalog(builtinRules, plugins, [...config.config.plugins ?? [], ...config.config.overrides?.flatMap((o) => o.plugins ?? []) ?? []], config.config.categories);
3039
+ const catalog = createRuleCatalog(builtinRules, plugins, [...config.config.plugins ?? DEFAULT_ENABLED_PLUGIN_NAMES, ...config.config.overrides?.flatMap((o) => o.plugins ?? []) ?? []], config.config.categories);
2964
3040
  applyConfiguredRules(catalog, config.config.rules);
2965
- const overrideGroups = createInspectedOverrideGroups(catalog, config.config.overrides);
3041
+ const overrideGroups = createInspectedOverrideGroups(catalog, config.config.overrides, plugins);
2966
3042
  const overrideSeveritiesByRuleId = createOverrideSeveritiesByRuleId(overrideGroups);
2967
3043
  const rules = [...catalog.rulesById.values()].map((rule) => {
2968
3044
  const usage = createRuleUsageSummary(rule, overrideSeveritiesByRuleId.get(rule.ruleId) ?? []);
@@ -3006,13 +3082,14 @@ function createRulePluginFilters(rules) {
3006
3082
  for (const rule of rules) if (rule.pluginName) pluginNames.add(rule.pluginName);
3007
3083
  return ["all", ...[...pluginNames].toSorted((left, right) => left.localeCompare(right))];
3008
3084
  }
3009
- function createInspectedOverrideGroups(catalog, overrides) {
3085
+ function createInspectedOverrideGroups(catalog, overrides, plugins) {
3010
3086
  const groups = [];
3011
3087
  for (const [index, override] of overrides?.entries() ?? []) {
3012
3088
  const group = {
3013
3089
  excludeFiles: override.excludeFiles,
3014
3090
  files: override.files,
3015
3091
  index,
3092
+ jsPlugins: override.jsPlugins?.length ? getPluginEntryNames(override.jsPlugins, plugins) : void 0,
3016
3093
  plugins: override.plugins,
3017
3094
  rules: []
3018
3095
  };
@@ -3073,7 +3150,7 @@ function createInspectedPlugins(plugins, rules) {
3073
3150
  }
3074
3151
  function createRuleCatalog(builtinRules, plugins, enabledPlugins, categories) {
3075
3152
  const bareBuiltinRuleIds = createBareBuiltinRuleIds(builtinRules);
3076
- const enabledPluginNames = /* @__PURE__ */ new Set(["eslint", ...enabledPlugins ?? []]);
3153
+ const enabledPluginNames = /* @__PURE__ */ new Set(["eslint", ...enabledPlugins]);
3077
3154
  /**
3078
3155
  * When categories are not explicitly configured, Oxlint applies a default
3079
3156
  * severity of `warn` to all correctness rules via the `RulesBuilder` defaults.