@rotki/eslint-config 3.1.0 → 3.2.1
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.cjs +341 -314
- package/dist/index.d.cts +149 -56
- package/dist/index.d.ts +149 -56
- package/dist/index.js +341 -314
- package/package.json +16 -16
package/dist/index.d.ts
CHANGED
|
@@ -1298,6 +1298,11 @@ interface RuleOptions {
|
|
|
1298
1298
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.test.ts
|
|
1299
1299
|
*/
|
|
1300
1300
|
'antfu/no-import-node-modules-by-path'?: Linter.RuleEntry<[]>
|
|
1301
|
+
/**
|
|
1302
|
+
* Prevent using top-level await
|
|
1303
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.test.ts
|
|
1304
|
+
*/
|
|
1305
|
+
'antfu/no-top-level-await'?: Linter.RuleEntry<[]>
|
|
1301
1306
|
/**
|
|
1302
1307
|
* Do not use `exports =`
|
|
1303
1308
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.test.ts
|
|
@@ -1519,47 +1524,47 @@ interface RuleOptions {
|
|
|
1519
1524
|
'eqeqeq'?: Linter.RuleEntry<Eqeqeq>
|
|
1520
1525
|
/**
|
|
1521
1526
|
* require a `eslint-enable` comment for every `eslint-disable` comment
|
|
1522
|
-
* @see https://
|
|
1527
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
|
|
1523
1528
|
*/
|
|
1524
1529
|
'eslint-comments/disable-enable-pair'?: Linter.RuleEntry<EslintCommentsDisableEnablePair>
|
|
1525
1530
|
/**
|
|
1526
1531
|
* disallow a `eslint-enable` comment for multiple `eslint-disable` comments
|
|
1527
|
-
* @see https://
|
|
1532
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-aggregating-enable.html
|
|
1528
1533
|
*/
|
|
1529
1534
|
'eslint-comments/no-aggregating-enable'?: Linter.RuleEntry<[]>
|
|
1530
1535
|
/**
|
|
1531
1536
|
* disallow duplicate `eslint-disable` comments
|
|
1532
|
-
* @see https://
|
|
1537
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-duplicate-disable.html
|
|
1533
1538
|
*/
|
|
1534
1539
|
'eslint-comments/no-duplicate-disable'?: Linter.RuleEntry<[]>
|
|
1535
1540
|
/**
|
|
1536
1541
|
* disallow `eslint-disable` comments about specific rules
|
|
1537
|
-
* @see https://
|
|
1542
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html
|
|
1538
1543
|
*/
|
|
1539
1544
|
'eslint-comments/no-restricted-disable'?: Linter.RuleEntry<EslintCommentsNoRestrictedDisable>
|
|
1540
1545
|
/**
|
|
1541
1546
|
* disallow `eslint-disable` comments without rule names
|
|
1542
|
-
* @see https://
|
|
1547
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unlimited-disable.html
|
|
1543
1548
|
*/
|
|
1544
1549
|
'eslint-comments/no-unlimited-disable'?: Linter.RuleEntry<[]>
|
|
1545
1550
|
/**
|
|
1546
1551
|
* disallow unused `eslint-disable` comments
|
|
1547
|
-
* @see https://
|
|
1552
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
1548
1553
|
*/
|
|
1549
1554
|
'eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>
|
|
1550
1555
|
/**
|
|
1551
1556
|
* disallow unused `eslint-enable` comments
|
|
1552
|
-
* @see https://
|
|
1557
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-enable.html
|
|
1553
1558
|
*/
|
|
1554
1559
|
'eslint-comments/no-unused-enable'?: Linter.RuleEntry<[]>
|
|
1555
1560
|
/**
|
|
1556
1561
|
* disallow ESLint directive-comments
|
|
1557
|
-
* @see https://
|
|
1562
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-use.html
|
|
1558
1563
|
*/
|
|
1559
1564
|
'eslint-comments/no-use'?: Linter.RuleEntry<EslintCommentsNoUse>
|
|
1560
1565
|
/**
|
|
1561
1566
|
* require include descriptions in ESLint directive-comments
|
|
1562
|
-
* @see https://
|
|
1567
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/require-description.html
|
|
1563
1568
|
*/
|
|
1564
1569
|
'eslint-comments/require-description'?: Linter.RuleEntry<EslintCommentsRequireDescription>
|
|
1565
1570
|
/**
|
|
@@ -1670,233 +1675,233 @@ interface RuleOptions {
|
|
|
1670
1675
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
1671
1676
|
/**
|
|
1672
1677
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
1673
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1678
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/consistent-type-specifier-style.md
|
|
1674
1679
|
*/
|
|
1675
1680
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
1676
1681
|
/**
|
|
1677
1682
|
* Ensure a default export is present, given a default import.
|
|
1678
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1683
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/default.md
|
|
1679
1684
|
*/
|
|
1680
1685
|
'import/default'?: Linter.RuleEntry<[]>
|
|
1681
1686
|
/**
|
|
1682
1687
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
1683
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1688
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/dynamic-import-chunkname.md
|
|
1684
1689
|
*/
|
|
1685
1690
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
1686
1691
|
/**
|
|
1687
1692
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
1688
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1693
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/export.md
|
|
1689
1694
|
*/
|
|
1690
1695
|
'import/export'?: Linter.RuleEntry<[]>
|
|
1691
1696
|
/**
|
|
1692
1697
|
* Ensure all exports appear after other statements.
|
|
1693
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1698
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/exports-last.md
|
|
1694
1699
|
*/
|
|
1695
1700
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
1696
1701
|
/**
|
|
1697
1702
|
* Ensure consistent use of file extension within the import path.
|
|
1698
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1703
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/extensions.md
|
|
1699
1704
|
*/
|
|
1700
1705
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
1701
1706
|
/**
|
|
1702
1707
|
* Ensure all imports appear before other statements.
|
|
1703
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1708
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/first.md
|
|
1704
1709
|
*/
|
|
1705
1710
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
1706
1711
|
/**
|
|
1707
1712
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
1708
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1713
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/group-exports.md
|
|
1709
1714
|
*/
|
|
1710
1715
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
1711
1716
|
/**
|
|
1712
1717
|
* Replaced by `import-x/first`.
|
|
1713
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1718
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/imports-first.md
|
|
1714
1719
|
* @deprecated
|
|
1715
1720
|
*/
|
|
1716
1721
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
1717
1722
|
/**
|
|
1718
1723
|
* Enforce the maximum number of dependencies a module can have.
|
|
1719
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1724
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/max-dependencies.md
|
|
1720
1725
|
*/
|
|
1721
1726
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
1722
1727
|
/**
|
|
1723
1728
|
* Ensure named imports correspond to a named export in the remote file.
|
|
1724
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1729
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/named.md
|
|
1725
1730
|
*/
|
|
1726
1731
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
1727
1732
|
/**
|
|
1728
1733
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
1729
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1734
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/namespace.md
|
|
1730
1735
|
*/
|
|
1731
1736
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
1732
1737
|
/**
|
|
1733
1738
|
* Enforce a newline after import statements.
|
|
1734
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1739
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/newline-after-import.md
|
|
1735
1740
|
*/
|
|
1736
1741
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
1737
1742
|
/**
|
|
1738
1743
|
* Forbid import of modules using absolute paths.
|
|
1739
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1744
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-absolute-path.md
|
|
1740
1745
|
*/
|
|
1741
1746
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
1742
1747
|
/**
|
|
1743
1748
|
* Forbid AMD `require` and `define` calls.
|
|
1744
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1749
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-amd.md
|
|
1745
1750
|
*/
|
|
1746
1751
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
1747
1752
|
/**
|
|
1748
1753
|
* Forbid anonymous values as default exports.
|
|
1749
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1754
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-anonymous-default-export.md
|
|
1750
1755
|
*/
|
|
1751
1756
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
1752
1757
|
/**
|
|
1753
1758
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
1754
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1759
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-commonjs.md
|
|
1755
1760
|
*/
|
|
1756
1761
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
1757
1762
|
/**
|
|
1758
1763
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
1759
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1764
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-cycle.md
|
|
1760
1765
|
*/
|
|
1761
1766
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
1762
1767
|
/**
|
|
1763
1768
|
* Forbid default exports.
|
|
1764
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1769
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-default-export.md
|
|
1765
1770
|
*/
|
|
1766
1771
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
1767
1772
|
/**
|
|
1768
1773
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
1769
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1774
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-deprecated.md
|
|
1770
1775
|
*/
|
|
1771
1776
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
1772
1777
|
/**
|
|
1773
1778
|
* Forbid repeated import of the same module in multiple places.
|
|
1774
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1779
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-duplicates.md
|
|
1775
1780
|
*/
|
|
1776
1781
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
1777
1782
|
/**
|
|
1778
1783
|
* Forbid `require()` calls with expressions.
|
|
1779
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1784
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-dynamic-require.md
|
|
1780
1785
|
*/
|
|
1781
1786
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
1782
1787
|
/**
|
|
1783
1788
|
* Forbid empty named import blocks.
|
|
1784
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1789
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-empty-named-blocks.md
|
|
1785
1790
|
*/
|
|
1786
1791
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
1787
1792
|
/**
|
|
1788
1793
|
* Forbid the use of extraneous packages.
|
|
1789
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1794
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-extraneous-dependencies.md
|
|
1790
1795
|
*/
|
|
1791
1796
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
1792
1797
|
/**
|
|
1793
1798
|
* Forbid import statements with CommonJS module.exports.
|
|
1794
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1799
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-import-module-exports.md
|
|
1795
1800
|
*/
|
|
1796
1801
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
1797
1802
|
/**
|
|
1798
1803
|
* Forbid importing the submodules of other modules.
|
|
1799
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1804
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-internal-modules.md
|
|
1800
1805
|
*/
|
|
1801
1806
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
1802
1807
|
/**
|
|
1803
1808
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
1804
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1809
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-mutable-exports.md
|
|
1805
1810
|
*/
|
|
1806
1811
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
1807
1812
|
/**
|
|
1808
1813
|
* Forbid use of exported name as identifier of default export.
|
|
1809
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1814
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default.md
|
|
1810
1815
|
*/
|
|
1811
1816
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
1812
1817
|
/**
|
|
1813
1818
|
* Forbid use of exported name as property of default export.
|
|
1814
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1819
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default-member.md
|
|
1815
1820
|
*/
|
|
1816
1821
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
1817
1822
|
/**
|
|
1818
1823
|
* Forbid named default exports.
|
|
1819
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1824
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-default.md
|
|
1820
1825
|
*/
|
|
1821
1826
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
1822
1827
|
/**
|
|
1823
1828
|
* Forbid named exports.
|
|
1824
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1829
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-export.md
|
|
1825
1830
|
*/
|
|
1826
1831
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
1827
1832
|
/**
|
|
1828
1833
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
1829
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1834
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-namespace.md
|
|
1830
1835
|
*/
|
|
1831
1836
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
1832
1837
|
/**
|
|
1833
1838
|
* Forbid Node.js builtin modules.
|
|
1834
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1839
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-nodejs-modules.md
|
|
1835
1840
|
*/
|
|
1836
1841
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
1837
1842
|
/**
|
|
1838
1843
|
* Forbid importing packages through relative paths.
|
|
1839
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1844
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-packages.md
|
|
1840
1845
|
*/
|
|
1841
1846
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
1842
1847
|
/**
|
|
1843
1848
|
* Forbid importing modules from parent directories.
|
|
1844
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1849
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-parent-imports.md
|
|
1845
1850
|
*/
|
|
1846
1851
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
1847
1852
|
/**
|
|
1848
1853
|
* Forbid importing a default export by a different name.
|
|
1849
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1854
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-rename-default.md
|
|
1850
1855
|
*/
|
|
1851
1856
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
1852
1857
|
/**
|
|
1853
1858
|
* Enforce which files can be imported in a given folder.
|
|
1854
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1859
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-restricted-paths.md
|
|
1855
1860
|
*/
|
|
1856
1861
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
1857
1862
|
/**
|
|
1858
1863
|
* Forbid a module from importing itself.
|
|
1859
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1864
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-self-import.md
|
|
1860
1865
|
*/
|
|
1861
1866
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
1862
1867
|
/**
|
|
1863
1868
|
* Forbid unassigned imports.
|
|
1864
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1869
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unassigned-import.md
|
|
1865
1870
|
*/
|
|
1866
1871
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
1867
1872
|
/**
|
|
1868
1873
|
* Ensure imports point to a file/module that can be resolved.
|
|
1869
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1874
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unresolved.md
|
|
1870
1875
|
*/
|
|
1871
1876
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
1872
1877
|
/**
|
|
1873
1878
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
1874
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1879
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unused-modules.md
|
|
1875
1880
|
*/
|
|
1876
1881
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
1877
1882
|
/**
|
|
1878
1883
|
* Forbid unnecessary path segments in import and require statements.
|
|
1879
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1884
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-useless-path-segments.md
|
|
1880
1885
|
*/
|
|
1881
1886
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
1882
1887
|
/**
|
|
1883
1888
|
* Forbid webpack loader syntax in imports.
|
|
1884
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1889
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-webpack-loader-syntax.md
|
|
1885
1890
|
*/
|
|
1886
1891
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
1887
1892
|
/**
|
|
1888
1893
|
* Enforce a convention in module import order.
|
|
1889
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1894
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/order.md
|
|
1890
1895
|
*/
|
|
1891
1896
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
1892
1897
|
/**
|
|
1893
1898
|
* Prefer a default export if module exports a single name or multiple names.
|
|
1894
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1899
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/prefer-default-export.md
|
|
1895
1900
|
*/
|
|
1896
1901
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
1897
1902
|
/**
|
|
1898
1903
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
1899
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1904
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/unambiguous.md
|
|
1900
1905
|
*/
|
|
1901
1906
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
1902
1907
|
/**
|
|
@@ -8393,6 +8398,8 @@ type TypescriptEslintNoUnnecessaryCondition = []|[{
|
|
|
8393
8398
|
allowConstantLoopConditions?: boolean
|
|
8394
8399
|
|
|
8395
8400
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
8401
|
+
|
|
8402
|
+
checkTypePredicates?: boolean
|
|
8396
8403
|
}]
|
|
8397
8404
|
// ----- @typescript-eslint/no-unnecessary-type-assertion -----
|
|
8398
8405
|
type TypescriptEslintNoUnnecessaryTypeAssertion = []|[{
|
|
@@ -10804,9 +10811,15 @@ type PerfectionistSortArrayIncludes = []|[{
|
|
|
10804
10811
|
|
|
10805
10812
|
order?: ("asc" | "desc")
|
|
10806
10813
|
|
|
10814
|
+
matcher?: ("minimatch" | "regex")
|
|
10815
|
+
|
|
10807
10816
|
ignoreCase?: boolean
|
|
10808
10817
|
|
|
10809
10818
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
10819
|
+
|
|
10820
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10821
|
+
|
|
10822
|
+
partitionByNewLine?: boolean
|
|
10810
10823
|
}]
|
|
10811
10824
|
// ----- perfectionist/sort-astro-attributes -----
|
|
10812
10825
|
type PerfectionistSortAstroAttributes = []|[{
|
|
@@ -10815,6 +10828,8 @@ type PerfectionistSortAstroAttributes = []|[{
|
|
|
10815
10828
|
|
|
10816
10829
|
order?: ("asc" | "desc")
|
|
10817
10830
|
|
|
10831
|
+
matcher?: ("minimatch" | "regex")
|
|
10832
|
+
|
|
10818
10833
|
ignoreCase?: boolean
|
|
10819
10834
|
|
|
10820
10835
|
groups?: (string | string[])[]
|
|
@@ -10830,6 +10845,8 @@ type PerfectionistSortClasses = []|[{
|
|
|
10830
10845
|
|
|
10831
10846
|
order?: ("asc" | "desc")
|
|
10832
10847
|
|
|
10848
|
+
matcher?: ("minimatch" | "regex")
|
|
10849
|
+
|
|
10833
10850
|
ignoreCase?: boolean
|
|
10834
10851
|
|
|
10835
10852
|
partitionByComment?: (string[] | boolean | string)
|
|
@@ -10879,6 +10896,8 @@ type PerfectionistSortEnums = []|[{
|
|
|
10879
10896
|
|
|
10880
10897
|
order?: ("asc" | "desc")
|
|
10881
10898
|
|
|
10899
|
+
matcher?: ("minimatch" | "regex")
|
|
10900
|
+
|
|
10882
10901
|
ignoreCase?: boolean
|
|
10883
10902
|
|
|
10884
10903
|
sortByValue?: boolean
|
|
@@ -10886,6 +10905,8 @@ type PerfectionistSortEnums = []|[{
|
|
|
10886
10905
|
forceNumericSort?: boolean
|
|
10887
10906
|
|
|
10888
10907
|
partitionByComment?: (string[] | boolean | string)
|
|
10908
|
+
|
|
10909
|
+
partitionByNewLine?: boolean
|
|
10889
10910
|
}]
|
|
10890
10911
|
// ----- perfectionist/sort-exports -----
|
|
10891
10912
|
type PerfectionistSortExports = []|[{
|
|
@@ -10894,7 +10915,15 @@ type PerfectionistSortExports = []|[{
|
|
|
10894
10915
|
|
|
10895
10916
|
order?: ("asc" | "desc")
|
|
10896
10917
|
|
|
10918
|
+
matcher?: ("minimatch" | "regex")
|
|
10919
|
+
|
|
10897
10920
|
ignoreCase?: boolean
|
|
10921
|
+
|
|
10922
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10923
|
+
|
|
10924
|
+
partitionByNewLine?: boolean
|
|
10925
|
+
|
|
10926
|
+
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10898
10927
|
}]
|
|
10899
10928
|
// ----- perfectionist/sort-imports -----
|
|
10900
10929
|
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
@@ -10904,6 +10933,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
10904
10933
|
|
|
10905
10934
|
order?: ("asc" | "desc")
|
|
10906
10935
|
|
|
10936
|
+
matcher?: ("minimatch" | "regex")
|
|
10937
|
+
|
|
10907
10938
|
ignoreCase?: boolean
|
|
10908
10939
|
|
|
10909
10940
|
internalPattern?: string[]
|
|
@@ -10941,10 +10972,14 @@ type PerfectionistSortInterfaces = []|[{
|
|
|
10941
10972
|
|
|
10942
10973
|
order?: ("asc" | "desc")
|
|
10943
10974
|
|
|
10975
|
+
matcher?: ("minimatch" | "regex")
|
|
10976
|
+
|
|
10944
10977
|
ignoreCase?: boolean
|
|
10945
10978
|
|
|
10946
10979
|
ignorePattern?: string[]
|
|
10947
10980
|
|
|
10981
|
+
partitionByComment?: (boolean | string | string[])
|
|
10982
|
+
|
|
10948
10983
|
partitionByNewLine?: boolean
|
|
10949
10984
|
|
|
10950
10985
|
groupKind?: ("mixed" | "optional-first" | "required-first")
|
|
@@ -10962,9 +10997,15 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
10962
10997
|
|
|
10963
10998
|
order?: ("asc" | "desc")
|
|
10964
10999
|
|
|
11000
|
+
matcher?: ("minimatch" | "regex")
|
|
11001
|
+
|
|
10965
11002
|
ignoreCase?: boolean
|
|
10966
11003
|
|
|
10967
11004
|
groups?: (string | string[])[]
|
|
11005
|
+
|
|
11006
|
+
partitionByComment?: (string[] | boolean | string)
|
|
11007
|
+
|
|
11008
|
+
partitionByNewLine?: boolean
|
|
10968
11009
|
}]
|
|
10969
11010
|
// ----- perfectionist/sort-jsx-props -----
|
|
10970
11011
|
type PerfectionistSortJsxProps = []|[{
|
|
@@ -10973,6 +11014,8 @@ type PerfectionistSortJsxProps = []|[{
|
|
|
10973
11014
|
|
|
10974
11015
|
order?: ("asc" | "desc")
|
|
10975
11016
|
|
|
11017
|
+
matcher?: ("minimatch" | "regex")
|
|
11018
|
+
|
|
10976
11019
|
ignoreCase?: boolean
|
|
10977
11020
|
|
|
10978
11021
|
ignorePattern?: string[]
|
|
@@ -10990,7 +11033,13 @@ type PerfectionistSortMaps = []|[{
|
|
|
10990
11033
|
|
|
10991
11034
|
order?: ("asc" | "desc")
|
|
10992
11035
|
|
|
11036
|
+
matcher?: ("minimatch" | "regex")
|
|
11037
|
+
|
|
10993
11038
|
ignoreCase?: boolean
|
|
11039
|
+
|
|
11040
|
+
partitionByComment?: (string[] | boolean | string)
|
|
11041
|
+
|
|
11042
|
+
partitionByNewLine?: boolean
|
|
10994
11043
|
}]
|
|
10995
11044
|
// ----- perfectionist/sort-named-exports -----
|
|
10996
11045
|
type PerfectionistSortNamedExports = []|[{
|
|
@@ -10999,9 +11048,15 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
10999
11048
|
|
|
11000
11049
|
order?: ("asc" | "desc")
|
|
11001
11050
|
|
|
11051
|
+
matcher?: ("minimatch" | "regex")
|
|
11052
|
+
|
|
11002
11053
|
ignoreCase?: boolean
|
|
11003
11054
|
|
|
11004
11055
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
11056
|
+
|
|
11057
|
+
partitionByComment?: (string[] | boolean | string)
|
|
11058
|
+
|
|
11059
|
+
partitionByNewLine?: boolean
|
|
11005
11060
|
}]
|
|
11006
11061
|
// ----- perfectionist/sort-named-imports -----
|
|
11007
11062
|
type PerfectionistSortNamedImports = []|[{
|
|
@@ -11010,11 +11065,17 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
11010
11065
|
|
|
11011
11066
|
order?: ("asc" | "desc")
|
|
11012
11067
|
|
|
11068
|
+
matcher?: ("minimatch" | "regex")
|
|
11069
|
+
|
|
11013
11070
|
ignoreCase?: boolean
|
|
11014
11071
|
|
|
11015
11072
|
ignoreAlias?: boolean
|
|
11016
11073
|
|
|
11017
11074
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
11075
|
+
|
|
11076
|
+
partitionByComment?: (string[] | boolean | string)
|
|
11077
|
+
|
|
11078
|
+
partitionByNewLine?: boolean
|
|
11018
11079
|
}]
|
|
11019
11080
|
// ----- perfectionist/sort-object-types -----
|
|
11020
11081
|
type PerfectionistSortObjectTypes = []|[{
|
|
@@ -11023,8 +11084,12 @@ type PerfectionistSortObjectTypes = []|[{
|
|
|
11023
11084
|
|
|
11024
11085
|
order?: ("asc" | "desc")
|
|
11025
11086
|
|
|
11087
|
+
matcher?: ("minimatch" | "regex")
|
|
11088
|
+
|
|
11026
11089
|
ignoreCase?: boolean
|
|
11027
11090
|
|
|
11091
|
+
partitionByComment?: (string[] | boolean | string)
|
|
11092
|
+
|
|
11028
11093
|
partitionByNewLine?: boolean
|
|
11029
11094
|
|
|
11030
11095
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
@@ -11042,6 +11107,8 @@ type PerfectionistSortObjects = []|[{
|
|
|
11042
11107
|
|
|
11043
11108
|
order?: ("asc" | "desc")
|
|
11044
11109
|
|
|
11110
|
+
matcher?: ("minimatch" | "regex")
|
|
11111
|
+
|
|
11045
11112
|
ignoreCase?: boolean
|
|
11046
11113
|
|
|
11047
11114
|
partitionByComment?: (string[] | boolean | string)
|
|
@@ -11067,9 +11134,15 @@ type PerfectionistSortSets = []|[{
|
|
|
11067
11134
|
|
|
11068
11135
|
order?: ("asc" | "desc")
|
|
11069
11136
|
|
|
11137
|
+
matcher?: ("minimatch" | "regex")
|
|
11138
|
+
|
|
11070
11139
|
ignoreCase?: boolean
|
|
11071
11140
|
|
|
11072
11141
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
11142
|
+
|
|
11143
|
+
partitionByComment?: (string[] | boolean | string)
|
|
11144
|
+
|
|
11145
|
+
partitionByNewLine?: boolean
|
|
11073
11146
|
}]
|
|
11074
11147
|
// ----- perfectionist/sort-svelte-attributes -----
|
|
11075
11148
|
type PerfectionistSortSvelteAttributes = []|[{
|
|
@@ -11078,6 +11151,8 @@ type PerfectionistSortSvelteAttributes = []|[{
|
|
|
11078
11151
|
|
|
11079
11152
|
order?: ("asc" | "desc")
|
|
11080
11153
|
|
|
11154
|
+
matcher?: ("minimatch" | "regex")
|
|
11155
|
+
|
|
11081
11156
|
ignoreCase?: boolean
|
|
11082
11157
|
|
|
11083
11158
|
groups?: (string | string[])[]
|
|
@@ -11102,9 +11177,15 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
11102
11177
|
|
|
11103
11178
|
order?: ("asc" | "desc")
|
|
11104
11179
|
|
|
11180
|
+
matcher?: ("minimatch" | "regex")
|
|
11181
|
+
|
|
11105
11182
|
ignoreCase?: boolean
|
|
11106
11183
|
|
|
11107
11184
|
groups?: (string | string[])[]
|
|
11185
|
+
|
|
11186
|
+
partitionByComment?: (string[] | boolean | string)
|
|
11187
|
+
|
|
11188
|
+
partitionByNewLine?: boolean
|
|
11108
11189
|
}]
|
|
11109
11190
|
// ----- perfectionist/sort-variable-declarations -----
|
|
11110
11191
|
type PerfectionistSortVariableDeclarations = []|[{
|
|
@@ -11113,7 +11194,13 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
11113
11194
|
|
|
11114
11195
|
order?: ("asc" | "desc")
|
|
11115
11196
|
|
|
11197
|
+
matcher?: ("minimatch" | "regex")
|
|
11198
|
+
|
|
11116
11199
|
ignoreCase?: boolean
|
|
11200
|
+
|
|
11201
|
+
partitionByComment?: (string[] | boolean | string)
|
|
11202
|
+
|
|
11203
|
+
partitionByNewLine?: boolean
|
|
11117
11204
|
}]
|
|
11118
11205
|
// ----- perfectionist/sort-vue-attributes -----
|
|
11119
11206
|
type PerfectionistSortVueAttributes = []|[{
|
|
@@ -11122,6 +11209,8 @@ type PerfectionistSortVueAttributes = []|[{
|
|
|
11122
11209
|
|
|
11123
11210
|
order?: ("asc" | "desc")
|
|
11124
11211
|
|
|
11212
|
+
matcher?: ("minimatch" | "regex")
|
|
11213
|
+
|
|
11125
11214
|
ignoreCase?: boolean
|
|
11126
11215
|
|
|
11127
11216
|
groups?: (string | string[])[]
|
|
@@ -13512,6 +13601,10 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
13512
13601
|
* @default true
|
|
13513
13602
|
*/
|
|
13514
13603
|
jsx?: boolean;
|
|
13604
|
+
/**
|
|
13605
|
+
* Core rules. Can't be disabled;
|
|
13606
|
+
*/
|
|
13607
|
+
imports?: OptionsOverrides;
|
|
13515
13608
|
/**
|
|
13516
13609
|
* Options for eslint-plugin-unicorn.
|
|
13517
13610
|
*
|
|
@@ -13646,7 +13739,7 @@ declare function formatters(options?: OptionsFormatters | true, stylistic?: Styl
|
|
|
13646
13739
|
|
|
13647
13740
|
declare function ignores(userIgnores?: string[]): Promise<TypedFlatConfigItem[]>;
|
|
13648
13741
|
|
|
13649
|
-
declare function imports(options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
|
|
13742
|
+
declare function imports(options?: OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
13650
13743
|
|
|
13651
13744
|
declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
13652
13745
|
|