@ntnyq/eslint-config 3.7.2 → 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/README.md +1 -1
- package/dist/index.cjs +112 -52
- package/dist/index.d.cts +228 -175
- package/dist/index.d.ts +228 -175
- package/dist/index.js +110 -53
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -9,7 +9,6 @@ import { Linter } from 'eslint';
|
|
|
9
9
|
import { ConfigWithExtends } from 'typescript-eslint';
|
|
10
10
|
export { plugin as pluginTypeScript, configs as typescriptConfigs } from 'typescript-eslint';
|
|
11
11
|
import { RequiredOptions, BuiltInParserName } from 'prettier';
|
|
12
|
-
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
13
12
|
import * as eslintPluginRegexp from 'eslint-plugin-regexp';
|
|
14
13
|
export { eslintPluginRegexp as pluginRegexp };
|
|
15
14
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
@@ -24,8 +23,8 @@ export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
|
24
23
|
export { default as pluginFormat } from 'eslint-plugin-format';
|
|
25
24
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
26
25
|
export { default as pluginVitest } from '@vitest/eslint-plugin';
|
|
27
|
-
export { default as pluginImport } from 'eslint-plugin-import-x';
|
|
28
26
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
27
|
+
export { default as pluginImportX } from 'eslint-plugin-import-x';
|
|
29
28
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
30
29
|
export { default as pluginStylistic } from '@stylistic/eslint-plugin';
|
|
31
30
|
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist';
|
|
@@ -1638,235 +1637,235 @@ interface RuleOptions {
|
|
|
1638
1637
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
1639
1638
|
/**
|
|
1640
1639
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
1641
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1640
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/consistent-type-specifier-style.md
|
|
1642
1641
|
*/
|
|
1643
|
-
'import/consistent-type-specifier-style'?: Linter.RuleEntry<
|
|
1642
|
+
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>;
|
|
1644
1643
|
/**
|
|
1645
1644
|
* Ensure a default export is present, given a default import.
|
|
1646
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1645
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/default.md
|
|
1647
1646
|
*/
|
|
1648
|
-
'import/default'?: Linter.RuleEntry<[]>;
|
|
1647
|
+
'import-x/default'?: Linter.RuleEntry<[]>;
|
|
1649
1648
|
/**
|
|
1650
1649
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
1651
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1650
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/dynamic-import-chunkname.md
|
|
1652
1651
|
*/
|
|
1653
|
-
'import/dynamic-import-chunkname'?: Linter.RuleEntry<
|
|
1652
|
+
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>;
|
|
1654
1653
|
/**
|
|
1655
1654
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
1656
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1655
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/export.md
|
|
1657
1656
|
*/
|
|
1658
|
-
'import/export'?: Linter.RuleEntry<[]>;
|
|
1657
|
+
'import-x/export'?: Linter.RuleEntry<[]>;
|
|
1659
1658
|
/**
|
|
1660
1659
|
* Ensure all exports appear after other statements.
|
|
1661
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1660
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/exports-last.md
|
|
1662
1661
|
*/
|
|
1663
|
-
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
1662
|
+
'import-x/exports-last'?: Linter.RuleEntry<[]>;
|
|
1664
1663
|
/**
|
|
1665
1664
|
* Ensure consistent use of file extension within the import path.
|
|
1666
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1665
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/extensions.md
|
|
1667
1666
|
*/
|
|
1668
|
-
'import/extensions'?: Linter.RuleEntry<
|
|
1667
|
+
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>;
|
|
1669
1668
|
/**
|
|
1670
1669
|
* Ensure all imports appear before other statements.
|
|
1671
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1670
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/first.md
|
|
1672
1671
|
*/
|
|
1673
|
-
'import/first'?: Linter.RuleEntry<
|
|
1672
|
+
'import-x/first'?: Linter.RuleEntry<ImportXFirst>;
|
|
1674
1673
|
/**
|
|
1675
1674
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
1676
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1675
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/group-exports.md
|
|
1677
1676
|
*/
|
|
1678
|
-
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
1677
|
+
'import-x/group-exports'?: Linter.RuleEntry<[]>;
|
|
1679
1678
|
/**
|
|
1680
1679
|
* Replaced by `import-x/first`.
|
|
1681
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1680
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/imports-first.md
|
|
1682
1681
|
* @deprecated
|
|
1683
1682
|
*/
|
|
1684
|
-
'import/imports-first'?: Linter.RuleEntry<
|
|
1683
|
+
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>;
|
|
1685
1684
|
/**
|
|
1686
1685
|
* Enforce the maximum number of dependencies a module can have.
|
|
1687
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1686
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/max-dependencies.md
|
|
1688
1687
|
*/
|
|
1689
|
-
'import/max-dependencies'?: Linter.RuleEntry<
|
|
1688
|
+
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>;
|
|
1690
1689
|
/**
|
|
1691
1690
|
* Ensure named imports correspond to a named export in the remote file.
|
|
1692
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1691
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/named.md
|
|
1693
1692
|
*/
|
|
1694
|
-
'import/named'?: Linter.RuleEntry<
|
|
1693
|
+
'import-x/named'?: Linter.RuleEntry<ImportXNamed>;
|
|
1695
1694
|
/**
|
|
1696
1695
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
1697
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1696
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/namespace.md
|
|
1698
1697
|
*/
|
|
1699
|
-
'import/namespace'?: Linter.RuleEntry<
|
|
1698
|
+
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>;
|
|
1700
1699
|
/**
|
|
1701
1700
|
* Enforce a newline after import statements.
|
|
1702
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1701
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/newline-after-import.md
|
|
1703
1702
|
*/
|
|
1704
|
-
'import/newline-after-import'?: Linter.RuleEntry<
|
|
1703
|
+
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>;
|
|
1705
1704
|
/**
|
|
1706
1705
|
* Forbid import of modules using absolute paths.
|
|
1707
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1706
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-absolute-path.md
|
|
1708
1707
|
*/
|
|
1709
|
-
'import/no-absolute-path'?: Linter.RuleEntry<
|
|
1708
|
+
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>;
|
|
1710
1709
|
/**
|
|
1711
1710
|
* Forbid AMD `require` and `define` calls.
|
|
1712
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1711
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-amd.md
|
|
1713
1712
|
*/
|
|
1714
|
-
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
1713
|
+
'import-x/no-amd'?: Linter.RuleEntry<[]>;
|
|
1715
1714
|
/**
|
|
1716
1715
|
* Forbid anonymous values as default exports.
|
|
1717
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1716
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-anonymous-default-export.md
|
|
1718
1717
|
*/
|
|
1719
|
-
'import/no-anonymous-default-export'?: Linter.RuleEntry<
|
|
1718
|
+
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>;
|
|
1720
1719
|
/**
|
|
1721
1720
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
1722
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1721
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-commonjs.md
|
|
1723
1722
|
*/
|
|
1724
|
-
'import/no-commonjs'?: Linter.RuleEntry<
|
|
1723
|
+
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>;
|
|
1725
1724
|
/**
|
|
1726
1725
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
1727
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1726
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-cycle.md
|
|
1728
1727
|
*/
|
|
1729
|
-
'import/no-cycle'?: Linter.RuleEntry<
|
|
1728
|
+
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>;
|
|
1730
1729
|
/**
|
|
1731
1730
|
* Forbid default exports.
|
|
1732
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1731
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-default-export.md
|
|
1733
1732
|
*/
|
|
1734
|
-
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
1733
|
+
'import-x/no-default-export'?: Linter.RuleEntry<[]>;
|
|
1735
1734
|
/**
|
|
1736
1735
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
1737
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1736
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-deprecated.md
|
|
1738
1737
|
*/
|
|
1739
|
-
'import/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
1738
|
+
'import-x/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
1740
1739
|
/**
|
|
1741
1740
|
* Forbid repeated import of the same module in multiple places.
|
|
1742
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1741
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-duplicates.md
|
|
1743
1742
|
*/
|
|
1744
|
-
'import/no-duplicates'?: Linter.RuleEntry<
|
|
1743
|
+
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>;
|
|
1745
1744
|
/**
|
|
1746
1745
|
* Forbid `require()` calls with expressions.
|
|
1747
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1746
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-dynamic-require.md
|
|
1748
1747
|
*/
|
|
1749
|
-
'import/no-dynamic-require'?: Linter.RuleEntry<
|
|
1748
|
+
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>;
|
|
1750
1749
|
/**
|
|
1751
1750
|
* Forbid empty named import blocks.
|
|
1752
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1751
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-empty-named-blocks.md
|
|
1753
1752
|
*/
|
|
1754
|
-
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
1753
|
+
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
1755
1754
|
/**
|
|
1756
1755
|
* Forbid the use of extraneous packages.
|
|
1757
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1756
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-extraneous-dependencies.md
|
|
1758
1757
|
*/
|
|
1759
|
-
'import/no-extraneous-dependencies'?: Linter.RuleEntry<
|
|
1758
|
+
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>;
|
|
1760
1759
|
/**
|
|
1761
1760
|
* Forbid import statements with CommonJS module.exports.
|
|
1762
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1761
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-import-module-exports.md
|
|
1763
1762
|
*/
|
|
1764
|
-
'import/no-import-module-exports'?: Linter.RuleEntry<
|
|
1763
|
+
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>;
|
|
1765
1764
|
/**
|
|
1766
1765
|
* Forbid importing the submodules of other modules.
|
|
1767
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1766
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-internal-modules.md
|
|
1768
1767
|
*/
|
|
1769
|
-
'import/no-internal-modules'?: Linter.RuleEntry<
|
|
1768
|
+
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>;
|
|
1770
1769
|
/**
|
|
1771
1770
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
1772
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1771
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-mutable-exports.md
|
|
1773
1772
|
*/
|
|
1774
|
-
'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
1773
|
+
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
1775
1774
|
/**
|
|
1776
1775
|
* Forbid use of exported name as identifier of default export.
|
|
1777
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1776
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default.md
|
|
1778
1777
|
*/
|
|
1779
|
-
'import/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
1778
|
+
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
1780
1779
|
/**
|
|
1781
1780
|
* Forbid use of exported name as property of default export.
|
|
1782
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1781
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default-member.md
|
|
1783
1782
|
*/
|
|
1784
|
-
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
1783
|
+
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
1785
1784
|
/**
|
|
1786
1785
|
* Forbid named default exports.
|
|
1787
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1786
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-default.md
|
|
1788
1787
|
*/
|
|
1789
|
-
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
1788
|
+
'import-x/no-named-default'?: Linter.RuleEntry<[]>;
|
|
1790
1789
|
/**
|
|
1791
1790
|
* Forbid named exports.
|
|
1792
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1791
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-export.md
|
|
1793
1792
|
*/
|
|
1794
|
-
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
1793
|
+
'import-x/no-named-export'?: Linter.RuleEntry<[]>;
|
|
1795
1794
|
/**
|
|
1796
1795
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
1797
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1796
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-namespace.md
|
|
1798
1797
|
*/
|
|
1799
|
-
'import/no-namespace'?: Linter.RuleEntry<
|
|
1798
|
+
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>;
|
|
1800
1799
|
/**
|
|
1801
1800
|
* Forbid Node.js builtin modules.
|
|
1802
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1801
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-nodejs-modules.md
|
|
1803
1802
|
*/
|
|
1804
|
-
'import/no-nodejs-modules'?: Linter.RuleEntry<
|
|
1803
|
+
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>;
|
|
1805
1804
|
/**
|
|
1806
1805
|
* Forbid importing packages through relative paths.
|
|
1807
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1806
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-packages.md
|
|
1808
1807
|
*/
|
|
1809
|
-
'import/no-relative-packages'?: Linter.RuleEntry<
|
|
1808
|
+
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>;
|
|
1810
1809
|
/**
|
|
1811
1810
|
* Forbid importing modules from parent directories.
|
|
1812
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1811
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-parent-imports.md
|
|
1813
1812
|
*/
|
|
1814
|
-
'import/no-relative-parent-imports'?: Linter.RuleEntry<
|
|
1813
|
+
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>;
|
|
1815
1814
|
/**
|
|
1816
1815
|
* Forbid importing a default export by a different name.
|
|
1817
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1816
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-rename-default.md
|
|
1818
1817
|
*/
|
|
1819
|
-
'import/no-rename-default'?: Linter.RuleEntry<
|
|
1818
|
+
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>;
|
|
1820
1819
|
/**
|
|
1821
1820
|
* Enforce which files can be imported in a given folder.
|
|
1822
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1821
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-restricted-paths.md
|
|
1823
1822
|
*/
|
|
1824
|
-
'import/no-restricted-paths'?: Linter.RuleEntry<
|
|
1823
|
+
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>;
|
|
1825
1824
|
/**
|
|
1826
1825
|
* Forbid a module from importing itself.
|
|
1827
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1826
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-self-import.md
|
|
1828
1827
|
*/
|
|
1829
|
-
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
1828
|
+
'import-x/no-self-import'?: Linter.RuleEntry<[]>;
|
|
1830
1829
|
/**
|
|
1831
1830
|
* Forbid unassigned imports.
|
|
1832
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1831
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unassigned-import.md
|
|
1833
1832
|
*/
|
|
1834
|
-
'import/no-unassigned-import'?: Linter.RuleEntry<
|
|
1833
|
+
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>;
|
|
1835
1834
|
/**
|
|
1836
1835
|
* Ensure imports point to a file/module that can be resolved.
|
|
1837
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1836
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unresolved.md
|
|
1838
1837
|
*/
|
|
1839
|
-
'import/no-unresolved'?: Linter.RuleEntry<
|
|
1838
|
+
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>;
|
|
1840
1839
|
/**
|
|
1841
1840
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
1842
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1841
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unused-modules.md
|
|
1843
1842
|
*/
|
|
1844
|
-
'import/no-unused-modules'?: Linter.RuleEntry<
|
|
1843
|
+
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>;
|
|
1845
1844
|
/**
|
|
1846
1845
|
* Forbid unnecessary path segments in import and require statements.
|
|
1847
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1846
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-useless-path-segments.md
|
|
1848
1847
|
*/
|
|
1849
|
-
'import/no-useless-path-segments'?: Linter.RuleEntry<
|
|
1848
|
+
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>;
|
|
1850
1849
|
/**
|
|
1851
1850
|
* Forbid webpack loader syntax in imports.
|
|
1852
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1851
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-webpack-loader-syntax.md
|
|
1853
1852
|
*/
|
|
1854
|
-
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
1853
|
+
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
1855
1854
|
/**
|
|
1856
1855
|
* Enforce a convention in module import order.
|
|
1857
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1856
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/order.md
|
|
1858
1857
|
*/
|
|
1859
|
-
'import/order'?: Linter.RuleEntry<
|
|
1858
|
+
'import-x/order'?: Linter.RuleEntry<ImportXOrder>;
|
|
1860
1859
|
/**
|
|
1861
1860
|
* Prefer a default export if module exports a single name or multiple names.
|
|
1862
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1861
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/prefer-default-export.md
|
|
1863
1862
|
*/
|
|
1864
|
-
'import/prefer-default-export'?: Linter.RuleEntry<
|
|
1863
|
+
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>;
|
|
1865
1864
|
/**
|
|
1866
1865
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
1867
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1866
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/unambiguous.md
|
|
1868
1867
|
*/
|
|
1869
|
-
'import/unambiguous'?: Linter.RuleEntry<[]>;
|
|
1868
|
+
'import-x/unambiguous'?: Linter.RuleEntry<[]>;
|
|
1870
1869
|
/**
|
|
1871
1870
|
* Enforce consistent indentation
|
|
1872
1871
|
* @see https://eslint.org/docs/latest/rules/indent
|
|
@@ -9013,6 +9012,8 @@ type TypescriptEslintPreferOptionalChain = [] | [
|
|
|
9013
9012
|
type TypescriptEslintPreferPromiseRejectErrors = [] | [
|
|
9014
9013
|
{
|
|
9015
9014
|
allowEmptyReject?: boolean;
|
|
9015
|
+
allowThrowingAny?: boolean;
|
|
9016
|
+
allowThrowingUnknown?: boolean;
|
|
9016
9017
|
}
|
|
9017
9018
|
];
|
|
9018
9019
|
type TypescriptEslintPreferReadonly = [] | [
|
|
@@ -9477,8 +9478,8 @@ type IdMatch = [] | [string] | [
|
|
|
9477
9478
|
}
|
|
9478
9479
|
];
|
|
9479
9480
|
type ImplicitArrowLinebreak = [] | [("beside" | "below")];
|
|
9480
|
-
type
|
|
9481
|
-
type
|
|
9481
|
+
type ImportXConsistentTypeSpecifierStyle = [] | [("prefer-inline" | "prefer-top-level")];
|
|
9482
|
+
type ImportXDynamicImportChunkname = [] | [
|
|
9482
9483
|
{
|
|
9483
9484
|
importFunctions?: string[];
|
|
9484
9485
|
allowEmpty?: boolean;
|
|
@@ -9486,7 +9487,7 @@ type ImportDynamicImportChunkname = [] | [
|
|
|
9486
9487
|
[k: string]: unknown | undefined;
|
|
9487
9488
|
}
|
|
9488
9489
|
];
|
|
9489
|
-
type
|
|
9490
|
+
type ImportXExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [("always" | "ignorePackages" | "never")] | [
|
|
9490
9491
|
("always" | "ignorePackages" | "never"),
|
|
9491
9492
|
{
|
|
9492
9493
|
pattern?: {
|
|
@@ -9515,32 +9516,32 @@ type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [
|
|
|
9515
9516
|
[k: string]: ("always" | "ignorePackages" | "never");
|
|
9516
9517
|
}
|
|
9517
9518
|
]);
|
|
9518
|
-
type
|
|
9519
|
-
type
|
|
9520
|
-
type
|
|
9519
|
+
type ImportXFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
9520
|
+
type ImportXImportsFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
9521
|
+
type ImportXMaxDependencies = [] | [
|
|
9521
9522
|
{
|
|
9522
9523
|
max?: number;
|
|
9523
9524
|
ignoreTypeImports?: boolean;
|
|
9524
9525
|
}
|
|
9525
9526
|
];
|
|
9526
|
-
type
|
|
9527
|
+
type ImportXNamed = [] | [
|
|
9527
9528
|
{
|
|
9528
9529
|
commonjs?: boolean;
|
|
9529
9530
|
}
|
|
9530
9531
|
];
|
|
9531
|
-
type
|
|
9532
|
+
type ImportXNamespace = [] | [
|
|
9532
9533
|
{
|
|
9533
9534
|
allowComputed?: boolean;
|
|
9534
9535
|
}
|
|
9535
9536
|
];
|
|
9536
|
-
type
|
|
9537
|
+
type ImportXNewlineAfterImport = [] | [
|
|
9537
9538
|
{
|
|
9538
9539
|
count?: number;
|
|
9539
9540
|
exactCount?: boolean;
|
|
9540
9541
|
considerComments?: boolean;
|
|
9541
9542
|
}
|
|
9542
9543
|
];
|
|
9543
|
-
type
|
|
9544
|
+
type ImportXNoAbsolutePath = [] | [
|
|
9544
9545
|
{
|
|
9545
9546
|
commonjs?: boolean;
|
|
9546
9547
|
amd?: boolean;
|
|
@@ -9548,7 +9549,7 @@ type ImportNoAbsolutePath = [] | [
|
|
|
9548
9549
|
ignore?: [string, ...(string)[]];
|
|
9549
9550
|
}
|
|
9550
9551
|
];
|
|
9551
|
-
type
|
|
9552
|
+
type ImportXNoAnonymousDefaultExport = [] | [
|
|
9552
9553
|
{
|
|
9553
9554
|
allowArray?: boolean;
|
|
9554
9555
|
allowArrowFunction?: boolean;
|
|
@@ -9560,14 +9561,14 @@ type ImportNoAnonymousDefaultExport = [] | [
|
|
|
9560
9561
|
allowNew?: boolean;
|
|
9561
9562
|
}
|
|
9562
9563
|
];
|
|
9563
|
-
type
|
|
9564
|
+
type ImportXNoCommonjs = ([] | ["allow-primitive-modules"] | [] | [
|
|
9564
9565
|
{
|
|
9565
9566
|
allowPrimitiveModules?: boolean;
|
|
9566
9567
|
allowRequire?: boolean;
|
|
9567
9568
|
allowConditionalRequire?: boolean;
|
|
9568
9569
|
}
|
|
9569
9570
|
]);
|
|
9570
|
-
type
|
|
9571
|
+
type ImportXNoCycle = [] | [
|
|
9571
9572
|
{
|
|
9572
9573
|
commonjs?: boolean;
|
|
9573
9574
|
amd?: boolean;
|
|
@@ -9578,18 +9579,18 @@ type ImportNoCycle = [] | [
|
|
|
9578
9579
|
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
9579
9580
|
}
|
|
9580
9581
|
];
|
|
9581
|
-
type
|
|
9582
|
+
type ImportXNoDuplicates = [] | [
|
|
9582
9583
|
{
|
|
9583
9584
|
considerQueryString?: boolean;
|
|
9584
9585
|
"prefer-inline"?: boolean;
|
|
9585
9586
|
}
|
|
9586
9587
|
];
|
|
9587
|
-
type
|
|
9588
|
+
type ImportXNoDynamicRequire = [] | [
|
|
9588
9589
|
{
|
|
9589
9590
|
esmodule?: boolean;
|
|
9590
9591
|
}
|
|
9591
9592
|
];
|
|
9592
|
-
type
|
|
9593
|
+
type ImportXNoExtraneousDependencies = [] | [
|
|
9593
9594
|
{
|
|
9594
9595
|
devDependencies?: (boolean | unknown[]);
|
|
9595
9596
|
optionalDependencies?: (boolean | unknown[]);
|
|
@@ -9601,30 +9602,30 @@ type ImportNoExtraneousDependencies = [] | [
|
|
|
9601
9602
|
whitelist?: unknown[];
|
|
9602
9603
|
}
|
|
9603
9604
|
];
|
|
9604
|
-
type
|
|
9605
|
+
type ImportXNoImportModuleExports = [] | [
|
|
9605
9606
|
{
|
|
9606
9607
|
exceptions?: unknown[];
|
|
9607
9608
|
}
|
|
9608
9609
|
];
|
|
9609
|
-
type
|
|
9610
|
+
type ImportXNoInternalModules = [] | [
|
|
9610
9611
|
({
|
|
9611
9612
|
allow?: string[];
|
|
9612
9613
|
} | {
|
|
9613
9614
|
forbid?: string[];
|
|
9614
9615
|
})
|
|
9615
9616
|
];
|
|
9616
|
-
type
|
|
9617
|
+
type ImportXNoNamespace = [] | [
|
|
9617
9618
|
{
|
|
9618
9619
|
ignore?: string[];
|
|
9619
9620
|
[k: string]: unknown | undefined;
|
|
9620
9621
|
}
|
|
9621
9622
|
];
|
|
9622
|
-
type
|
|
9623
|
+
type ImportXNoNodejsModules = [] | [
|
|
9623
9624
|
{
|
|
9624
9625
|
allow?: string[];
|
|
9625
9626
|
}
|
|
9626
9627
|
];
|
|
9627
|
-
type
|
|
9628
|
+
type ImportXNoRelativePackages = [] | [
|
|
9628
9629
|
{
|
|
9629
9630
|
commonjs?: boolean;
|
|
9630
9631
|
amd?: boolean;
|
|
@@ -9632,7 +9633,7 @@ type ImportNoRelativePackages = [] | [
|
|
|
9632
9633
|
ignore?: [string, ...(string)[]];
|
|
9633
9634
|
}
|
|
9634
9635
|
];
|
|
9635
|
-
type
|
|
9636
|
+
type ImportXNoRelativeParentImports = [] | [
|
|
9636
9637
|
{
|
|
9637
9638
|
commonjs?: boolean;
|
|
9638
9639
|
amd?: boolean;
|
|
@@ -9640,13 +9641,13 @@ type ImportNoRelativeParentImports = [] | [
|
|
|
9640
9641
|
ignore?: [string, ...(string)[]];
|
|
9641
9642
|
}
|
|
9642
9643
|
];
|
|
9643
|
-
type
|
|
9644
|
+
type ImportXNoRenameDefault = [] | [
|
|
9644
9645
|
{
|
|
9645
9646
|
commonjs?: boolean;
|
|
9646
9647
|
preventRenamingBindings?: boolean;
|
|
9647
9648
|
}
|
|
9648
9649
|
];
|
|
9649
|
-
type
|
|
9650
|
+
type ImportXNoRestrictedPaths = [] | [
|
|
9650
9651
|
{
|
|
9651
9652
|
zones?: [
|
|
9652
9653
|
{
|
|
@@ -9665,7 +9666,7 @@ type ImportNoRestrictedPaths = [] | [
|
|
|
9665
9666
|
basePath?: string;
|
|
9666
9667
|
}
|
|
9667
9668
|
];
|
|
9668
|
-
type
|
|
9669
|
+
type ImportXNoUnassignedImport = [] | [
|
|
9669
9670
|
{
|
|
9670
9671
|
devDependencies?: (boolean | unknown[]);
|
|
9671
9672
|
optionalDependencies?: (boolean | unknown[]);
|
|
@@ -9673,7 +9674,7 @@ type ImportNoUnassignedImport = [] | [
|
|
|
9673
9674
|
allow?: string[];
|
|
9674
9675
|
}
|
|
9675
9676
|
];
|
|
9676
|
-
type
|
|
9677
|
+
type ImportXNoUnresolved = [] | [
|
|
9677
9678
|
{
|
|
9678
9679
|
commonjs?: boolean;
|
|
9679
9680
|
amd?: boolean;
|
|
@@ -9683,7 +9684,7 @@ type ImportNoUnresolved = [] | [
|
|
|
9683
9684
|
caseSensitiveStrict?: boolean;
|
|
9684
9685
|
}
|
|
9685
9686
|
];
|
|
9686
|
-
type
|
|
9687
|
+
type ImportXNoUnusedModules = [] | [
|
|
9687
9688
|
({
|
|
9688
9689
|
unusedExports: true;
|
|
9689
9690
|
src?: [unknown, ...(unknown)[]];
|
|
@@ -9693,13 +9694,13 @@ type ImportNoUnusedModules = [] | [
|
|
|
9693
9694
|
[k: string]: unknown | undefined;
|
|
9694
9695
|
})
|
|
9695
9696
|
];
|
|
9696
|
-
type
|
|
9697
|
+
type ImportXNoUselessPathSegments = [] | [
|
|
9697
9698
|
{
|
|
9698
9699
|
commonjs?: boolean;
|
|
9699
9700
|
noUselessIndex?: boolean;
|
|
9700
9701
|
}
|
|
9701
9702
|
];
|
|
9702
|
-
type
|
|
9703
|
+
type ImportXOrder = [] | [
|
|
9703
9704
|
{
|
|
9704
9705
|
groups?: unknown[];
|
|
9705
9706
|
pathGroupsExcludedImportTypes?: unknown[];
|
|
@@ -9721,7 +9722,7 @@ type ImportOrder = [] | [
|
|
|
9721
9722
|
warnOnUnassignedImports?: boolean;
|
|
9722
9723
|
}
|
|
9723
9724
|
];
|
|
9724
|
-
type
|
|
9725
|
+
type ImportXPreferDefaultExport = [] | [
|
|
9725
9726
|
{
|
|
9726
9727
|
target?: ("single" | "any");
|
|
9727
9728
|
}
|
|
@@ -11959,14 +11960,16 @@ type PerfectionistSortArrayIncludes = [] | [
|
|
|
11959
11960
|
];
|
|
11960
11961
|
type PerfectionistSortClasses = [] | [
|
|
11961
11962
|
{
|
|
11963
|
+
ignoreCallbackDependenciesPatterns?: string[];
|
|
11964
|
+
partitionByComment?: (string[] | boolean | string);
|
|
11962
11965
|
customGroups?: ({
|
|
11963
11966
|
groupName?: string;
|
|
11964
11967
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
11965
11968
|
order?: ("desc" | "asc");
|
|
11966
11969
|
anyOf?: {
|
|
11967
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
11968
11970
|
elementValuePattern?: string;
|
|
11969
11971
|
decoratorNamePattern?: string;
|
|
11972
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
11970
11973
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
11971
11974
|
elementNamePattern?: string;
|
|
11972
11975
|
}[];
|
|
@@ -11974,14 +11977,12 @@ type PerfectionistSortClasses = [] | [
|
|
|
11974
11977
|
groupName?: string;
|
|
11975
11978
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
11976
11979
|
order?: ("desc" | "asc");
|
|
11977
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
11978
11980
|
elementValuePattern?: string;
|
|
11979
11981
|
decoratorNamePattern?: string;
|
|
11982
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
11980
11983
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
11981
11984
|
elementNamePattern?: string;
|
|
11982
11985
|
})[];
|
|
11983
|
-
ignoreCallbackDependenciesPatterns?: string[];
|
|
11984
|
-
partitionByComment?: (string[] | boolean | string);
|
|
11985
11986
|
partitionByNewLine?: boolean;
|
|
11986
11987
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11987
11988
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
@@ -12085,13 +12086,29 @@ type PerfectionistSortInterfaces = [] | [
|
|
|
12085
12086
|
{
|
|
12086
12087
|
ignorePattern?: string[];
|
|
12087
12088
|
partitionByComment?: (string[] | boolean | string);
|
|
12088
|
-
|
|
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");
|
|
12089
12109
|
partitionByNewLine?: boolean;
|
|
12090
12110
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12091
12111
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12092
|
-
customGroups?: {
|
|
12093
|
-
[k: string]: (string | string[]) | undefined;
|
|
12094
|
-
};
|
|
12095
12112
|
ignoreCase?: boolean;
|
|
12096
12113
|
locales?: (string | string[]);
|
|
12097
12114
|
groups?: (string | string[])[];
|
|
@@ -12139,14 +12156,14 @@ type PerfectionistSortMaps = [] | [
|
|
|
12139
12156
|
];
|
|
12140
12157
|
type PerfectionistSortModules = [] | [
|
|
12141
12158
|
{
|
|
12159
|
+
partitionByComment?: (string[] | boolean | string);
|
|
12142
12160
|
customGroups?: ({
|
|
12143
12161
|
groupName?: string;
|
|
12144
12162
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
12145
12163
|
order?: ("desc" | "asc");
|
|
12146
12164
|
anyOf?: {
|
|
12147
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
12148
|
-
elementValuePattern?: string;
|
|
12149
12165
|
decoratorNamePattern?: string;
|
|
12166
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
12150
12167
|
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
12151
12168
|
elementNamePattern?: string;
|
|
12152
12169
|
}[];
|
|
@@ -12154,13 +12171,11 @@ type PerfectionistSortModules = [] | [
|
|
|
12154
12171
|
groupName?: string;
|
|
12155
12172
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
12156
12173
|
order?: ("desc" | "asc");
|
|
12157
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
12158
|
-
elementValuePattern?: string;
|
|
12159
12174
|
decoratorNamePattern?: string;
|
|
12175
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
12160
12176
|
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
12161
12177
|
elementNamePattern?: string;
|
|
12162
12178
|
})[];
|
|
12163
|
-
partitionByComment?: (string[] | boolean | string);
|
|
12164
12179
|
partitionByNewLine?: boolean;
|
|
12165
12180
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12166
12181
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
@@ -12198,14 +12213,31 @@ type PerfectionistSortNamedImports = [] | [
|
|
|
12198
12213
|
];
|
|
12199
12214
|
type PerfectionistSortObjectTypes = [] | [
|
|
12200
12215
|
{
|
|
12216
|
+
ignorePattern?: string[];
|
|
12201
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
|
+
})[]);
|
|
12202
12237
|
groupKind?: ("mixed" | "required-first" | "optional-first");
|
|
12203
12238
|
partitionByNewLine?: boolean;
|
|
12204
12239
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12205
12240
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12206
|
-
customGroups?: {
|
|
12207
|
-
[k: string]: (string | string[]) | undefined;
|
|
12208
|
-
};
|
|
12209
12241
|
ignoreCase?: boolean;
|
|
12210
12242
|
locales?: (string | string[]);
|
|
12211
12243
|
groups?: (string | string[])[];
|
|
@@ -14709,7 +14741,7 @@ type Yoda = [] | [("always" | "never")] | [
|
|
|
14709
14741
|
onlyEquality?: boolean;
|
|
14710
14742
|
}
|
|
14711
14743
|
];
|
|
14712
|
-
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/
|
|
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';
|
|
14713
14745
|
|
|
14714
14746
|
/**
|
|
14715
14747
|
* ESLint config
|
|
@@ -14764,7 +14796,7 @@ interface ConfigCommentsOptions extends OptionsOverrides {
|
|
|
14764
14796
|
}
|
|
14765
14797
|
interface ConfigGitHubActionOptions extends RecommendedOptions, OptionsOverrides {
|
|
14766
14798
|
}
|
|
14767
|
-
interface
|
|
14799
|
+
interface ConfigImportXOptions extends OptionsOverrides {
|
|
14768
14800
|
}
|
|
14769
14801
|
interface ConfigJsdocOptions extends OptionsFeatures, OptionsOverrides {
|
|
14770
14802
|
}
|
|
@@ -14996,49 +15028,52 @@ interface ConfigVueOptions extends OptionsFeatures, OptionsFiles, OptionsOverrid
|
|
|
14996
15028
|
interface OptionsOverrides<Rules extends TypedConfigItem['rules'] = TypedConfigItem['rules']> {
|
|
14997
15029
|
overrides?: Rules;
|
|
14998
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
|
+
}
|
|
14999
15045
|
/**
|
|
15000
15046
|
* Config factory options
|
|
15001
15047
|
*/
|
|
15002
15048
|
interface ConfigOptions extends ConfigOptionsInternal, OptionsExtensions {
|
|
15003
|
-
node?: ConfigNodeOptions;
|
|
15004
|
-
jsdoc?: ConfigJsdocOptions;
|
|
15005
|
-
ignores?: ConfigIgnoresOptions;
|
|
15006
|
-
imports?: ConfigImportsOptions;
|
|
15007
15049
|
command?: ConfigCommandOptions;
|
|
15008
15050
|
comments?: ConfigCommentsOptions;
|
|
15051
|
+
ignores?: ConfigIgnoresOptions;
|
|
15052
|
+
importX?: ConfigImportXOptions;
|
|
15009
15053
|
javascript?: ConfigJavaScriptOptions;
|
|
15054
|
+
jsdoc?: ConfigJsdocOptions;
|
|
15055
|
+
node?: ConfigNodeOptions;
|
|
15010
15056
|
specials?: ConfigSpecialsOptions;
|
|
15011
|
-
|
|
15057
|
+
/**
|
|
15058
|
+
* bellow can be disabled
|
|
15059
|
+
*/
|
|
15060
|
+
antfu?: boolean | ConfigAntfuOptions;
|
|
15061
|
+
githubAction?: boolean | ConfigGitHubActionOptions;
|
|
15012
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;
|
|
15013
15069
|
stylistic?: boolean | ConfigStylisticOptions;
|
|
15070
|
+
test?: boolean | ConfigTestOptions;
|
|
15071
|
+
toml?: boolean | ConfigTomlOptions;
|
|
15014
15072
|
typescript?: boolean | ConfigTypeScriptOptions;
|
|
15015
15073
|
unicorn?: boolean | ConfigUnicornOptions;
|
|
15016
|
-
prettier?: boolean | ConfigPrettierOptions;
|
|
15017
|
-
perfectionist?: boolean | ConfigPerfectionistOptions;
|
|
15018
15074
|
unocss?: boolean | ConfigUnoCSSOptions;
|
|
15019
|
-
regexp?: boolean | ConfigRegexpOptions;
|
|
15020
|
-
jsonc?: boolean | ConfigJsoncOptions;
|
|
15021
|
-
yml?: boolean | ConfigYmlOptions;
|
|
15022
|
-
markdown?: boolean | ConfigMarkdownOptions;
|
|
15023
|
-
toml?: boolean | ConfigTomlOptions;
|
|
15024
15075
|
vue?: boolean | ConfigVueOptions;
|
|
15025
|
-
|
|
15026
|
-
antfu?: boolean | ConfigAntfuOptions;
|
|
15027
|
-
githubAction?: boolean | ConfigGitHubActionOptions;
|
|
15028
|
-
}
|
|
15029
|
-
interface ConfigOptionsInternal {
|
|
15030
|
-
/**
|
|
15031
|
-
* @internal
|
|
15032
|
-
*/
|
|
15033
|
-
format?: boolean | ConfigFormatOptions;
|
|
15034
|
-
/**
|
|
15035
|
-
* @internal
|
|
15036
|
-
*/
|
|
15037
|
-
ntnyq?: boolean | ConfigNtnyqOptions;
|
|
15038
|
-
/**
|
|
15039
|
-
* @internal
|
|
15040
|
-
*/
|
|
15041
|
-
unusedImports?: boolean | ConfigUnusedImportsOptions;
|
|
15076
|
+
yml?: boolean | ConfigYmlOptions;
|
|
15042
15077
|
}
|
|
15043
15078
|
|
|
15044
15079
|
/**
|
|
@@ -15125,12 +15160,24 @@ declare function resolveSubOptions<K extends keyof ConfigOptions>(options: Confi
|
|
|
15125
15160
|
|
|
15126
15161
|
declare function mergePrettierOptions(options?: PrettierOptions, overrides?: PrettierOptions): PrettierOptions;
|
|
15127
15162
|
|
|
15163
|
+
/**
|
|
15164
|
+
* @file ESLint parsers
|
|
15165
|
+
*/
|
|
15166
|
+
|
|
15128
15167
|
/**
|
|
15129
15168
|
* With meta
|
|
15130
15169
|
*/
|
|
15131
15170
|
declare const parserTypeScript: {
|
|
15132
|
-
meta?: {
|
|
15133
|
-
|
|
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
|
+
};
|
|
15134
15181
|
};
|
|
15135
15182
|
|
|
15136
15183
|
/**
|
|
@@ -15177,7 +15224,7 @@ declare const command: (options?: ConfigCommandOptions) => TypedConfigItem[];
|
|
|
15177
15224
|
*/
|
|
15178
15225
|
declare const ignores: (customIgnores?: ConfigIgnoresOptions) => TypedConfigItem[];
|
|
15179
15226
|
|
|
15180
|
-
declare const
|
|
15227
|
+
declare const importX: (options?: ConfigImportXOptions) => TypedConfigItem[];
|
|
15181
15228
|
|
|
15182
15229
|
declare const unicorn: (options?: ConfigUnicornOptions) => TypedConfigItem[];
|
|
15183
15230
|
|
|
@@ -15200,6 +15247,12 @@ declare const typescript: (options?: ConfigTypeScriptOptions) => TypedConfigItem
|
|
|
15200
15247
|
|
|
15201
15248
|
declare const githubAction: (options?: ConfigGitHubActionOptions) => TypedConfigItem[];
|
|
15202
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[];
|
|
15203
15256
|
/**
|
|
15204
15257
|
* Prefer `alphabetical` sort type
|
|
15205
15258
|
*/
|
|
@@ -15212,4 +15265,4 @@ declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConf
|
|
|
15212
15265
|
*/
|
|
15213
15266
|
declare const DEFAULT_PRETTIER_OPTIONS: PrettierOptions;
|
|
15214
15267
|
|
|
15215
|
-
export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type
|
|
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 };
|