@vinicunca/eslint-config 3.17.0 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +47 -4
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -1275,6 +1275,11 @@ interface RuleOptions {
|
|
|
1275
1275
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
1276
1276
|
*/
|
|
1277
1277
|
'markdown/heading-increment'?: Linter.RuleEntry<[]>;
|
|
1278
|
+
/**
|
|
1279
|
+
* Disallow bare URLs
|
|
1280
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
|
|
1281
|
+
*/
|
|
1282
|
+
'markdown/no-bare-urls'?: Linter.RuleEntry<[]>;
|
|
1278
1283
|
/**
|
|
1279
1284
|
* Disallow duplicate definitions
|
|
1280
1285
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md
|
|
@@ -1284,12 +1289,12 @@ interface RuleOptions {
|
|
|
1284
1289
|
* Disallow duplicate headings in the same document
|
|
1285
1290
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
|
|
1286
1291
|
*/
|
|
1287
|
-
'markdown/no-duplicate-headings'?: Linter.RuleEntry<
|
|
1292
|
+
'markdown/no-duplicate-headings'?: Linter.RuleEntry<MarkdownNoDuplicateHeadings>;
|
|
1288
1293
|
/**
|
|
1289
1294
|
* Disallow empty definitions
|
|
1290
1295
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
|
|
1291
1296
|
*/
|
|
1292
|
-
'markdown/no-empty-definitions'?: Linter.RuleEntry<
|
|
1297
|
+
'markdown/no-empty-definitions'?: Linter.RuleEntry<MarkdownNoEmptyDefinitions>;
|
|
1293
1298
|
/**
|
|
1294
1299
|
* Disallow empty images
|
|
1295
1300
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
|
|
@@ -1320,11 +1325,26 @@ interface RuleOptions {
|
|
|
1320
1325
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
1321
1326
|
*/
|
|
1322
1327
|
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>;
|
|
1328
|
+
/**
|
|
1329
|
+
* Disallow link fragments that do not reference valid headings
|
|
1330
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-link-fragments.md
|
|
1331
|
+
*/
|
|
1332
|
+
'markdown/no-missing-link-fragments'?: Linter.RuleEntry<MarkdownNoMissingLinkFragments>;
|
|
1323
1333
|
/**
|
|
1324
1334
|
* Disallow multiple H1 headings in the same document
|
|
1325
1335
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
|
|
1326
1336
|
*/
|
|
1327
1337
|
'markdown/no-multiple-h1'?: Linter.RuleEntry<MarkdownNoMultipleH1>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Disallow reversed link and image syntax
|
|
1340
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
|
|
1341
|
+
*/
|
|
1342
|
+
'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>;
|
|
1343
|
+
/**
|
|
1344
|
+
* Disallow unused definitions
|
|
1345
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
|
|
1346
|
+
*/
|
|
1347
|
+
'markdown/no-unused-definitions'?: Linter.RuleEntry<MarkdownNoUnusedDefinitions>;
|
|
1328
1348
|
/**
|
|
1329
1349
|
* Require alternative text for images
|
|
1330
1350
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
|
|
@@ -1497,7 +1517,7 @@ interface RuleOptions {
|
|
|
1497
1517
|
*/
|
|
1498
1518
|
'no-console'?: Linter.RuleEntry<NoConsole>;
|
|
1499
1519
|
/**
|
|
1500
|
-
* Disallow reassigning `const` variables
|
|
1520
|
+
* Disallow reassigning `const`, `using`, and `await using` variables
|
|
1501
1521
|
* @see https://eslint.org/docs/latest/rules/no-const-assign
|
|
1502
1522
|
*/
|
|
1503
1523
|
'no-const-assign'?: Linter.RuleEntry<[]>;
|
|
@@ -8414,7 +8434,7 @@ interface RuleOptions {
|
|
|
8414
8434
|
*/
|
|
8415
8435
|
'vue/no-restricted-custom-event'?: Linter.RuleEntry<VueNoRestrictedCustomEvent>;
|
|
8416
8436
|
/**
|
|
8417
|
-
* disallow specific
|
|
8437
|
+
* disallow specific elements
|
|
8418
8438
|
* @see https://eslint.vuejs.org/rules/no-restricted-html-elements.html
|
|
8419
8439
|
*/
|
|
8420
8440
|
'vue/no-restricted-html-elements'?: Linter.RuleEntry<VueNoRestrictedHtmlElements>;
|
|
@@ -9740,6 +9760,7 @@ type JsdocMultilineBlocks = [] | [{
|
|
|
9740
9760
|
noMultilineBlocks?: boolean;
|
|
9741
9761
|
noSingleLineBlocks?: boolean;
|
|
9742
9762
|
noZeroLineText?: boolean;
|
|
9763
|
+
requireSingleLineUnderCount?: number;
|
|
9743
9764
|
singleLineTags?: string[];
|
|
9744
9765
|
}];
|
|
9745
9766
|
// ----- jsdoc/no-bad-blocks -----
|
|
@@ -10697,14 +10718,34 @@ type MarkdownNoDuplicateDefinitions = [] | [{
|
|
|
10697
10718
|
allowDefinitions?: string[];
|
|
10698
10719
|
allowFootnoteDefinitions?: string[];
|
|
10699
10720
|
}];
|
|
10721
|
+
// ----- markdown/no-duplicate-headings -----
|
|
10722
|
+
type MarkdownNoDuplicateHeadings = [] | [{
|
|
10723
|
+
checkSiblingsOnly?: boolean;
|
|
10724
|
+
}];
|
|
10725
|
+
// ----- markdown/no-empty-definitions -----
|
|
10726
|
+
type MarkdownNoEmptyDefinitions = [] | [{
|
|
10727
|
+
allowDefinitions?: string[];
|
|
10728
|
+
allowFootnoteDefinitions?: string[];
|
|
10729
|
+
checkFootnoteDefinitions?: boolean;
|
|
10730
|
+
}];
|
|
10700
10731
|
// ----- markdown/no-html -----
|
|
10701
10732
|
type MarkdownNoHtml = [] | [{
|
|
10702
10733
|
allowed?: string[];
|
|
10703
10734
|
}];
|
|
10735
|
+
// ----- markdown/no-missing-link-fragments -----
|
|
10736
|
+
type MarkdownNoMissingLinkFragments = [] | [{
|
|
10737
|
+
ignoreCase?: boolean;
|
|
10738
|
+
allowPattern?: string;
|
|
10739
|
+
}];
|
|
10704
10740
|
// ----- markdown/no-multiple-h1 -----
|
|
10705
10741
|
type MarkdownNoMultipleH1 = [] | [{
|
|
10706
10742
|
frontmatterTitle?: string;
|
|
10707
10743
|
}];
|
|
10744
|
+
// ----- markdown/no-unused-definitions -----
|
|
10745
|
+
type MarkdownNoUnusedDefinitions = [] | [{
|
|
10746
|
+
allowDefinitions?: string[];
|
|
10747
|
+
allowFootnoteDefinitions?: string[];
|
|
10748
|
+
}];
|
|
10708
10749
|
// ----- max-classes-per-file -----
|
|
10709
10750
|
type MaxClassesPerFile = [] | [(number | {
|
|
10710
10751
|
ignoreExpressions?: boolean;
|
|
@@ -10868,6 +10909,7 @@ type NoConstantCondition = [] | [{
|
|
|
10868
10909
|
// ----- no-duplicate-imports -----
|
|
10869
10910
|
type NoDuplicateImports = [] | [{
|
|
10870
10911
|
includeExports?: boolean;
|
|
10912
|
+
allowSeparateTypeImports?: boolean;
|
|
10871
10913
|
}];
|
|
10872
10914
|
// ----- no-else-return -----
|
|
10873
10915
|
type NoElseReturn = [] | [{
|
|
@@ -15900,6 +15942,7 @@ interface _TsNamingConvention_MatchRegexConfig {
|
|
|
15900
15942
|
}
|
|
15901
15943
|
// ----- ts/no-base-to-string -----
|
|
15902
15944
|
type TsNoBaseToString = [] | [{
|
|
15945
|
+
checkUnknown?: boolean;
|
|
15903
15946
|
ignoredTypeNames?: string[];
|
|
15904
15947
|
}];
|
|
15905
15948
|
// ----- ts/no-confusing-void-expression -----
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.18.0",
|
|
5
5
|
"description": "Vinicunca ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "praburangki",
|
|
@@ -112,11 +112,11 @@
|
|
|
112
112
|
"@antfu/install-pkg": "^1.1.0",
|
|
113
113
|
"@clack/prompts": "^0.11.0",
|
|
114
114
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
115
|
-
"@eslint/markdown": "^
|
|
115
|
+
"@eslint/markdown": "^7.0.0",
|
|
116
116
|
"@stylistic/eslint-plugin": "^5.0.0-beta.4",
|
|
117
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
118
|
-
"@typescript-eslint/parser": "^8.
|
|
119
|
-
"@unocss/eslint-plugin": "66.
|
|
117
|
+
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
|
118
|
+
"@typescript-eslint/parser": "^8.37.0",
|
|
119
|
+
"@unocss/eslint-plugin": "^66.3.3",
|
|
120
120
|
"@vitest/eslint-plugin": "^1.2.7",
|
|
121
121
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
122
122
|
"eslint-flat-config-utils": "^2.0.1",
|
|
@@ -125,18 +125,18 @@
|
|
|
125
125
|
"eslint-plugin-command": "^3.2.1",
|
|
126
126
|
"eslint-plugin-format": "^1.0.1",
|
|
127
127
|
"eslint-plugin-import-lite": "^0.3.0",
|
|
128
|
-
"eslint-plugin-jsdoc": "^51.
|
|
128
|
+
"eslint-plugin-jsdoc": "^51.3.4",
|
|
129
129
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
130
|
-
"eslint-plugin-n": "^17.
|
|
130
|
+
"eslint-plugin-n": "^17.21.0",
|
|
131
131
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
132
132
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
133
|
-
"eslint-plugin-pnpm": "^0.
|
|
133
|
+
"eslint-plugin-pnpm": "^1.0.0",
|
|
134
134
|
"eslint-plugin-regexp": "^2.9.0",
|
|
135
135
|
"eslint-plugin-sonarjs": "^3.0.2",
|
|
136
136
|
"eslint-plugin-toml": "^0.12.0",
|
|
137
137
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
138
138
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
139
|
-
"eslint-plugin-vue": "^10.
|
|
139
|
+
"eslint-plugin-vue": "^10.3.0",
|
|
140
140
|
"eslint-plugin-yml": "^1.18.0",
|
|
141
141
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
142
142
|
"globals": "^16.2.0",
|