@ntnyq/eslint-config 2.8.0 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/dist/index.cjs +385 -314
- package/dist/index.d.cts +328 -9
- package/dist/index.d.ts +328 -9
- package/dist/index.js +397 -332
- package/package.json +15 -13
package/dist/index.d.cts
CHANGED
|
@@ -9,11 +9,13 @@ export { default as pluginToml } from 'eslint-plugin-toml';
|
|
|
9
9
|
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
10
10
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
11
11
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
12
|
+
export { default as pluginVitest } from '@vitest/eslint-plugin';
|
|
12
13
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
13
14
|
export { default as pluginImport } from 'eslint-plugin-import-x';
|
|
14
15
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
15
16
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
16
|
-
export { default as
|
|
17
|
+
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist';
|
|
18
|
+
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
17
19
|
export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments';
|
|
18
20
|
import * as tomlEslintParser from 'toml-eslint-parser';
|
|
19
21
|
export { tomlEslintParser as parserToml };
|
|
@@ -495,7 +497,7 @@ interface RuleOptions {
|
|
|
495
497
|
'@typescript-eslint/no-unused-expressions'?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>;
|
|
496
498
|
/**
|
|
497
499
|
* Disallow unused variables
|
|
498
|
-
* @see https://
|
|
500
|
+
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
499
501
|
*/
|
|
500
502
|
'@typescript-eslint/no-unused-vars'?: Linter.RuleEntry<TypescriptEslintNoUnusedVars>;
|
|
501
503
|
/**
|
|
@@ -984,7 +986,7 @@ interface RuleOptions {
|
|
|
984
986
|
'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>;
|
|
985
987
|
/**
|
|
986
988
|
* Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
|
|
987
|
-
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/
|
|
989
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-template-names.md#repos-sticky-header
|
|
988
990
|
*/
|
|
989
991
|
'jsdoc/check-template-names'?: Linter.RuleEntry<[]>;
|
|
990
992
|
/**
|
|
@@ -1022,6 +1024,11 @@ interface RuleOptions {
|
|
|
1022
1024
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/informative-docs.md#repos-sticky-header
|
|
1023
1025
|
*/
|
|
1024
1026
|
'jsdoc/informative-docs'?: Linter.RuleEntry<JsdocInformativeDocs>;
|
|
1027
|
+
/**
|
|
1028
|
+
* Enforces minimum number of newlines before JSDoc comment blocks
|
|
1029
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/lines-before-block.md#repos-sticky-header
|
|
1030
|
+
*/
|
|
1031
|
+
'jsdoc/lines-before-block'?: Linter.RuleEntry<JsdocLinesBeforeBlock>;
|
|
1025
1032
|
/**
|
|
1026
1033
|
* Enforces a regular expression pattern on descriptions.
|
|
1027
1034
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-description.md#repos-sticky-header
|
|
@@ -1637,6 +1644,101 @@ interface RuleOptions {
|
|
|
1637
1644
|
* @deprecated
|
|
1638
1645
|
*/
|
|
1639
1646
|
'node/shebang'?: Linter.RuleEntry<NodeShebang>;
|
|
1647
|
+
/**
|
|
1648
|
+
* Enforce sorted arrays before include method.
|
|
1649
|
+
* @see https://perfectionist.dev/rules/sort-array-includes
|
|
1650
|
+
*/
|
|
1651
|
+
'perfectionist/sort-array-includes'?: Linter.RuleEntry<PerfectionistSortArrayIncludes>;
|
|
1652
|
+
/**
|
|
1653
|
+
* Enforce sorted Astro attributes.
|
|
1654
|
+
* @see https://perfectionist.dev/rules/sort-astro-attributes
|
|
1655
|
+
*/
|
|
1656
|
+
'perfectionist/sort-astro-attributes'?: Linter.RuleEntry<PerfectionistSortAstroAttributes>;
|
|
1657
|
+
/**
|
|
1658
|
+
* Enforce sorted classes.
|
|
1659
|
+
* @see https://perfectionist.dev/rules/sort-classes
|
|
1660
|
+
*/
|
|
1661
|
+
'perfectionist/sort-classes'?: Linter.RuleEntry<PerfectionistSortClasses>;
|
|
1662
|
+
/**
|
|
1663
|
+
* Enforce sorted TypeScript enums.
|
|
1664
|
+
* @see https://perfectionist.dev/rules/sort-enums
|
|
1665
|
+
*/
|
|
1666
|
+
'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>;
|
|
1667
|
+
/**
|
|
1668
|
+
* Enforce sorted exports.
|
|
1669
|
+
* @see https://perfectionist.dev/rules/sort-exports
|
|
1670
|
+
*/
|
|
1671
|
+
'perfectionist/sort-exports'?: Linter.RuleEntry<PerfectionistSortExports>;
|
|
1672
|
+
/**
|
|
1673
|
+
* Enforce sorted imports.
|
|
1674
|
+
* @see https://perfectionist.dev/rules/sort-imports
|
|
1675
|
+
*/
|
|
1676
|
+
'perfectionist/sort-imports'?: Linter.RuleEntry<PerfectionistSortImports>;
|
|
1677
|
+
/**
|
|
1678
|
+
* Enforce sorted interface properties.
|
|
1679
|
+
* @see https://perfectionist.dev/rules/sort-interfaces
|
|
1680
|
+
*/
|
|
1681
|
+
'perfectionist/sort-interfaces'?: Linter.RuleEntry<PerfectionistSortInterfaces>;
|
|
1682
|
+
/**
|
|
1683
|
+
* Enforce sorted intersection types.
|
|
1684
|
+
* @see https://perfectionist.dev/rules/sort-intersection-types
|
|
1685
|
+
*/
|
|
1686
|
+
'perfectionist/sort-intersection-types'?: Linter.RuleEntry<PerfectionistSortIntersectionTypes>;
|
|
1687
|
+
/**
|
|
1688
|
+
* Enforce sorted JSX props.
|
|
1689
|
+
* @see https://perfectionist.dev/rules/sort-jsx-props
|
|
1690
|
+
*/
|
|
1691
|
+
'perfectionist/sort-jsx-props'?: Linter.RuleEntry<PerfectionistSortJsxProps>;
|
|
1692
|
+
/**
|
|
1693
|
+
* Enforce sorted Map elements.
|
|
1694
|
+
* @see https://perfectionist.dev/rules/sort-maps
|
|
1695
|
+
*/
|
|
1696
|
+
'perfectionist/sort-maps'?: Linter.RuleEntry<PerfectionistSortMaps>;
|
|
1697
|
+
/**
|
|
1698
|
+
* Enforce sorted named exports.
|
|
1699
|
+
* @see https://perfectionist.dev/rules/sort-named-exports
|
|
1700
|
+
*/
|
|
1701
|
+
'perfectionist/sort-named-exports'?: Linter.RuleEntry<PerfectionistSortNamedExports>;
|
|
1702
|
+
/**
|
|
1703
|
+
* Enforce sorted named imports.
|
|
1704
|
+
* @see https://perfectionist.dev/rules/sort-named-imports
|
|
1705
|
+
*/
|
|
1706
|
+
'perfectionist/sort-named-imports'?: Linter.RuleEntry<PerfectionistSortNamedImports>;
|
|
1707
|
+
/**
|
|
1708
|
+
* Enforce sorted object types.
|
|
1709
|
+
* @see https://perfectionist.dev/rules/sort-object-types
|
|
1710
|
+
*/
|
|
1711
|
+
'perfectionist/sort-object-types'?: Linter.RuleEntry<PerfectionistSortObjectTypes>;
|
|
1712
|
+
/**
|
|
1713
|
+
* Enforce sorted objects.
|
|
1714
|
+
* @see https://perfectionist.dev/rules/sort-objects
|
|
1715
|
+
*/
|
|
1716
|
+
'perfectionist/sort-objects'?: Linter.RuleEntry<PerfectionistSortObjects>;
|
|
1717
|
+
/**
|
|
1718
|
+
* Enforce sorted Svelte attributes.
|
|
1719
|
+
* @see https://perfectionist.dev/rules/sort-svelte-attributes
|
|
1720
|
+
*/
|
|
1721
|
+
'perfectionist/sort-svelte-attributes'?: Linter.RuleEntry<PerfectionistSortSvelteAttributes>;
|
|
1722
|
+
/**
|
|
1723
|
+
* Enforce sorted switch cases.
|
|
1724
|
+
* @see https://perfectionist.dev/rules/sort-switch-case
|
|
1725
|
+
*/
|
|
1726
|
+
'perfectionist/sort-switch-case'?: Linter.RuleEntry<PerfectionistSortSwitchCase>;
|
|
1727
|
+
/**
|
|
1728
|
+
* Enforce sorted union types.
|
|
1729
|
+
* @see https://perfectionist.dev/rules/sort-union-types
|
|
1730
|
+
*/
|
|
1731
|
+
'perfectionist/sort-union-types'?: Linter.RuleEntry<PerfectionistSortUnionTypes>;
|
|
1732
|
+
/**
|
|
1733
|
+
* Enforce sorted variable declarations.
|
|
1734
|
+
* @see https://perfectionist.dev/rules/sort-variable-declarations
|
|
1735
|
+
*/
|
|
1736
|
+
'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Enforce sorted Vue attributes.
|
|
1739
|
+
* @see https://perfectionist.dev/rules/sort-vue-attributes
|
|
1740
|
+
*/
|
|
1741
|
+
'perfectionist/sort-vue-attributes'?: Linter.RuleEntry<PerfectionistSortVueAttributes>;
|
|
1640
1742
|
/**
|
|
1641
1743
|
* @see https://github.com/prettier/eslint-plugin-prettier#options
|
|
1642
1744
|
*/
|
|
@@ -5541,6 +5643,13 @@ type JsdocInformativeDocs = [] | [
|
|
|
5541
5643
|
uselessWords?: string[];
|
|
5542
5644
|
}
|
|
5543
5645
|
];
|
|
5646
|
+
type JsdocLinesBeforeBlock = [] | [
|
|
5647
|
+
{
|
|
5648
|
+
excludedTags?: string[];
|
|
5649
|
+
ignoreSameLine?: boolean;
|
|
5650
|
+
lines?: number;
|
|
5651
|
+
}
|
|
5652
|
+
];
|
|
5544
5653
|
type JsdocMatchDescription = [] | [
|
|
5545
5654
|
{
|
|
5546
5655
|
contexts?: (string | {
|
|
@@ -6454,6 +6563,209 @@ type NodeShebang = [] | [
|
|
|
6454
6563
|
};
|
|
6455
6564
|
}
|
|
6456
6565
|
];
|
|
6566
|
+
type PerfectionistSortArrayIncludes = [] | [
|
|
6567
|
+
{
|
|
6568
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6569
|
+
order?: ("asc" | "desc");
|
|
6570
|
+
ignoreCase?: boolean;
|
|
6571
|
+
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
6572
|
+
}
|
|
6573
|
+
];
|
|
6574
|
+
type PerfectionistSortAstroAttributes = [] | [
|
|
6575
|
+
{
|
|
6576
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6577
|
+
order?: ("asc" | "desc");
|
|
6578
|
+
ignoreCase?: boolean;
|
|
6579
|
+
groups?: (string | string[])[];
|
|
6580
|
+
customGroups?: {
|
|
6581
|
+
[k: string]: (string | string[]) | undefined;
|
|
6582
|
+
};
|
|
6583
|
+
}
|
|
6584
|
+
];
|
|
6585
|
+
type PerfectionistSortClasses = [] | [
|
|
6586
|
+
{
|
|
6587
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6588
|
+
order?: ("asc" | "desc");
|
|
6589
|
+
ignoreCase?: boolean;
|
|
6590
|
+
partitionByComment?: (string[] | boolean | string);
|
|
6591
|
+
groups?: (string | string[])[];
|
|
6592
|
+
customGroups?: {
|
|
6593
|
+
[k: string]: (string | string[]) | undefined;
|
|
6594
|
+
};
|
|
6595
|
+
}
|
|
6596
|
+
];
|
|
6597
|
+
type PerfectionistSortEnums = [] | [
|
|
6598
|
+
{
|
|
6599
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6600
|
+
order?: ("asc" | "desc");
|
|
6601
|
+
ignoreCase?: boolean;
|
|
6602
|
+
partitionByComment?: (string[] | boolean | string);
|
|
6603
|
+
}
|
|
6604
|
+
];
|
|
6605
|
+
type PerfectionistSortExports = [] | [
|
|
6606
|
+
{
|
|
6607
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6608
|
+
order?: ("asc" | "desc");
|
|
6609
|
+
ignoreCase?: boolean;
|
|
6610
|
+
}
|
|
6611
|
+
];
|
|
6612
|
+
type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports];
|
|
6613
|
+
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
6614
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6615
|
+
order?: ("asc" | "desc");
|
|
6616
|
+
ignoreCase?: boolean;
|
|
6617
|
+
internalPattern?: string[];
|
|
6618
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
6619
|
+
maxLineLength?: number;
|
|
6620
|
+
groups?: (string | string[])[];
|
|
6621
|
+
customGroups?: {
|
|
6622
|
+
type?: {
|
|
6623
|
+
[k: string]: unknown | undefined;
|
|
6624
|
+
};
|
|
6625
|
+
value?: {
|
|
6626
|
+
[k: string]: unknown | undefined;
|
|
6627
|
+
};
|
|
6628
|
+
};
|
|
6629
|
+
environment?: ("node" | "bun");
|
|
6630
|
+
});
|
|
6631
|
+
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
6632
|
+
[k: string]: unknown | undefined;
|
|
6633
|
+
} | _PerfectionistSortImports_IsLineLength);
|
|
6634
|
+
interface _PerfectionistSortImports_IsLineLength {
|
|
6635
|
+
type: "line-length";
|
|
6636
|
+
[k: string]: unknown | undefined;
|
|
6637
|
+
}
|
|
6638
|
+
type PerfectionistSortInterfaces = [] | [
|
|
6639
|
+
{
|
|
6640
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6641
|
+
order?: ("asc" | "desc");
|
|
6642
|
+
ignoreCase?: boolean;
|
|
6643
|
+
ignorePattern?: string[];
|
|
6644
|
+
partitionByNewLine?: boolean;
|
|
6645
|
+
groupKind?: ("mixed" | "optional-first" | "required-first");
|
|
6646
|
+
groups?: (string | string[])[];
|
|
6647
|
+
customGroups?: {
|
|
6648
|
+
[k: string]: (string | string[]) | undefined;
|
|
6649
|
+
};
|
|
6650
|
+
}
|
|
6651
|
+
];
|
|
6652
|
+
type PerfectionistSortIntersectionTypes = [] | [
|
|
6653
|
+
{
|
|
6654
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6655
|
+
order?: ("asc" | "desc");
|
|
6656
|
+
ignoreCase?: boolean;
|
|
6657
|
+
groups?: (string | string[])[];
|
|
6658
|
+
}
|
|
6659
|
+
];
|
|
6660
|
+
type PerfectionistSortJsxProps = [] | [
|
|
6661
|
+
{
|
|
6662
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6663
|
+
order?: ("asc" | "desc");
|
|
6664
|
+
ignoreCase?: boolean;
|
|
6665
|
+
ignorePattern?: string[];
|
|
6666
|
+
groups?: (string | string[])[];
|
|
6667
|
+
customGroups?: {
|
|
6668
|
+
[k: string]: (string | string[]) | undefined;
|
|
6669
|
+
};
|
|
6670
|
+
}
|
|
6671
|
+
];
|
|
6672
|
+
type PerfectionistSortMaps = [] | [
|
|
6673
|
+
{
|
|
6674
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6675
|
+
order?: ("asc" | "desc");
|
|
6676
|
+
ignoreCase?: boolean;
|
|
6677
|
+
}
|
|
6678
|
+
];
|
|
6679
|
+
type PerfectionistSortNamedExports = [] | [
|
|
6680
|
+
{
|
|
6681
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6682
|
+
order?: ("asc" | "desc");
|
|
6683
|
+
ignoreCase?: boolean;
|
|
6684
|
+
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
6685
|
+
}
|
|
6686
|
+
];
|
|
6687
|
+
type PerfectionistSortNamedImports = [] | [
|
|
6688
|
+
{
|
|
6689
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6690
|
+
order?: ("asc" | "desc");
|
|
6691
|
+
ignoreCase?: boolean;
|
|
6692
|
+
ignoreAlias?: boolean;
|
|
6693
|
+
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
6694
|
+
}
|
|
6695
|
+
];
|
|
6696
|
+
type PerfectionistSortObjectTypes = [] | [
|
|
6697
|
+
{
|
|
6698
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6699
|
+
order?: ("asc" | "desc");
|
|
6700
|
+
ignoreCase?: boolean;
|
|
6701
|
+
partitionByNewLine?: boolean;
|
|
6702
|
+
groupKind?: ("mixed" | "required-first" | "optional-first");
|
|
6703
|
+
groups?: (string | string[])[];
|
|
6704
|
+
customGroups?: {
|
|
6705
|
+
[k: string]: (string | string[]) | undefined;
|
|
6706
|
+
};
|
|
6707
|
+
}
|
|
6708
|
+
];
|
|
6709
|
+
type PerfectionistSortObjects = [] | [
|
|
6710
|
+
{
|
|
6711
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6712
|
+
order?: ("asc" | "desc");
|
|
6713
|
+
ignoreCase?: boolean;
|
|
6714
|
+
partitionByComment?: (string[] | boolean | string);
|
|
6715
|
+
partitionByNewLine?: boolean;
|
|
6716
|
+
styledComponents?: boolean;
|
|
6717
|
+
destructureOnly?: boolean;
|
|
6718
|
+
ignorePattern?: string[];
|
|
6719
|
+
groups?: (string | string[])[];
|
|
6720
|
+
customGroups?: {
|
|
6721
|
+
[k: string]: (string | string[]) | undefined;
|
|
6722
|
+
};
|
|
6723
|
+
}
|
|
6724
|
+
];
|
|
6725
|
+
type PerfectionistSortSvelteAttributes = [] | [
|
|
6726
|
+
{
|
|
6727
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6728
|
+
order?: ("asc" | "desc");
|
|
6729
|
+
ignoreCase?: boolean;
|
|
6730
|
+
groups?: (string | string[])[];
|
|
6731
|
+
customGroups?: {
|
|
6732
|
+
[k: string]: (string | string[]) | undefined;
|
|
6733
|
+
};
|
|
6734
|
+
}
|
|
6735
|
+
];
|
|
6736
|
+
type PerfectionistSortSwitchCase = [] | [
|
|
6737
|
+
{
|
|
6738
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6739
|
+
order?: ("asc" | "desc");
|
|
6740
|
+
ignoreCase?: boolean;
|
|
6741
|
+
}
|
|
6742
|
+
];
|
|
6743
|
+
type PerfectionistSortUnionTypes = [] | [
|
|
6744
|
+
{
|
|
6745
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6746
|
+
order?: ("asc" | "desc");
|
|
6747
|
+
ignoreCase?: boolean;
|
|
6748
|
+
groups?: (string | string[])[];
|
|
6749
|
+
}
|
|
6750
|
+
];
|
|
6751
|
+
type PerfectionistSortVariableDeclarations = [] | [
|
|
6752
|
+
{
|
|
6753
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6754
|
+
order?: ("asc" | "desc");
|
|
6755
|
+
ignoreCase?: boolean;
|
|
6756
|
+
}
|
|
6757
|
+
];
|
|
6758
|
+
type PerfectionistSortVueAttributes = [] | [
|
|
6759
|
+
{
|
|
6760
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6761
|
+
order?: ("asc" | "desc");
|
|
6762
|
+
ignoreCase?: boolean;
|
|
6763
|
+
groups?: (string | string[])[];
|
|
6764
|
+
customGroups?: {
|
|
6765
|
+
[k: string]: (string | string[]) | undefined;
|
|
6766
|
+
};
|
|
6767
|
+
}
|
|
6768
|
+
];
|
|
6457
6769
|
type PrettierPrettier = [] | [
|
|
6458
6770
|
{
|
|
6459
6771
|
[k: string]: unknown | undefined;
|
|
@@ -8458,7 +8770,7 @@ type YmlSpacedComment = [] | [("always" | "never")] | [
|
|
|
8458
8770
|
markers?: string[];
|
|
8459
8771
|
}
|
|
8460
8772
|
];
|
|
8461
|
-
type ConfigName = 'command' | 'ntnyq/eslint-comments' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/js/script' | 'ntnyq/js/test' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'markdown/recommended/plugin' | 'markdown/recommended/processor' | 'markdown/recommended/code-blocks' | 'ntnyq/markdown/extensions' | 'ntnyq/node' | 'ntnyq/prettier' | 'ntnyq/prettier/ignore' | 'ntnyq/regexp' | 'ntnyq/sort/package-json' | 'ntnyq/sort/tsconfig' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/ts/dts' | 'ntnyq/ts/test' | 'ntnyq/ts/cjs' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/vue/ts' | 'ntnyq/vue/core' | 'ntnyq/yaml' | 'ntnyq/toml';
|
|
8773
|
+
type ConfigName = 'command' | 'ntnyq/eslint-comments' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/js/script' | 'ntnyq/js/test' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'markdown/recommended/plugin' | 'markdown/recommended/processor' | 'markdown/recommended/code-blocks' | 'ntnyq/markdown/extensions' | 'ntnyq/node' | 'ntnyq/prettier' | 'ntnyq/prettier/ignore' | 'ntnyq/regexp' | 'ntnyq/perfectionist' | 'ntnyq/sort/package-json' | 'ntnyq/sort/tsconfig' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/ts/dts' | 'ntnyq/ts/test' | 'ntnyq/ts/cjs' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/vue/ts' | 'ntnyq/vue/core' | 'ntnyq/yaml' | 'ntnyq/toml';
|
|
8462
8774
|
|
|
8463
8775
|
/**
|
|
8464
8776
|
* Parser options
|
|
@@ -8508,15 +8820,17 @@ interface OverridesOptions<Rules = TypedConfigItem['rules']> {
|
|
|
8508
8820
|
/**
|
|
8509
8821
|
* Custom framework support
|
|
8510
8822
|
*/
|
|
8511
|
-
declare function ntnyq(config?: TypedConfigItem | TypedConfigItem[], { vue: enableVue, unocss: enableUnoCSS, prettier: enablePrettier, markdown: enableMarkdown, command: enableCommand, }?: {
|
|
8823
|
+
declare function ntnyq(config?: TypedConfigItem | TypedConfigItem[], { vue: enableVue, unocss: enableUnoCSS, vitest: enableVitest, prettier: enablePrettier, markdown: enableMarkdown, command: enableCommand, }?: {
|
|
8512
8824
|
vue?: boolean | undefined;
|
|
8513
8825
|
unocss?: boolean | undefined;
|
|
8826
|
+
vitest?: boolean | undefined;
|
|
8514
8827
|
prettier?: boolean | undefined;
|
|
8515
8828
|
markdown?: boolean | undefined;
|
|
8516
8829
|
command?: boolean | undefined;
|
|
8517
8830
|
}): TypedConfigItem[];
|
|
8518
8831
|
|
|
8519
8832
|
declare const hasTypeScript: boolean;
|
|
8833
|
+
declare const hasVitest: boolean;
|
|
8520
8834
|
declare const hasVue: boolean;
|
|
8521
8835
|
declare const hasUnoCSS: boolean;
|
|
8522
8836
|
|
|
@@ -8549,6 +8863,7 @@ declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
|
8549
8863
|
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
8550
8864
|
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
8551
8865
|
declare const GLOB_DTS = "**/*.d.?([cm])ts";
|
|
8866
|
+
declare const GLOB_TEST = "**/*.{test,spec}.?([cm])[jt]s?(x)";
|
|
8552
8867
|
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
8553
8868
|
declare const GLOB_CSS = "**/*.css";
|
|
8554
8869
|
declare const GLOB_LESS = "**/*.less";
|
|
@@ -8592,12 +8907,19 @@ declare const typescript: TypedConfigItem[];
|
|
|
8592
8907
|
|
|
8593
8908
|
declare const unusedImports: TypedConfigItem[];
|
|
8594
8909
|
|
|
8910
|
+
declare const perfectionist: TypedConfigItem[];
|
|
8911
|
+
|
|
8595
8912
|
declare const regexp: TypedConfigItem[];
|
|
8596
8913
|
|
|
8597
8914
|
declare const unocss: TypedConfigItem[];
|
|
8598
8915
|
|
|
8599
8916
|
declare const command: TypedConfigItem[];
|
|
8600
8917
|
|
|
8918
|
+
declare const vitest: TypedConfigItem[];
|
|
8919
|
+
|
|
8920
|
+
declare function getVueVersion(): number;
|
|
8921
|
+
declare const vue: TypedConfigItem[];
|
|
8922
|
+
|
|
8601
8923
|
declare const yml: TypedConfigItem[];
|
|
8602
8924
|
|
|
8603
8925
|
declare const toml: TypedConfigItem[];
|
|
@@ -8609,7 +8931,4 @@ declare const jsonc: TypedConfigItem[];
|
|
|
8609
8931
|
|
|
8610
8932
|
declare const markdown: TypedConfigItem[];
|
|
8611
8933
|
|
|
8612
|
-
|
|
8613
|
-
declare const vue: TypedConfigItem[];
|
|
8614
|
-
|
|
8615
|
-
export { type Arrayable, type Awaitable, type ConfigName, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OverridesOptions, type ParserOptions, type RuleOptions, type RuleRecord, type RuleRecordEntry, type Rules, type TypedConfigItem, command, comments, defineConfig, getVueVersion, hasTypeScript, hasUnoCSS, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, prettier, regexp, sortPackageJson, sortTsConfig, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vue, yml };
|
|
8934
|
+
export { type Arrayable, type Awaitable, type ConfigName, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OverridesOptions, type ParserOptions, type RuleOptions, type RuleRecord, type RuleRecordEntry, type Rules, type TypedConfigItem, command, comments, defineConfig, getVueVersion, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, sortPackageJson, sortTsConfig, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vitest, vue, yml };
|