@storm-software/eslint 0.160.2 → 0.160.4

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/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.160.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.160.3-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/dist/preset.js CHANGED
@@ -2015,10 +2015,10 @@ var RegistryConfigSchema = z.object({
2015
2015
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
2016
2016
  MultiThemeColorConfigSchema
2017
2017
  ).describe("Colors used for various workspace elements");
2018
- var ColorConfigMapSchema = z.union([
2019
- z.object({ base: ColorConfigSchema }),
2020
- z.record(z.string(), ColorConfigSchema)
2021
- ]);
2018
+ var ColorConfigMapSchema = z.record(
2019
+ z.union([z.literal("base"), z.string()]),
2020
+ ColorConfigSchema
2021
+ );
2022
2022
  var ExtendsItemSchema = z.string().trim().describe(
2023
2023
  "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
2024
2024
  );
@@ -5845,6 +5845,64 @@ async function typescript(options = {}) {
5845
5845
  * TypeScript Rules - The following rules are specific to the TypeScript plugin
5846
5846
  *
5847
5847
  **************************************************************/
5848
+ "ts/naming-convention": [
5849
+ "error",
5850
+ {
5851
+ selector: "typeLike",
5852
+ format: ["PascalCase"],
5853
+ filter: { regex: "^(__String|[A-Za-z]+_[A-Za-z]+)$", match: false }
5854
+ },
5855
+ {
5856
+ selector: "interface",
5857
+ format: ["PascalCase"],
5858
+ custom: { regex: "^I[A-Z]", match: false },
5859
+ filter: {
5860
+ regex: "^I(Arguments|TextWriter|O([A-Z][a-z]+[A-Za-z]*)?)$",
5861
+ match: false
5862
+ }
5863
+ },
5864
+ {
5865
+ selector: "variable",
5866
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
5867
+ leadingUnderscore: "allow",
5868
+ filter: {
5869
+ regex: "^(_{1,2}filename|_{1,2}dirname|_+|[A-Za-z]+_[A-Za-z]+)$",
5870
+ match: false
5871
+ }
5872
+ },
5873
+ {
5874
+ selector: "function",
5875
+ format: ["camelCase", "PascalCase"],
5876
+ leadingUnderscore: "allow",
5877
+ filter: { regex: "^[A-Za-z]+_[A-Za-z]+$", match: false }
5878
+ },
5879
+ {
5880
+ selector: "parameter",
5881
+ format: ["camelCase"],
5882
+ leadingUnderscore: "allow",
5883
+ filter: { regex: "^(_+|[A-Za-z]+_[A-Z][a-z]+)$", match: false }
5884
+ },
5885
+ {
5886
+ selector: "method",
5887
+ format: ["camelCase", "PascalCase"],
5888
+ leadingUnderscore: "allow",
5889
+ filter: { regex: "^([0-9]+|[A-Za-z]+_[A-Za-z]+)$", match: false }
5890
+ },
5891
+ {
5892
+ selector: "memberLike",
5893
+ format: ["camelCase"],
5894
+ leadingUnderscore: "allow",
5895
+ filter: { regex: "^([0-9]+|[A-Za-z]+_[A-Za-z]+)$", match: false }
5896
+ },
5897
+ {
5898
+ selector: "enumMember",
5899
+ format: ["camelCase", "PascalCase"],
5900
+ leadingUnderscore: "allow",
5901
+ filter: { regex: "^[A-Za-z]+_[A-Za-z]+$", match: false }
5902
+ },
5903
+ // eslint-disable-next-line no-restricted-syntax
5904
+ { selector: "property", format: null }
5905
+ ],
5848
5906
  "ts/no-explicit-any": "off",
5849
5907
  "ts/no-empty-function": "off",
5850
5908
  "ts/no-var-requires": "off",
package/dist/types.d.ts CHANGED
@@ -1444,233 +1444,238 @@ Backward pagination arguments
1444
1444
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
1445
1445
  /**
1446
1446
  * Enforce or ban the use of inline type-only markers for named imports.
1447
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/consistent-type-specifier-style.md
1447
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/consistent-type-specifier-style.md
1448
1448
  */
1449
1449
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
1450
1450
  /**
1451
1451
  * Ensure a default export is present, given a default import.
1452
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/default.md
1452
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/default.md
1453
1453
  */
1454
1454
  'import/default'?: Linter.RuleEntry<[]>
1455
1455
  /**
1456
1456
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
1457
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/dynamic-import-chunkname.md
1457
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/dynamic-import-chunkname.md
1458
1458
  */
1459
1459
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
1460
1460
  /**
1461
1461
  * Forbid any invalid exports, i.e. re-export of the same name.
1462
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/export.md
1462
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/export.md
1463
1463
  */
1464
1464
  'import/export'?: Linter.RuleEntry<[]>
1465
1465
  /**
1466
1466
  * Ensure all exports appear after other statements.
1467
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/exports-last.md
1467
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/exports-last.md
1468
1468
  */
1469
1469
  'import/exports-last'?: Linter.RuleEntry<[]>
1470
1470
  /**
1471
1471
  * Ensure consistent use of file extension within the import path.
1472
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/extensions.md
1472
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/extensions.md
1473
1473
  */
1474
1474
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
1475
1475
  /**
1476
1476
  * Ensure all imports appear before other statements.
1477
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/first.md
1477
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/first.md
1478
1478
  */
1479
1479
  'import/first'?: Linter.RuleEntry<ImportFirst>
1480
1480
  /**
1481
1481
  * Prefer named exports to be grouped together in a single export declaration.
1482
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/group-exports.md
1482
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/group-exports.md
1483
1483
  */
1484
1484
  'import/group-exports'?: Linter.RuleEntry<[]>
1485
1485
  /**
1486
1486
  * Replaced by `import-x/first`.
1487
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/imports-first.md
1487
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/imports-first.md
1488
1488
  * @deprecated
1489
1489
  */
1490
1490
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
1491
1491
  /**
1492
1492
  * Enforce the maximum number of dependencies a module can have.
1493
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/max-dependencies.md
1493
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/max-dependencies.md
1494
1494
  */
1495
1495
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
1496
1496
  /**
1497
1497
  * Ensure named imports correspond to a named export in the remote file.
1498
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/named.md
1498
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/named.md
1499
1499
  */
1500
1500
  'import/named'?: Linter.RuleEntry<ImportNamed>
1501
1501
  /**
1502
1502
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
1503
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/namespace.md
1503
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/namespace.md
1504
1504
  */
1505
1505
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
1506
1506
  /**
1507
1507
  * Enforce a newline after import statements.
1508
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/newline-after-import.md
1508
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/newline-after-import.md
1509
1509
  */
1510
1510
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
1511
1511
  /**
1512
1512
  * Forbid import of modules using absolute paths.
1513
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-absolute-path.md
1513
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-absolute-path.md
1514
1514
  */
1515
1515
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
1516
1516
  /**
1517
1517
  * Forbid AMD `require` and `define` calls.
1518
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-amd.md
1518
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-amd.md
1519
1519
  */
1520
1520
  'import/no-amd'?: Linter.RuleEntry<[]>
1521
1521
  /**
1522
1522
  * Forbid anonymous values as default exports.
1523
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-anonymous-default-export.md
1523
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-anonymous-default-export.md
1524
1524
  */
1525
1525
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
1526
1526
  /**
1527
1527
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
1528
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-commonjs.md
1528
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-commonjs.md
1529
1529
  */
1530
1530
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
1531
1531
  /**
1532
1532
  * Forbid a module from importing a module with a dependency path back to itself.
1533
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-cycle.md
1533
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-cycle.md
1534
1534
  */
1535
1535
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
1536
1536
  /**
1537
1537
  * Forbid default exports.
1538
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-default-export.md
1538
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-default-export.md
1539
1539
  */
1540
1540
  'import/no-default-export'?: Linter.RuleEntry<[]>
1541
1541
  /**
1542
1542
  * Forbid imported names marked with `@deprecated` documentation tag.
1543
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-deprecated.md
1543
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-deprecated.md
1544
1544
  */
1545
1545
  'import/no-deprecated'?: Linter.RuleEntry<[]>
1546
1546
  /**
1547
1547
  * Forbid repeated import of the same module in multiple places.
1548
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-duplicates.md
1548
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-duplicates.md
1549
1549
  */
1550
1550
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
1551
1551
  /**
1552
1552
  * Forbid `require()` calls with expressions.
1553
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-dynamic-require.md
1553
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-dynamic-require.md
1554
1554
  */
1555
1555
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
1556
1556
  /**
1557
1557
  * Forbid empty named import blocks.
1558
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-empty-named-blocks.md
1558
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-empty-named-blocks.md
1559
1559
  */
1560
1560
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
1561
1561
  /**
1562
1562
  * Forbid the use of extraneous packages.
1563
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-extraneous-dependencies.md
1563
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-extraneous-dependencies.md
1564
1564
  */
1565
1565
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
1566
1566
  /**
1567
1567
  * Forbid import statements with CommonJS module.exports.
1568
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-import-module-exports.md
1568
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-import-module-exports.md
1569
1569
  */
1570
1570
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
1571
1571
  /**
1572
1572
  * Forbid importing the submodules of other modules.
1573
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-internal-modules.md
1573
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-internal-modules.md
1574
1574
  */
1575
1575
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
1576
1576
  /**
1577
1577
  * Forbid the use of mutable exports with `var` or `let`.
1578
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-mutable-exports.md
1578
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-mutable-exports.md
1579
1579
  */
1580
1580
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>
1581
1581
  /**
1582
1582
  * Forbid use of exported name as identifier of default export.
1583
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-as-default.md
1583
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-named-as-default.md
1584
1584
  */
1585
1585
  'import/no-named-as-default'?: Linter.RuleEntry<[]>
1586
1586
  /**
1587
1587
  * Forbid use of exported name as property of default export.
1588
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-as-default-member.md
1588
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-named-as-default-member.md
1589
1589
  */
1590
1590
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
1591
1591
  /**
1592
1592
  * Forbid named default exports.
1593
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-default.md
1593
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-named-default.md
1594
1594
  */
1595
1595
  'import/no-named-default'?: Linter.RuleEntry<[]>
1596
1596
  /**
1597
1597
  * Forbid named exports.
1598
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-export.md
1598
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-named-export.md
1599
1599
  */
1600
1600
  'import/no-named-export'?: Linter.RuleEntry<[]>
1601
1601
  /**
1602
1602
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
1603
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-namespace.md
1603
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-namespace.md
1604
1604
  */
1605
1605
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
1606
1606
  /**
1607
1607
  * Forbid Node.js builtin modules.
1608
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-nodejs-modules.md
1608
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-nodejs-modules.md
1609
1609
  */
1610
1610
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
1611
1611
  /**
1612
1612
  * Forbid importing packages through relative paths.
1613
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-relative-packages.md
1613
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-relative-packages.md
1614
1614
  */
1615
1615
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
1616
1616
  /**
1617
1617
  * Forbid importing modules from parent directories.
1618
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-relative-parent-imports.md
1618
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-relative-parent-imports.md
1619
1619
  */
1620
1620
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
1621
1621
  /**
1622
1622
  * Forbid importing a default export by a different name.
1623
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-rename-default.md
1623
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-rename-default.md
1624
1624
  */
1625
1625
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
1626
1626
  /**
1627
1627
  * Enforce which files can be imported in a given folder.
1628
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-restricted-paths.md
1628
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-restricted-paths.md
1629
1629
  */
1630
1630
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
1631
1631
  /**
1632
1632
  * Forbid a module from importing itself.
1633
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-self-import.md
1633
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-self-import.md
1634
1634
  */
1635
1635
  'import/no-self-import'?: Linter.RuleEntry<[]>
1636
1636
  /**
1637
1637
  * Forbid unassigned imports.
1638
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unassigned-import.md
1638
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-unassigned-import.md
1639
1639
  */
1640
1640
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
1641
1641
  /**
1642
1642
  * Ensure imports point to a file/module that can be resolved.
1643
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unresolved.md
1643
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-unresolved.md
1644
1644
  */
1645
1645
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
1646
1646
  /**
1647
1647
  * Forbid modules without exports, or exports without matching import in another module.
1648
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unused-modules.md
1648
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-unused-modules.md
1649
1649
  */
1650
1650
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
1651
1651
  /**
1652
1652
  * Forbid unnecessary path segments in import and require statements.
1653
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-useless-path-segments.md
1653
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-useless-path-segments.md
1654
1654
  */
1655
1655
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
1656
1656
  /**
1657
1657
  * Forbid webpack loader syntax in imports.
1658
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-webpack-loader-syntax.md
1658
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/no-webpack-loader-syntax.md
1659
1659
  */
1660
1660
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
1661
1661
  /**
1662
1662
  * Enforce a convention in module import order.
1663
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/order.md
1663
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/order.md
1664
1664
  */
1665
1665
  'import/order'?: Linter.RuleEntry<ImportOrder>
1666
1666
  /**
1667
1667
  * Prefer a default export if module exports a single name or multiple names.
1668
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/prefer-default-export.md
1668
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/prefer-default-export.md
1669
1669
  */
1670
1670
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
1671
+ /**
1672
+ * Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
1673
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/prefer-namespace-import.md
1674
+ */
1675
+ 'import/prefer-namespace-import'?: Linter.RuleEntry<ImportPreferNamespaceImport>
1671
1676
  /**
1672
1677
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1673
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/unambiguous.md
1678
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.0/docs/rules/unambiguous.md
1674
1679
  */
1675
1680
  'import/unambiguous'?: Linter.RuleEntry<[]>
1676
1681
  /**
@@ -8923,6 +8928,10 @@ type ImportOrder = []|[{
8923
8928
  type ImportPreferDefaultExport = []|[{
8924
8929
  target?: ("single" | "any")
8925
8930
  }]
8931
+ // ----- import/prefer-namespace-import -----
8932
+ type ImportPreferNamespaceImport = []|[{
8933
+ patterns?: string[]
8934
+ }]
8926
8935
  // ----- indent -----
8927
8936
  type Indent = []|[("tab" | number)]|[("tab" | number), {
8928
8937
  SwitchCase?: number
@@ -16375,6 +16384,8 @@ interface _TsNamingConvention_MatchRegexConfig {
16375
16384
  // ----- ts/no-base-to-string -----
16376
16385
  type TsNoBaseToString = []|[{
16377
16386
 
16387
+ checkUnknown?: boolean
16388
+
16378
16389
  ignoredTypeNames?: string[]
16379
16390
  }]
16380
16391
  // ----- ts/no-confusing-void-expression -----
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.160.2",
3
+ "version": "0.160.4",
4
4
  "type": "module",
5
5
  "description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {
@@ -162,12 +162,12 @@
162
162
  "@eslint/eslintrc": "^3.3.1",
163
163
  "@eslint/markdown": "^6.6.0",
164
164
  "@nx/eslint-plugin": "21.0.3",
165
- "@storm-software/config": "^1.124.3",
166
- "@storm-software/config-tools": "^1.174.4",
165
+ "@storm-software/config": "^1.124.5",
166
+ "@storm-software/config-tools": "^1.175.1",
167
167
  "@stylistic/eslint-plugin": "^4.4.1",
168
- "@typescript-eslint/eslint-plugin": "^8.34.1",
169
- "@typescript-eslint/parser": "^8.34.1",
170
- "@typescript-eslint/utils": "^8.34.1",
168
+ "@typescript-eslint/eslint-plugin": "^8.35.0",
169
+ "@typescript-eslint/parser": "^8.35.0",
170
+ "@typescript-eslint/utils": "^8.35.0",
171
171
  "@vitest/eslint-plugin": "^1.2.7",
172
172
  "chalk": "^4.1.2",
173
173
  "defu": "6.1.4",
@@ -175,7 +175,7 @@
175
175
  "eslint-config-prettier": "^10.1.5",
176
176
  "eslint-flat-config-utils": "^2.1.0",
177
177
  "eslint-merge-processors": "^2.0.0",
178
- "eslint-plugin-import-x": "^4.15.2",
178
+ "eslint-plugin-import-x": "^4.16.0",
179
179
  "eslint-plugin-jsdoc": "^50.8.0",
180
180
  "eslint-plugin-json": "^4.0.1",
181
181
  "eslint-plugin-jsonc": "^2.20.1",
@@ -189,7 +189,7 @@
189
189
  "eslint-plugin-paths": "^1.1.0",
190
190
  "eslint-plugin-perfectionist": "^4.15.0",
191
191
  "eslint-plugin-pnpm": "0.3.0",
192
- "eslint-plugin-prettier": "^5.5.0",
192
+ "eslint-plugin-prettier": "^5.5.1",
193
193
  "eslint-plugin-regexp": "^2.9.0",
194
194
  "eslint-plugin-toml": "^0.12.0",
195
195
  "eslint-plugin-tsdoc": "0.4.0",
@@ -237,5 +237,5 @@
237
237
  },
238
238
  "publishConfig": { "access": "public" },
239
239
  "sideEffects": false,
240
- "gitHead": "cc6b643307c447a3a7e1118fee4893b3be34cdbd"
240
+ "gitHead": "0a4f6bb876fd1fb34e8cecc243e38eb88deee463"
241
241
  }