@ntnyq/eslint-config 3.7.0 → 3.7.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/dist/index.cjs +97 -60
- package/dist/index.d.cts +158 -126
- package/dist/index.d.ts +158 -126
- package/dist/index.js +97 -60
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -1154,7 +1154,6 @@ var jsdoc = (options = {}) => [
|
|
|
1154
1154
|
"jsdoc/check-line-alignment": "error",
|
|
1155
1155
|
"jsdoc/check-param-names": "error",
|
|
1156
1156
|
"jsdoc/check-property-names": "error",
|
|
1157
|
-
"jsdoc/check-tag-names": "error",
|
|
1158
1157
|
"jsdoc/check-types": "error",
|
|
1159
1158
|
"jsdoc/empty-tags": "error",
|
|
1160
1159
|
"jsdoc/multiline-blocks": "error",
|
|
@@ -1165,6 +1164,16 @@ var jsdoc = (options = {}) => [
|
|
|
1165
1164
|
"jsdoc/no-multi-asterisks": "error",
|
|
1166
1165
|
"jsdoc/require-asterisk-prefix": "error",
|
|
1167
1166
|
"jsdoc/require-hyphen-before-param-description": "error",
|
|
1167
|
+
"jsdoc/check-tag-names": [
|
|
1168
|
+
"error",
|
|
1169
|
+
{
|
|
1170
|
+
definedTags: [
|
|
1171
|
+
// magic-comments
|
|
1172
|
+
"vite-ignore",
|
|
1173
|
+
"unocss-include"
|
|
1174
|
+
]
|
|
1175
|
+
}
|
|
1176
|
+
],
|
|
1168
1177
|
// TODO: this after investigate
|
|
1169
1178
|
// 'jsdoc/sort-tags': [
|
|
1170
1179
|
// 'error',
|
|
@@ -1452,51 +1461,51 @@ var unocss = (options = {}) => [
|
|
|
1452
1461
|
|
|
1453
1462
|
// src/constants.ts
|
|
1454
1463
|
var DEFAULT_PRETTIER_OPTIONS = {
|
|
1455
|
-
//
|
|
1456
|
-
|
|
1457
|
-
//
|
|
1458
|
-
|
|
1459
|
-
//
|
|
1460
|
-
|
|
1461
|
-
//
|
|
1462
|
-
|
|
1463
|
-
// Maximum line length
|
|
1464
|
-
printWidth: 100,
|
|
1464
|
+
// Include parentheses around a sole arrow function parameter
|
|
1465
|
+
arrowParens: "avoid",
|
|
1466
|
+
// Put the > of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line instead of being alone on the next line (does not apply to self closing elements)
|
|
1467
|
+
bracketSameLine: false,
|
|
1468
|
+
// Print spaces between brackets in object literals.
|
|
1469
|
+
bracketSpacing: true,
|
|
1470
|
+
// Control whether Prettier formats quoted code embedded in the file
|
|
1471
|
+
embeddedLanguageFormatting: "auto",
|
|
1465
1472
|
// End of line
|
|
1466
1473
|
endOfLine: "lf",
|
|
1467
|
-
//
|
|
1468
|
-
|
|
1474
|
+
// Specify the global whitespace sensitivity for HTML files
|
|
1475
|
+
htmlWhitespaceSensitivity: "css",
|
|
1469
1476
|
// Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with prettier.
|
|
1470
1477
|
insertPragma: false,
|
|
1471
1478
|
// Use single quotes instead of double quotes in JSX
|
|
1472
1479
|
jsxSingleQuote: true,
|
|
1473
|
-
//
|
|
1474
|
-
|
|
1475
|
-
// Print spaces between brackets in object literals.
|
|
1476
|
-
bracketSpacing: true,
|
|
1477
|
-
// Include parentheses around a sole arrow function parameter
|
|
1478
|
-
arrowParens: "avoid",
|
|
1479
|
-
// Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file.
|
|
1480
|
-
requirePragma: false,
|
|
1481
|
-
// Specify which parser to use.
|
|
1482
|
-
// parser: undefined,
|
|
1483
|
-
// Specify the file name to use to infer which parser to use.
|
|
1484
|
-
// filepath: undefined,
|
|
1480
|
+
// Maximum line length
|
|
1481
|
+
printWidth: 100,
|
|
1485
1482
|
// By default, Prettier will wrap markdown text as-is since some services use a line-break-sensitive renderer, e.g. GitHub comment and Bitbucket.
|
|
1486
1483
|
proseWrap: "preserve",
|
|
1487
|
-
// Put the > of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line instead of being alone on the next line (does not apply to self closing elements)
|
|
1488
|
-
bracketSameLine: false,
|
|
1489
1484
|
// Change when properties in objects are quoted
|
|
1490
1485
|
quoteProps: "as-needed",
|
|
1486
|
+
rangeEnd: Number.POSITIVE_INFINITY,
|
|
1487
|
+
// Format only a segment of a file.
|
|
1488
|
+
rangeStart: 0,
|
|
1489
|
+
// Specify which parser to use.
|
|
1490
|
+
// parser: undefined,
|
|
1491
|
+
// Specify the file name to use to infer which parser to use.
|
|
1492
|
+
// filepath: undefined,
|
|
1493
|
+
// Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file.
|
|
1494
|
+
requirePragma: false,
|
|
1495
|
+
// Use semicolons or not
|
|
1496
|
+
semi: false,
|
|
1491
1497
|
// Enforce single attribute per line in HTML, Vue and JSX
|
|
1492
1498
|
singleAttributePerLine: true,
|
|
1499
|
+
// Use single quotes instead of double quotes
|
|
1500
|
+
singleQuote: true,
|
|
1501
|
+
// Specify the number of spaces per indentation-level
|
|
1502
|
+
tabWidth: 2,
|
|
1503
|
+
// Print trailing commas wherever possible when multi-line
|
|
1504
|
+
trailingComma: "all",
|
|
1505
|
+
// Indent lines with tabs instead of spaces
|
|
1506
|
+
useTabs: false,
|
|
1493
1507
|
// Whether or not to indent the code inside <script> and <style> tags in Vue files
|
|
1494
|
-
vueIndentScriptAndStyle: false
|
|
1495
|
-
// Specify the global whitespace sensitivity for HTML files
|
|
1496
|
-
htmlWhitespaceSensitivity: "css",
|
|
1497
|
-
rangeEnd: Number.POSITIVE_INFINITY,
|
|
1498
|
-
// Control whether Prettier formats quoted code embedded in the file
|
|
1499
|
-
embeddedLanguageFormatting: "auto"
|
|
1508
|
+
vueIndentScriptAndStyle: false
|
|
1500
1509
|
};
|
|
1501
1510
|
|
|
1502
1511
|
// src/utils/env.ts
|
|
@@ -1845,7 +1854,7 @@ var specials = (options = {}) => [
|
|
|
1845
1854
|
"perfectionist/sort-objects": [
|
|
1846
1855
|
"error",
|
|
1847
1856
|
{
|
|
1848
|
-
type: "
|
|
1857
|
+
type: "alphabetical",
|
|
1849
1858
|
order: "asc"
|
|
1850
1859
|
}
|
|
1851
1860
|
],
|
|
@@ -2474,20 +2483,30 @@ var typescript = (options = {}) => {
|
|
|
2474
2483
|
};
|
|
2475
2484
|
|
|
2476
2485
|
// src/configs/githubAction.ts
|
|
2477
|
-
var
|
|
2478
|
-
|
|
2486
|
+
var import_eslint_plugin_github_action2 = require("eslint-plugin-github-action");
|
|
2487
|
+
var githubAction = (options = {}) => {
|
|
2488
|
+
const {
|
|
2489
|
+
// Support common overrides rules
|
|
2490
|
+
overrides: overridesRules = {},
|
|
2491
|
+
// Flat config options
|
|
2492
|
+
...restOptions
|
|
2493
|
+
} = options;
|
|
2494
|
+
const recommendedConfig = (0, import_eslint_plugin_github_action2.createRecommendedConfig)({
|
|
2479
2495
|
name: "ntnyq/github-action",
|
|
2480
2496
|
files: [GLOB_GITHUB_ACTION],
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2497
|
+
...restOptions
|
|
2498
|
+
});
|
|
2499
|
+
return [
|
|
2500
|
+
{
|
|
2501
|
+
...recommendedConfig,
|
|
2502
|
+
rules: {
|
|
2503
|
+
...recommendedConfig.rules,
|
|
2504
|
+
// Overrides rules
|
|
2505
|
+
...overridesRules
|
|
2506
|
+
}
|
|
2488
2507
|
}
|
|
2489
|
-
|
|
2490
|
-
|
|
2508
|
+
];
|
|
2509
|
+
};
|
|
2491
2510
|
|
|
2492
2511
|
// src/configs/perfectionist.ts
|
|
2493
2512
|
var perfectionist = (options = {}) => {
|
|
@@ -2591,15 +2610,17 @@ var perfectionist = (options = {}) => {
|
|
|
2591
2610
|
"perfectionist/sort-enums": [
|
|
2592
2611
|
"error",
|
|
2593
2612
|
{
|
|
2594
|
-
type: "
|
|
2595
|
-
order: "asc"
|
|
2613
|
+
type: "alphabetical",
|
|
2614
|
+
order: "asc",
|
|
2615
|
+
partitionByComment: true
|
|
2596
2616
|
}
|
|
2597
2617
|
],
|
|
2598
2618
|
"perfectionist/sort-modules": [
|
|
2599
2619
|
"error",
|
|
2600
2620
|
{
|
|
2601
|
-
type: "
|
|
2602
|
-
order: "asc"
|
|
2621
|
+
type: "alphabetical",
|
|
2622
|
+
order: "asc",
|
|
2623
|
+
partitionByComment: true
|
|
2603
2624
|
}
|
|
2604
2625
|
],
|
|
2605
2626
|
// Overrides rules
|
|
@@ -2627,6 +2648,7 @@ var perfectionist = (options = {}) => {
|
|
|
2627
2648
|
// {
|
|
2628
2649
|
// type: 'alphabetical',
|
|
2629
2650
|
// order: 'asc',
|
|
2651
|
+
// partitionByComment: true,
|
|
2630
2652
|
// },
|
|
2631
2653
|
// ],
|
|
2632
2654
|
"perfectionist/sort-intersection-types": [
|
|
@@ -2647,28 +2669,32 @@ var perfectionist = (options = {}) => {
|
|
|
2647
2669
|
"tuple",
|
|
2648
2670
|
"union",
|
|
2649
2671
|
"nullish"
|
|
2650
|
-
]
|
|
2672
|
+
],
|
|
2673
|
+
partitionByComment: true
|
|
2651
2674
|
}
|
|
2652
2675
|
],
|
|
2653
2676
|
"perfectionist/sort-modules": [
|
|
2654
2677
|
"error",
|
|
2655
2678
|
{
|
|
2656
|
-
type: "
|
|
2657
|
-
order: "asc"
|
|
2679
|
+
type: "alphabetical",
|
|
2680
|
+
order: "asc",
|
|
2681
|
+
partitionByComment: true
|
|
2658
2682
|
}
|
|
2659
2683
|
],
|
|
2660
2684
|
"perfectionist/sort-object-types": [
|
|
2661
2685
|
"error",
|
|
2662
2686
|
{
|
|
2663
2687
|
type: "alphabetical",
|
|
2664
|
-
order: "asc"
|
|
2688
|
+
order: "asc",
|
|
2689
|
+
partitionByComment: true
|
|
2665
2690
|
}
|
|
2666
2691
|
],
|
|
2667
2692
|
"perfectionist/sort-union-types": [
|
|
2668
2693
|
"error",
|
|
2669
2694
|
{
|
|
2670
|
-
type: "
|
|
2671
|
-
order: "asc"
|
|
2695
|
+
type: "alphabetical",
|
|
2696
|
+
order: "asc",
|
|
2697
|
+
partitionByComment: true
|
|
2672
2698
|
}
|
|
2673
2699
|
],
|
|
2674
2700
|
// Overrides rules
|
|
@@ -2688,21 +2714,32 @@ var perfectionist = (options = {}) => {
|
|
|
2688
2714
|
"error",
|
|
2689
2715
|
{
|
|
2690
2716
|
type: "alphabetical",
|
|
2691
|
-
order: "asc"
|
|
2717
|
+
order: "asc",
|
|
2718
|
+
partitionByComment: true
|
|
2692
2719
|
}
|
|
2693
2720
|
],
|
|
2694
2721
|
"perfectionist/sort-objects": [
|
|
2695
2722
|
"error",
|
|
2696
2723
|
{
|
|
2697
|
-
type: "
|
|
2698
|
-
order: "asc"
|
|
2724
|
+
type: "alphabetical",
|
|
2725
|
+
order: "asc",
|
|
2726
|
+
partitionByComment: true
|
|
2699
2727
|
}
|
|
2700
2728
|
],
|
|
2701
2729
|
"perfectionist/sort-sets": [
|
|
2702
2730
|
"error",
|
|
2703
2731
|
{
|
|
2704
|
-
type: "
|
|
2705
|
-
order: "asc"
|
|
2732
|
+
type: "alphabetical",
|
|
2733
|
+
order: "asc",
|
|
2734
|
+
partitionByComment: true
|
|
2735
|
+
}
|
|
2736
|
+
],
|
|
2737
|
+
"perfectionist/sort-modules": [
|
|
2738
|
+
"error",
|
|
2739
|
+
{
|
|
2740
|
+
type: "alphabetical",
|
|
2741
|
+
order: "asc",
|
|
2742
|
+
partitionByComment: true
|
|
2706
2743
|
}
|
|
2707
2744
|
],
|
|
2708
2745
|
// Overrides rules
|