@ntnyq/eslint-config 3.7.1 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,13 +1,14 @@
1
1
  import { FlatConfigComposer } from 'eslint-flat-config-utils';
2
2
  import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
3
3
  import { ESLintPluginCommandOptions } from 'eslint-plugin-command/types';
4
+ import { RecommendedOptions } from 'eslint-plugin-github-action';
5
+ export { default as pluginGitHubAction } from 'eslint-plugin-github-action';
4
6
  import { Options } from 'eslint-processor-vue-blocks';
5
7
  export { default as processorVueBlocks } from 'eslint-processor-vue-blocks';
6
8
  import { Linter } from 'eslint';
7
9
  import { ConfigWithExtends } from 'typescript-eslint';
8
10
  export { plugin as pluginTypeScript, configs as typescriptConfigs } from 'typescript-eslint';
9
11
  import { RequiredOptions, BuiltInParserName } from 'prettier';
10
- import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
11
12
  import * as eslintPluginRegexp from 'eslint-plugin-regexp';
12
13
  export { eslintPluginRegexp as pluginRegexp };
13
14
  export { default as pluginNode } from 'eslint-plugin-n';
@@ -22,11 +23,10 @@ export { default as pluginJsonc } from 'eslint-plugin-jsonc';
22
23
  export { default as pluginFormat } from 'eslint-plugin-format';
23
24
  export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
24
25
  export { default as pluginVitest } from '@vitest/eslint-plugin';
25
- export { default as pluginImport } from 'eslint-plugin-import-x';
26
26
  export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
27
+ export { default as pluginImportX } from 'eslint-plugin-import-x';
27
28
  export { default as pluginPrettier } from 'eslint-plugin-prettier';
28
29
  export { default as pluginStylistic } from '@stylistic/eslint-plugin';
29
- export { default as pluginGitHubAction } from 'eslint-plugin-github-action';
30
30
  export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist';
31
31
  export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
32
32
  export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments';
@@ -1541,6 +1541,16 @@ interface RuleOptions {
1541
1541
  * @see https://eslint-plugin-github-action.ntnyq.com/rules/max-jobs-per-action.html
1542
1542
  */
1543
1543
  'github-action/max-jobs-per-action'?: Linter.RuleEntry<GithubActionMaxJobsPerAction>;
1544
+ /**
1545
+ * disallow using external job.
1546
+ * @see https://eslint-plugin-github-action.ntnyq.com/rules/no-external-job.html
1547
+ */
1548
+ 'github-action/no-external-job'?: Linter.RuleEntry<[]>;
1549
+ /**
1550
+ * disallow using invalid key.
1551
+ * @see https://eslint-plugin-github-action.ntnyq.com/rules/no-invalid-key.html
1552
+ */
1553
+ 'github-action/no-invalid-key'?: Linter.RuleEntry<[]>;
1544
1554
  /**
1545
1555
  * disallow using top level env.
1546
1556
  * @see https://eslint-plugin-github-action.ntnyq.com/rules/no-top-level-env.html
@@ -1551,6 +1561,16 @@ interface RuleOptions {
1551
1561
  * @see https://eslint-plugin-github-action.ntnyq.com/rules/no-top-level-permissions.html
1552
1562
  */
1553
1563
  'github-action/no-top-level-permissions'?: Linter.RuleEntry<[]>;
1564
+ /**
1565
+ * enforce action file extension.
1566
+ * @see https://eslint-plugin-github-action.ntnyq.com/rules/prefer-file-extension.html
1567
+ */
1568
+ 'github-action/prefer-file-extension'?: Linter.RuleEntry<GithubActionPreferFileExtension>;
1569
+ /**
1570
+ * enforce the style of job step uses.
1571
+ * @see https://eslint-plugin-github-action.ntnyq.com/rules/prefer-step-uses-style.html
1572
+ */
1573
+ 'github-action/prefer-step-uses-style'?: Linter.RuleEntry<GithubActionPreferStepUsesStyle>;
1554
1574
  /**
1555
1575
  * require action name to be set.
1556
1576
  * @see https://eslint-plugin-github-action.ntnyq.com/rules/require-action-name.html
@@ -1617,235 +1637,235 @@ interface RuleOptions {
1617
1637
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
1618
1638
  /**
1619
1639
  * Enforce or ban the use of inline type-only markers for named imports.
1620
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/consistent-type-specifier-style.md
1640
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/consistent-type-specifier-style.md
1621
1641
  */
1622
- 'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
1642
+ 'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>;
1623
1643
  /**
1624
1644
  * Ensure a default export is present, given a default import.
1625
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/default.md
1645
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/default.md
1626
1646
  */
1627
- 'import/default'?: Linter.RuleEntry<[]>;
1647
+ 'import-x/default'?: Linter.RuleEntry<[]>;
1628
1648
  /**
1629
1649
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
1630
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/dynamic-import-chunkname.md
1650
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/dynamic-import-chunkname.md
1631
1651
  */
1632
- 'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
1652
+ 'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>;
1633
1653
  /**
1634
1654
  * Forbid any invalid exports, i.e. re-export of the same name.
1635
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/export.md
1655
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/export.md
1636
1656
  */
1637
- 'import/export'?: Linter.RuleEntry<[]>;
1657
+ 'import-x/export'?: Linter.RuleEntry<[]>;
1638
1658
  /**
1639
1659
  * Ensure all exports appear after other statements.
1640
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/exports-last.md
1660
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/exports-last.md
1641
1661
  */
1642
- 'import/exports-last'?: Linter.RuleEntry<[]>;
1662
+ 'import-x/exports-last'?: Linter.RuleEntry<[]>;
1643
1663
  /**
1644
1664
  * Ensure consistent use of file extension within the import path.
1645
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/extensions.md
1665
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/extensions.md
1646
1666
  */
1647
- 'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
1667
+ 'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>;
1648
1668
  /**
1649
1669
  * Ensure all imports appear before other statements.
1650
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/first.md
1670
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/first.md
1651
1671
  */
1652
- 'import/first'?: Linter.RuleEntry<ImportFirst>;
1672
+ 'import-x/first'?: Linter.RuleEntry<ImportXFirst>;
1653
1673
  /**
1654
1674
  * Prefer named exports to be grouped together in a single export declaration.
1655
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/group-exports.md
1675
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/group-exports.md
1656
1676
  */
1657
- 'import/group-exports'?: Linter.RuleEntry<[]>;
1677
+ 'import-x/group-exports'?: Linter.RuleEntry<[]>;
1658
1678
  /**
1659
1679
  * Replaced by `import-x/first`.
1660
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/imports-first.md
1680
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/imports-first.md
1661
1681
  * @deprecated
1662
1682
  */
1663
- 'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
1683
+ 'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>;
1664
1684
  /**
1665
1685
  * Enforce the maximum number of dependencies a module can have.
1666
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/max-dependencies.md
1686
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/max-dependencies.md
1667
1687
  */
1668
- 'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
1688
+ 'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>;
1669
1689
  /**
1670
1690
  * Ensure named imports correspond to a named export in the remote file.
1671
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/named.md
1691
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/named.md
1672
1692
  */
1673
- 'import/named'?: Linter.RuleEntry<ImportNamed>;
1693
+ 'import-x/named'?: Linter.RuleEntry<ImportXNamed>;
1674
1694
  /**
1675
1695
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
1676
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/namespace.md
1696
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/namespace.md
1677
1697
  */
1678
- 'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
1698
+ 'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>;
1679
1699
  /**
1680
1700
  * Enforce a newline after import statements.
1681
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/newline-after-import.md
1701
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/newline-after-import.md
1682
1702
  */
1683
- 'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
1703
+ 'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>;
1684
1704
  /**
1685
1705
  * Forbid import of modules using absolute paths.
1686
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-absolute-path.md
1706
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-absolute-path.md
1687
1707
  */
1688
- 'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
1708
+ 'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>;
1689
1709
  /**
1690
1710
  * Forbid AMD `require` and `define` calls.
1691
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-amd.md
1711
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-amd.md
1692
1712
  */
1693
- 'import/no-amd'?: Linter.RuleEntry<[]>;
1713
+ 'import-x/no-amd'?: Linter.RuleEntry<[]>;
1694
1714
  /**
1695
1715
  * Forbid anonymous values as default exports.
1696
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-anonymous-default-export.md
1716
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-anonymous-default-export.md
1697
1717
  */
1698
- 'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
1718
+ 'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>;
1699
1719
  /**
1700
1720
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
1701
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-commonjs.md
1721
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-commonjs.md
1702
1722
  */
1703
- 'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
1723
+ 'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>;
1704
1724
  /**
1705
1725
  * Forbid a module from importing a module with a dependency path back to itself.
1706
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-cycle.md
1726
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-cycle.md
1707
1727
  */
1708
- 'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
1728
+ 'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>;
1709
1729
  /**
1710
1730
  * Forbid default exports.
1711
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-default-export.md
1731
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-default-export.md
1712
1732
  */
1713
- 'import/no-default-export'?: Linter.RuleEntry<[]>;
1733
+ 'import-x/no-default-export'?: Linter.RuleEntry<[]>;
1714
1734
  /**
1715
1735
  * Forbid imported names marked with `@deprecated` documentation tag.
1716
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-deprecated.md
1736
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-deprecated.md
1717
1737
  */
1718
- 'import/no-deprecated'?: Linter.RuleEntry<[]>;
1738
+ 'import-x/no-deprecated'?: Linter.RuleEntry<[]>;
1719
1739
  /**
1720
1740
  * Forbid repeated import of the same module in multiple places.
1721
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-duplicates.md
1741
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-duplicates.md
1722
1742
  */
1723
- 'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
1743
+ 'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>;
1724
1744
  /**
1725
1745
  * Forbid `require()` calls with expressions.
1726
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-dynamic-require.md
1746
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-dynamic-require.md
1727
1747
  */
1728
- 'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
1748
+ 'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>;
1729
1749
  /**
1730
1750
  * Forbid empty named import blocks.
1731
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-empty-named-blocks.md
1751
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-empty-named-blocks.md
1732
1752
  */
1733
- 'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
1753
+ 'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
1734
1754
  /**
1735
1755
  * Forbid the use of extraneous packages.
1736
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-extraneous-dependencies.md
1756
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-extraneous-dependencies.md
1737
1757
  */
1738
- 'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
1758
+ 'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>;
1739
1759
  /**
1740
1760
  * Forbid import statements with CommonJS module.exports.
1741
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-import-module-exports.md
1761
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-import-module-exports.md
1742
1762
  */
1743
- 'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
1763
+ 'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>;
1744
1764
  /**
1745
1765
  * Forbid importing the submodules of other modules.
1746
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-internal-modules.md
1766
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-internal-modules.md
1747
1767
  */
1748
- 'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
1768
+ 'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>;
1749
1769
  /**
1750
1770
  * Forbid the use of mutable exports with `var` or `let`.
1751
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-mutable-exports.md
1771
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-mutable-exports.md
1752
1772
  */
1753
- 'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
1773
+ 'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>;
1754
1774
  /**
1755
1775
  * Forbid use of exported name as identifier of default export.
1756
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-named-as-default.md
1776
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default.md
1757
1777
  */
1758
- 'import/no-named-as-default'?: Linter.RuleEntry<[]>;
1778
+ 'import-x/no-named-as-default'?: Linter.RuleEntry<[]>;
1759
1779
  /**
1760
1780
  * Forbid use of exported name as property of default export.
1761
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-named-as-default-member.md
1781
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default-member.md
1762
1782
  */
1763
- 'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
1783
+ 'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>;
1764
1784
  /**
1765
1785
  * Forbid named default exports.
1766
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-named-default.md
1786
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-default.md
1767
1787
  */
1768
- 'import/no-named-default'?: Linter.RuleEntry<[]>;
1788
+ 'import-x/no-named-default'?: Linter.RuleEntry<[]>;
1769
1789
  /**
1770
1790
  * Forbid named exports.
1771
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-named-export.md
1791
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-export.md
1772
1792
  */
1773
- 'import/no-named-export'?: Linter.RuleEntry<[]>;
1793
+ 'import-x/no-named-export'?: Linter.RuleEntry<[]>;
1774
1794
  /**
1775
1795
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
1776
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-namespace.md
1796
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-namespace.md
1777
1797
  */
1778
- 'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
1798
+ 'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>;
1779
1799
  /**
1780
1800
  * Forbid Node.js builtin modules.
1781
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-nodejs-modules.md
1801
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-nodejs-modules.md
1782
1802
  */
1783
- 'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
1803
+ 'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>;
1784
1804
  /**
1785
1805
  * Forbid importing packages through relative paths.
1786
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-relative-packages.md
1806
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-packages.md
1787
1807
  */
1788
- 'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
1808
+ 'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>;
1789
1809
  /**
1790
1810
  * Forbid importing modules from parent directories.
1791
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-relative-parent-imports.md
1811
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-parent-imports.md
1792
1812
  */
1793
- 'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
1813
+ 'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>;
1794
1814
  /**
1795
1815
  * Forbid importing a default export by a different name.
1796
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-rename-default.md
1816
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-rename-default.md
1797
1817
  */
1798
- 'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
1818
+ 'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>;
1799
1819
  /**
1800
1820
  * Enforce which files can be imported in a given folder.
1801
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-restricted-paths.md
1821
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-restricted-paths.md
1802
1822
  */
1803
- 'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
1823
+ 'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>;
1804
1824
  /**
1805
1825
  * Forbid a module from importing itself.
1806
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-self-import.md
1826
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-self-import.md
1807
1827
  */
1808
- 'import/no-self-import'?: Linter.RuleEntry<[]>;
1828
+ 'import-x/no-self-import'?: Linter.RuleEntry<[]>;
1809
1829
  /**
1810
1830
  * Forbid unassigned imports.
1811
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-unassigned-import.md
1831
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unassigned-import.md
1812
1832
  */
1813
- 'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
1833
+ 'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>;
1814
1834
  /**
1815
1835
  * Ensure imports point to a file/module that can be resolved.
1816
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-unresolved.md
1836
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unresolved.md
1817
1837
  */
1818
- 'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
1838
+ 'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>;
1819
1839
  /**
1820
1840
  * Forbid modules without exports, or exports without matching import in another module.
1821
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-unused-modules.md
1841
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unused-modules.md
1822
1842
  */
1823
- 'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
1843
+ 'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>;
1824
1844
  /**
1825
1845
  * Forbid unnecessary path segments in import and require statements.
1826
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-useless-path-segments.md
1846
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-useless-path-segments.md
1827
1847
  */
1828
- 'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
1848
+ 'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>;
1829
1849
  /**
1830
1850
  * Forbid webpack loader syntax in imports.
1831
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-webpack-loader-syntax.md
1851
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-webpack-loader-syntax.md
1832
1852
  */
1833
- 'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
1853
+ 'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
1834
1854
  /**
1835
1855
  * Enforce a convention in module import order.
1836
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/order.md
1856
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/order.md
1837
1857
  */
1838
- 'import/order'?: Linter.RuleEntry<ImportOrder>;
1858
+ 'import-x/order'?: Linter.RuleEntry<ImportXOrder>;
1839
1859
  /**
1840
1860
  * Prefer a default export if module exports a single name or multiple names.
1841
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/prefer-default-export.md
1861
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/prefer-default-export.md
1842
1862
  */
1843
- 'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
1863
+ 'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>;
1844
1864
  /**
1845
1865
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1846
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/unambiguous.md
1866
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/unambiguous.md
1847
1867
  */
1848
- 'import/unambiguous'?: Linter.RuleEntry<[]>;
1868
+ 'import-x/unambiguous'?: Linter.RuleEntry<[]>;
1849
1869
  /**
1850
1870
  * Enforce consistent indentation
1851
1871
  * @see https://eslint.org/docs/latest/rules/indent
@@ -8992,6 +9012,8 @@ type TypescriptEslintPreferOptionalChain = [] | [
8992
9012
  type TypescriptEslintPreferPromiseRejectErrors = [] | [
8993
9013
  {
8994
9014
  allowEmptyReject?: boolean;
9015
+ allowThrowingAny?: boolean;
9016
+ allowThrowingUnknown?: boolean;
8995
9017
  }
8996
9018
  ];
8997
9019
  type TypescriptEslintPreferReadonly = [] | [
@@ -9417,6 +9439,22 @@ type GithubActionJobIdCasing = [] | [
9417
9439
  })
9418
9440
  ];
9419
9441
  type GithubActionMaxJobsPerAction = [] | [number];
9442
+ type GithubActionPreferFileExtension = [] | [
9443
+ (("yml" | "yaml") | {
9444
+ extension?: ("yml" | "yaml");
9445
+ caseSensitive?: boolean;
9446
+ })
9447
+ ];
9448
+ type GithubActionPreferStepUsesStyle = [] | [
9449
+ (("release" | "commit" | "branch") | {
9450
+ commit?: boolean;
9451
+ release?: boolean;
9452
+ branch?: boolean;
9453
+ allowRepository?: boolean;
9454
+ allowDocker?: boolean;
9455
+ ignores?: string[];
9456
+ })
9457
+ ];
9420
9458
  type GroupedAccessorPairs = [] | [("anyOrder" | "getBeforeSet" | "setBeforeGet")];
9421
9459
  type HandleCallbackErr = [] | [string];
9422
9460
  type IdBlacklist = string[];
@@ -9440,8 +9478,8 @@ type IdMatch = [] | [string] | [
9440
9478
  }
9441
9479
  ];
9442
9480
  type ImplicitArrowLinebreak = [] | [("beside" | "below")];
9443
- type ImportConsistentTypeSpecifierStyle = [] | [("prefer-inline" | "prefer-top-level")];
9444
- type ImportDynamicImportChunkname = [] | [
9481
+ type ImportXConsistentTypeSpecifierStyle = [] | [("prefer-inline" | "prefer-top-level")];
9482
+ type ImportXDynamicImportChunkname = [] | [
9445
9483
  {
9446
9484
  importFunctions?: string[];
9447
9485
  allowEmpty?: boolean;
@@ -9449,7 +9487,7 @@ type ImportDynamicImportChunkname = [] | [
9449
9487
  [k: string]: unknown | undefined;
9450
9488
  }
9451
9489
  ];
9452
- type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [("always" | "ignorePackages" | "never")] | [
9490
+ type ImportXExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [("always" | "ignorePackages" | "never")] | [
9453
9491
  ("always" | "ignorePackages" | "never"),
9454
9492
  {
9455
9493
  pattern?: {
@@ -9478,32 +9516,32 @@ type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [
9478
9516
  [k: string]: ("always" | "ignorePackages" | "never");
9479
9517
  }
9480
9518
  ]);
9481
- type ImportFirst = [] | [("absolute-first" | "disable-absolute-first")];
9482
- type ImportImportsFirst = [] | [("absolute-first" | "disable-absolute-first")];
9483
- type ImportMaxDependencies = [] | [
9519
+ type ImportXFirst = [] | [("absolute-first" | "disable-absolute-first")];
9520
+ type ImportXImportsFirst = [] | [("absolute-first" | "disable-absolute-first")];
9521
+ type ImportXMaxDependencies = [] | [
9484
9522
  {
9485
9523
  max?: number;
9486
9524
  ignoreTypeImports?: boolean;
9487
9525
  }
9488
9526
  ];
9489
- type ImportNamed = [] | [
9527
+ type ImportXNamed = [] | [
9490
9528
  {
9491
9529
  commonjs?: boolean;
9492
9530
  }
9493
9531
  ];
9494
- type ImportNamespace = [] | [
9532
+ type ImportXNamespace = [] | [
9495
9533
  {
9496
9534
  allowComputed?: boolean;
9497
9535
  }
9498
9536
  ];
9499
- type ImportNewlineAfterImport = [] | [
9537
+ type ImportXNewlineAfterImport = [] | [
9500
9538
  {
9501
9539
  count?: number;
9502
9540
  exactCount?: boolean;
9503
9541
  considerComments?: boolean;
9504
9542
  }
9505
9543
  ];
9506
- type ImportNoAbsolutePath = [] | [
9544
+ type ImportXNoAbsolutePath = [] | [
9507
9545
  {
9508
9546
  commonjs?: boolean;
9509
9547
  amd?: boolean;
@@ -9511,7 +9549,7 @@ type ImportNoAbsolutePath = [] | [
9511
9549
  ignore?: [string, ...(string)[]];
9512
9550
  }
9513
9551
  ];
9514
- type ImportNoAnonymousDefaultExport = [] | [
9552
+ type ImportXNoAnonymousDefaultExport = [] | [
9515
9553
  {
9516
9554
  allowArray?: boolean;
9517
9555
  allowArrowFunction?: boolean;
@@ -9523,14 +9561,14 @@ type ImportNoAnonymousDefaultExport = [] | [
9523
9561
  allowNew?: boolean;
9524
9562
  }
9525
9563
  ];
9526
- type ImportNoCommonjs = ([] | ["allow-primitive-modules"] | [] | [
9564
+ type ImportXNoCommonjs = ([] | ["allow-primitive-modules"] | [] | [
9527
9565
  {
9528
9566
  allowPrimitiveModules?: boolean;
9529
9567
  allowRequire?: boolean;
9530
9568
  allowConditionalRequire?: boolean;
9531
9569
  }
9532
9570
  ]);
9533
- type ImportNoCycle = [] | [
9571
+ type ImportXNoCycle = [] | [
9534
9572
  {
9535
9573
  commonjs?: boolean;
9536
9574
  amd?: boolean;
@@ -9541,18 +9579,18 @@ type ImportNoCycle = [] | [
9541
9579
  allowUnsafeDynamicCyclicDependency?: boolean;
9542
9580
  }
9543
9581
  ];
9544
- type ImportNoDuplicates = [] | [
9582
+ type ImportXNoDuplicates = [] | [
9545
9583
  {
9546
9584
  considerQueryString?: boolean;
9547
9585
  "prefer-inline"?: boolean;
9548
9586
  }
9549
9587
  ];
9550
- type ImportNoDynamicRequire = [] | [
9588
+ type ImportXNoDynamicRequire = [] | [
9551
9589
  {
9552
9590
  esmodule?: boolean;
9553
9591
  }
9554
9592
  ];
9555
- type ImportNoExtraneousDependencies = [] | [
9593
+ type ImportXNoExtraneousDependencies = [] | [
9556
9594
  {
9557
9595
  devDependencies?: (boolean | unknown[]);
9558
9596
  optionalDependencies?: (boolean | unknown[]);
@@ -9564,30 +9602,30 @@ type ImportNoExtraneousDependencies = [] | [
9564
9602
  whitelist?: unknown[];
9565
9603
  }
9566
9604
  ];
9567
- type ImportNoImportModuleExports = [] | [
9605
+ type ImportXNoImportModuleExports = [] | [
9568
9606
  {
9569
9607
  exceptions?: unknown[];
9570
9608
  }
9571
9609
  ];
9572
- type ImportNoInternalModules = [] | [
9610
+ type ImportXNoInternalModules = [] | [
9573
9611
  ({
9574
9612
  allow?: string[];
9575
9613
  } | {
9576
9614
  forbid?: string[];
9577
9615
  })
9578
9616
  ];
9579
- type ImportNoNamespace = [] | [
9617
+ type ImportXNoNamespace = [] | [
9580
9618
  {
9581
9619
  ignore?: string[];
9582
9620
  [k: string]: unknown | undefined;
9583
9621
  }
9584
9622
  ];
9585
- type ImportNoNodejsModules = [] | [
9623
+ type ImportXNoNodejsModules = [] | [
9586
9624
  {
9587
9625
  allow?: string[];
9588
9626
  }
9589
9627
  ];
9590
- type ImportNoRelativePackages = [] | [
9628
+ type ImportXNoRelativePackages = [] | [
9591
9629
  {
9592
9630
  commonjs?: boolean;
9593
9631
  amd?: boolean;
@@ -9595,7 +9633,7 @@ type ImportNoRelativePackages = [] | [
9595
9633
  ignore?: [string, ...(string)[]];
9596
9634
  }
9597
9635
  ];
9598
- type ImportNoRelativeParentImports = [] | [
9636
+ type ImportXNoRelativeParentImports = [] | [
9599
9637
  {
9600
9638
  commonjs?: boolean;
9601
9639
  amd?: boolean;
@@ -9603,13 +9641,13 @@ type ImportNoRelativeParentImports = [] | [
9603
9641
  ignore?: [string, ...(string)[]];
9604
9642
  }
9605
9643
  ];
9606
- type ImportNoRenameDefault = [] | [
9644
+ type ImportXNoRenameDefault = [] | [
9607
9645
  {
9608
9646
  commonjs?: boolean;
9609
9647
  preventRenamingBindings?: boolean;
9610
9648
  }
9611
9649
  ];
9612
- type ImportNoRestrictedPaths = [] | [
9650
+ type ImportXNoRestrictedPaths = [] | [
9613
9651
  {
9614
9652
  zones?: [
9615
9653
  {
@@ -9628,7 +9666,7 @@ type ImportNoRestrictedPaths = [] | [
9628
9666
  basePath?: string;
9629
9667
  }
9630
9668
  ];
9631
- type ImportNoUnassignedImport = [] | [
9669
+ type ImportXNoUnassignedImport = [] | [
9632
9670
  {
9633
9671
  devDependencies?: (boolean | unknown[]);
9634
9672
  optionalDependencies?: (boolean | unknown[]);
@@ -9636,7 +9674,7 @@ type ImportNoUnassignedImport = [] | [
9636
9674
  allow?: string[];
9637
9675
  }
9638
9676
  ];
9639
- type ImportNoUnresolved = [] | [
9677
+ type ImportXNoUnresolved = [] | [
9640
9678
  {
9641
9679
  commonjs?: boolean;
9642
9680
  amd?: boolean;
@@ -9646,7 +9684,7 @@ type ImportNoUnresolved = [] | [
9646
9684
  caseSensitiveStrict?: boolean;
9647
9685
  }
9648
9686
  ];
9649
- type ImportNoUnusedModules = [] | [
9687
+ type ImportXNoUnusedModules = [] | [
9650
9688
  ({
9651
9689
  unusedExports: true;
9652
9690
  src?: [unknown, ...(unknown)[]];
@@ -9656,13 +9694,13 @@ type ImportNoUnusedModules = [] | [
9656
9694
  [k: string]: unknown | undefined;
9657
9695
  })
9658
9696
  ];
9659
- type ImportNoUselessPathSegments = [] | [
9697
+ type ImportXNoUselessPathSegments = [] | [
9660
9698
  {
9661
9699
  commonjs?: boolean;
9662
9700
  noUselessIndex?: boolean;
9663
9701
  }
9664
9702
  ];
9665
- type ImportOrder = [] | [
9703
+ type ImportXOrder = [] | [
9666
9704
  {
9667
9705
  groups?: unknown[];
9668
9706
  pathGroupsExcludedImportTypes?: unknown[];
@@ -9684,7 +9722,7 @@ type ImportOrder = [] | [
9684
9722
  warnOnUnassignedImports?: boolean;
9685
9723
  }
9686
9724
  ];
9687
- type ImportPreferDefaultExport = [] | [
9725
+ type ImportXPreferDefaultExport = [] | [
9688
9726
  {
9689
9727
  target?: ("single" | "any");
9690
9728
  }
@@ -11922,14 +11960,16 @@ type PerfectionistSortArrayIncludes = [] | [
11922
11960
  ];
11923
11961
  type PerfectionistSortClasses = [] | [
11924
11962
  {
11963
+ ignoreCallbackDependenciesPatterns?: string[];
11964
+ partitionByComment?: (string[] | boolean | string);
11925
11965
  customGroups?: ({
11926
11966
  groupName?: string;
11927
11967
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
11928
11968
  order?: ("desc" | "asc");
11929
11969
  anyOf?: {
11930
- modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
11931
11970
  elementValuePattern?: string;
11932
11971
  decoratorNamePattern?: string;
11972
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
11933
11973
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
11934
11974
  elementNamePattern?: string;
11935
11975
  }[];
@@ -11937,14 +11977,12 @@ type PerfectionistSortClasses = [] | [
11937
11977
  groupName?: string;
11938
11978
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
11939
11979
  order?: ("desc" | "asc");
11940
- modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
11941
11980
  elementValuePattern?: string;
11942
11981
  decoratorNamePattern?: string;
11982
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
11943
11983
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
11944
11984
  elementNamePattern?: string;
11945
11985
  })[];
11946
- ignoreCallbackDependenciesPatterns?: string[];
11947
- partitionByComment?: (string[] | boolean | string);
11948
11986
  partitionByNewLine?: boolean;
11949
11987
  specialCharacters?: ("remove" | "trim" | "keep");
11950
11988
  newlinesBetween?: ("ignore" | "always" | "never");
@@ -12048,13 +12086,29 @@ type PerfectionistSortInterfaces = [] | [
12048
12086
  {
12049
12087
  ignorePattern?: string[];
12050
12088
  partitionByComment?: (string[] | boolean | string);
12051
- groupKind?: ("mixed" | "optional-first" | "required-first");
12089
+ customGroups?: ({
12090
+ [k: string]: (string | string[]) | undefined;
12091
+ } | ({
12092
+ groupName?: string;
12093
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
12094
+ order?: ("desc" | "asc");
12095
+ anyOf?: {
12096
+ modifiers?: ("optional" | "required" | "multiline")[];
12097
+ selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
12098
+ elementNamePattern?: string;
12099
+ }[];
12100
+ } | {
12101
+ groupName?: string;
12102
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
12103
+ order?: ("desc" | "asc");
12104
+ modifiers?: ("optional" | "required" | "multiline")[];
12105
+ selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
12106
+ elementNamePattern?: string;
12107
+ })[]);
12108
+ groupKind?: ("mixed" | "required-first" | "optional-first");
12052
12109
  partitionByNewLine?: boolean;
12053
12110
  specialCharacters?: ("remove" | "trim" | "keep");
12054
12111
  newlinesBetween?: ("ignore" | "always" | "never");
12055
- customGroups?: {
12056
- [k: string]: (string | string[]) | undefined;
12057
- };
12058
12112
  ignoreCase?: boolean;
12059
12113
  locales?: (string | string[]);
12060
12114
  groups?: (string | string[])[];
@@ -12102,14 +12156,14 @@ type PerfectionistSortMaps = [] | [
12102
12156
  ];
12103
12157
  type PerfectionistSortModules = [] | [
12104
12158
  {
12159
+ partitionByComment?: (string[] | boolean | string);
12105
12160
  customGroups?: ({
12106
12161
  groupName?: string;
12107
12162
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
12108
12163
  order?: ("desc" | "asc");
12109
12164
  anyOf?: {
12110
- modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
12111
- elementValuePattern?: string;
12112
12165
  decoratorNamePattern?: string;
12166
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
12113
12167
  selector?: ("enum" | "function" | "interface" | "type" | "class");
12114
12168
  elementNamePattern?: string;
12115
12169
  }[];
@@ -12117,13 +12171,11 @@ type PerfectionistSortModules = [] | [
12117
12171
  groupName?: string;
12118
12172
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
12119
12173
  order?: ("desc" | "asc");
12120
- modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
12121
- elementValuePattern?: string;
12122
12174
  decoratorNamePattern?: string;
12175
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
12123
12176
  selector?: ("enum" | "function" | "interface" | "type" | "class");
12124
12177
  elementNamePattern?: string;
12125
12178
  })[];
12126
- partitionByComment?: (string[] | boolean | string);
12127
12179
  partitionByNewLine?: boolean;
12128
12180
  specialCharacters?: ("remove" | "trim" | "keep");
12129
12181
  newlinesBetween?: ("ignore" | "always" | "never");
@@ -12161,14 +12213,31 @@ type PerfectionistSortNamedImports = [] | [
12161
12213
  ];
12162
12214
  type PerfectionistSortObjectTypes = [] | [
12163
12215
  {
12216
+ ignorePattern?: string[];
12164
12217
  partitionByComment?: (string[] | boolean | string);
12218
+ customGroups?: ({
12219
+ [k: string]: (string | string[]) | undefined;
12220
+ } | ({
12221
+ groupName?: string;
12222
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
12223
+ order?: ("desc" | "asc");
12224
+ anyOf?: {
12225
+ modifiers?: ("optional" | "required" | "multiline")[];
12226
+ selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
12227
+ elementNamePattern?: string;
12228
+ }[];
12229
+ } | {
12230
+ groupName?: string;
12231
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
12232
+ order?: ("desc" | "asc");
12233
+ modifiers?: ("optional" | "required" | "multiline")[];
12234
+ selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
12235
+ elementNamePattern?: string;
12236
+ })[]);
12165
12237
  groupKind?: ("mixed" | "required-first" | "optional-first");
12166
12238
  partitionByNewLine?: boolean;
12167
12239
  specialCharacters?: ("remove" | "trim" | "keep");
12168
12240
  newlinesBetween?: ("ignore" | "always" | "never");
12169
- customGroups?: {
12170
- [k: string]: (string | string[]) | undefined;
12171
- };
12172
12241
  ignoreCase?: boolean;
12173
12242
  locales?: (string | string[]);
12174
12243
  groups?: (string | string[])[];
@@ -14672,7 +14741,7 @@ type Yoda = [] | [("always" | "never")] | [
14672
14741
  onlyEquality?: boolean;
14673
14742
  }
14674
14743
  ];
14675
- type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/processor' | 'ntnyq/markdown/parser' | 'ntnyq/markdown/disabled/code-blocks' | 'ntnyq/node' | 'ntnyq/ntnyq' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/perfectionist/common' | 'ntnyq/perfectionist/enums' | 'ntnyq/perfectionist/types' | 'ntnyq/perfectionist/constants' | 'ntnyq/regexp' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/userscript' | 'ntnyq/specials/config-file' | 'ntnyq/stylistic' | 'ntnyq/toml' | 'ntnyq/ts/setup' | 'ntnyq/ts/parser' | 'ntnyq/ts/rules' | 'ntnyq/ts/types' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'ntnyq/vitest' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/yaml';
14744
+ type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/import-x' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/processor' | 'ntnyq/markdown/parser' | 'ntnyq/markdown/disabled/code-blocks' | 'ntnyq/node' | 'ntnyq/ntnyq' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/perfectionist/common' | 'ntnyq/perfectionist/enums' | 'ntnyq/perfectionist/types' | 'ntnyq/perfectionist/constants' | 'ntnyq/regexp' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/userscript' | 'ntnyq/specials/config-file' | 'ntnyq/stylistic' | 'ntnyq/toml' | 'ntnyq/ts/setup' | 'ntnyq/ts/parser' | 'ntnyq/ts/rules' | 'ntnyq/ts/types' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'ntnyq/vitest' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/yaml';
14676
14745
 
14677
14746
  /**
14678
14747
  * ESLint config
@@ -14725,9 +14794,9 @@ interface ConfigAntfuOptions extends OptionsOverrides {
14725
14794
  }
14726
14795
  interface ConfigCommentsOptions extends OptionsOverrides {
14727
14796
  }
14728
- interface ConfigGitHubActionOptions extends OptionsOverrides {
14797
+ interface ConfigGitHubActionOptions extends RecommendedOptions, OptionsOverrides {
14729
14798
  }
14730
- interface ConfigImportsOptions extends OptionsOverrides {
14799
+ interface ConfigImportXOptions extends OptionsOverrides {
14731
14800
  }
14732
14801
  interface ConfigJsdocOptions extends OptionsFeatures, OptionsOverrides {
14733
14802
  }
@@ -14959,49 +15028,52 @@ interface ConfigVueOptions extends OptionsFeatures, OptionsFiles, OptionsOverrid
14959
15028
  interface OptionsOverrides<Rules extends TypedConfigItem['rules'] = TypedConfigItem['rules']> {
14960
15029
  overrides?: Rules;
14961
15030
  }
15031
+ interface ConfigOptionsInternal {
15032
+ /**
15033
+ * @internal
15034
+ */
15035
+ format?: boolean | ConfigFormatOptions;
15036
+ /**
15037
+ * @internal
15038
+ */
15039
+ ntnyq?: boolean | ConfigNtnyqOptions;
15040
+ /**
15041
+ * @internal
15042
+ */
15043
+ unusedImports?: boolean | ConfigUnusedImportsOptions;
15044
+ }
14962
15045
  /**
14963
15046
  * Config factory options
14964
15047
  */
14965
15048
  interface ConfigOptions extends ConfigOptionsInternal, OptionsExtensions {
14966
- node?: ConfigNodeOptions;
14967
- jsdoc?: ConfigJsdocOptions;
14968
- ignores?: ConfigIgnoresOptions;
14969
- imports?: ConfigImportsOptions;
14970
15049
  command?: ConfigCommandOptions;
14971
15050
  comments?: ConfigCommentsOptions;
15051
+ ignores?: ConfigIgnoresOptions;
15052
+ importX?: ConfigImportXOptions;
14972
15053
  javascript?: ConfigJavaScriptOptions;
15054
+ jsdoc?: ConfigJsdocOptions;
15055
+ node?: ConfigNodeOptions;
14973
15056
  specials?: ConfigSpecialsOptions;
14974
- sort?: boolean | ConfigSortOptions;
15057
+ /**
15058
+ * bellow can be disabled
15059
+ */
15060
+ antfu?: boolean | ConfigAntfuOptions;
15061
+ githubAction?: boolean | ConfigGitHubActionOptions;
14975
15062
  gitignore?: boolean | ConfigGitIgnoreOptions;
15063
+ jsonc?: boolean | ConfigJsoncOptions;
15064
+ markdown?: boolean | ConfigMarkdownOptions;
15065
+ perfectionist?: boolean | ConfigPerfectionistOptions;
15066
+ prettier?: boolean | ConfigPrettierOptions;
15067
+ regexp?: boolean | ConfigRegexpOptions;
15068
+ sort?: boolean | ConfigSortOptions;
14976
15069
  stylistic?: boolean | ConfigStylisticOptions;
15070
+ test?: boolean | ConfigTestOptions;
15071
+ toml?: boolean | ConfigTomlOptions;
14977
15072
  typescript?: boolean | ConfigTypeScriptOptions;
14978
15073
  unicorn?: boolean | ConfigUnicornOptions;
14979
- prettier?: boolean | ConfigPrettierOptions;
14980
- perfectionist?: boolean | ConfigPerfectionistOptions;
14981
15074
  unocss?: boolean | ConfigUnoCSSOptions;
14982
- regexp?: boolean | ConfigRegexpOptions;
14983
- jsonc?: boolean | ConfigJsoncOptions;
14984
- yml?: boolean | ConfigYmlOptions;
14985
- markdown?: boolean | ConfigMarkdownOptions;
14986
- toml?: boolean | ConfigTomlOptions;
14987
15075
  vue?: boolean | ConfigVueOptions;
14988
- test?: boolean | ConfigTestOptions;
14989
- antfu?: boolean | ConfigAntfuOptions;
14990
- githubAction?: boolean | ConfigGitHubActionOptions;
14991
- }
14992
- interface ConfigOptionsInternal {
14993
- /**
14994
- * @internal
14995
- */
14996
- format?: boolean | ConfigFormatOptions;
14997
- /**
14998
- * @internal
14999
- */
15000
- ntnyq?: boolean | ConfigNtnyqOptions;
15001
- /**
15002
- * @internal
15003
- */
15004
- unusedImports?: boolean | ConfigUnusedImportsOptions;
15076
+ yml?: boolean | ConfigYmlOptions;
15005
15077
  }
15006
15078
 
15007
15079
  /**
@@ -15088,12 +15160,24 @@ declare function resolveSubOptions<K extends keyof ConfigOptions>(options: Confi
15088
15160
 
15089
15161
  declare function mergePrettierOptions(options?: PrettierOptions, overrides?: PrettierOptions): PrettierOptions;
15090
15162
 
15163
+ /**
15164
+ * @file ESLint parsers
15165
+ */
15166
+
15091
15167
  /**
15092
15168
  * With meta
15093
15169
  */
15094
15170
  declare const parserTypeScript: {
15095
- meta?: { [K in keyof _typescript_eslint_utils_ts_eslint.Parser.ParserMeta]?: _typescript_eslint_utils_ts_eslint.Parser.ParserMeta[K] | undefined; };
15096
- parseForESLint(text: string, options?: unknown): { [k in keyof _typescript_eslint_utils_ts_eslint.Parser.ParseResult]: unknown; };
15171
+ meta?: {
15172
+ name?: string | undefined;
15173
+ version?: string | undefined;
15174
+ };
15175
+ parseForESLint(text: string, options?: unknown): {
15176
+ ast: unknown;
15177
+ scopeManager?: unknown;
15178
+ services?: unknown;
15179
+ visitorKeys?: unknown;
15180
+ };
15097
15181
  };
15098
15182
 
15099
15183
  /**
@@ -15140,7 +15224,7 @@ declare const command: (options?: ConfigCommandOptions) => TypedConfigItem[];
15140
15224
  */
15141
15225
  declare const ignores: (customIgnores?: ConfigIgnoresOptions) => TypedConfigItem[];
15142
15226
 
15143
- declare const imports: (options?: ConfigImportsOptions) => TypedConfigItem[];
15227
+ declare const importX: (options?: ConfigImportXOptions) => TypedConfigItem[];
15144
15228
 
15145
15229
  declare const unicorn: (options?: ConfigUnicornOptions) => TypedConfigItem[];
15146
15230
 
@@ -15163,6 +15247,12 @@ declare const typescript: (options?: ConfigTypeScriptOptions) => TypedConfigItem
15163
15247
 
15164
15248
  declare const githubAction: (options?: ConfigGitHubActionOptions) => TypedConfigItem[];
15165
15249
 
15250
+ declare const defaultSortInterfacesGroups: string[];
15251
+ declare const defaultSortObjectTypesGroups: string[];
15252
+ /**
15253
+ * Philosophy: keep simple thing first but null & undefined
15254
+ */
15255
+ declare const defaultSortIntersectionTypesGroups: string[];
15166
15256
  /**
15167
15257
  * Prefer `alphabetical` sort type
15168
15258
  */
@@ -15175,4 +15265,4 @@ declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConf
15175
15265
  */
15176
15266
  declare const DEFAULT_PRETTIER_OPTIONS: PrettierOptions;
15177
15267
 
15178
- export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigNtnyqOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigSortOptions, type ConfigSpecialsOptions, type ConfigStylisticOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, DEFAULT_PRETTIER_OPTIONS, type ESLintConfig, type ESLintParser, type ESLintParserOptions, type ESLintProcessor, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_TYPES, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OptionsExtensions, type OptionsFeatures, type OptionsFiles, type OptionsOverrides, type PrettierOptions, type Pretty, type ResolvedOptions, type RuleOptions, type TSESLintParserOptions, type TypedConfigItem, antfu, command, comments, defineESLintConfig, format, getOverrides, githubAction, gitignore, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, mergePrettierOptions, node, ntnyq, parserPlain, parserTypeScript, perfectionist, prettier, regexp, resolveSubOptions, sort, specials, stylistic, test, toArray, toml, typescript, unicorn, unocss, unusedImports, vitest, vue, yml };
15268
+ export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportXOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigNtnyqOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigSortOptions, type ConfigSpecialsOptions, type ConfigStylisticOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, DEFAULT_PRETTIER_OPTIONS, type ESLintConfig, type ESLintParser, type ESLintParserOptions, type ESLintProcessor, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_TYPES, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OptionsExtensions, type OptionsFeatures, type OptionsFiles, type OptionsOverrides, type PrettierOptions, type Pretty, type ResolvedOptions, type RuleOptions, type TSESLintParserOptions, type TypedConfigItem, antfu, command, comments, defaultSortInterfacesGroups, defaultSortIntersectionTypesGroups, defaultSortObjectTypesGroups, defineESLintConfig, format, getOverrides, githubAction, gitignore, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, importX, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, mergePrettierOptions, node, ntnyq, parserPlain, parserTypeScript, perfectionist, prettier, regexp, resolveSubOptions, sort, specials, stylistic, test, toArray, toml, typescript, unicorn, unocss, unusedImports, vitest, vue, yml };