@vinicunca/eslint-config 2.11.0 → 2.11.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 CHANGED
@@ -112,7 +112,7 @@ __export(src_exports, {
112
112
  });
113
113
  module.exports = __toCommonJS(src_exports);
114
114
 
115
- // ../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.41_tsx@4.19.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
115
+ // ../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.45_tsx@4.19.0_typescript@5.6.2_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
116
116
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
117
117
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
118
118
 
@@ -1242,7 +1242,7 @@ async function markdown(options = {}) {
1242
1242
  files = [GLOB_MARKDOWN],
1243
1243
  overrides = {}
1244
1244
  } = options;
1245
- const markdown2 = await interopDefault(import("eslint-plugin-markdown"));
1245
+ const markdown2 = await interopDefault(import("@eslint/markdown"));
1246
1246
  return [
1247
1247
  {
1248
1248
  name: "vinicunca/markdown/setup",
package/dist/index.d.cts CHANGED
@@ -1453,6 +1453,34 @@ interface RuleOptions {
1453
1453
  * @see https://eslint.org/docs/latest/rules/logical-assignment-operators
1454
1454
  */
1455
1455
  'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>
1456
+ /**
1457
+ * Require languages for fenced code blocks.
1458
+ */
1459
+ 'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
1460
+ /**
1461
+ * Enforce heading levels increment by one.
1462
+ */
1463
+ 'markdown/heading-increment'?: Linter.RuleEntry<[]>
1464
+ /**
1465
+ * Disallow duplicate headings in the same document.
1466
+ */
1467
+ 'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
1468
+ /**
1469
+ * Disallow empty links.
1470
+ */
1471
+ 'markdown/no-empty-links'?: Linter.RuleEntry<[]>
1472
+ /**
1473
+ * Disallow HTML tags.
1474
+ */
1475
+ 'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>
1476
+ /**
1477
+ * Disallow invalid label references.
1478
+ */
1479
+ 'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
1480
+ /**
1481
+ * Disallow missing label references.
1482
+ */
1483
+ 'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
1456
1484
  /**
1457
1485
  * Enforce a maximum number of classes per file
1458
1486
  * @see https://eslint.org/docs/latest/rules/max-classes-per-file
@@ -7931,7 +7959,7 @@ type AccessorPairs = []|[{
7931
7959
  // ----- antfu/consistent-chaining -----
7932
7960
  type AntfuConsistentChaining = []|[{
7933
7961
 
7934
- allowFirstPropertyAccess?: boolean
7962
+ allowLeadingPropertyAccess?: boolean
7935
7963
  }]
7936
7964
  // ----- antfu/consistent-list-newline -----
7937
7965
  type AntfuConsistentListNewline = []|[{
@@ -9610,6 +9638,14 @@ type LinesBetweenClassMembers = []|[({
9610
9638
  type LogicalAssignmentOperators = (([]|["always"]|["always", {
9611
9639
  enforceForIfStatements?: boolean
9612
9640
  }] | ["never"]) & unknown[])
9641
+ // ----- markdown/fenced-code-language -----
9642
+ type MarkdownFencedCodeLanguage = []|[{
9643
+ required?: string[]
9644
+ }]
9645
+ // ----- markdown/no-html -----
9646
+ type MarkdownNoHtml = []|[{
9647
+ allowed?: string[]
9648
+ }]
9613
9649
  // ----- max-classes-per-file -----
9614
9650
  type MaxClassesPerFile = []|[(number | {
9615
9651
  ignoreExpressions?: boolean
@@ -11308,6 +11344,7 @@ type StyleIndent = []|[("tab" | number)]|[("tab" | number), {
11308
11344
  offsetTernaryExpressions?: boolean
11309
11345
  ignoredNodes?: string[]
11310
11346
  ignoreComments?: boolean
11347
+ tabLength?: number
11311
11348
  }]
11312
11349
  // ----- style/indent-binary-ops -----
11313
11350
  type StyleIndentBinaryOps = []|[(number | "tab")]
@@ -11682,6 +11719,10 @@ type StyleKeywordSpacing = []|[{
11682
11719
  before?: boolean
11683
11720
  after?: boolean
11684
11721
  }
11722
+ satisfies?: {
11723
+ before?: boolean
11724
+ after?: boolean
11725
+ }
11685
11726
  set?: {
11686
11727
  before?: boolean
11687
11728
  after?: boolean
@@ -12162,7 +12203,6 @@ type StyleTypeAnnotationSpacing = []|[{
12162
12203
  parameter?: _StyleTypeAnnotationSpacing_SpacingConfig
12163
12204
  property?: _StyleTypeAnnotationSpacing_SpacingConfig
12164
12205
  returnType?: _StyleTypeAnnotationSpacing_SpacingConfig
12165
- operator?: _StyleTypeAnnotationSpacing_SpacingConfig
12166
12206
  }
12167
12207
  }]
12168
12208
  interface _StyleTypeAnnotationSpacing_SpacingConfig {
@@ -14371,6 +14411,10 @@ type VueKeywordSpacing = []|[{
14371
14411
  before?: boolean
14372
14412
  after?: boolean
14373
14413
  }
14414
+ satisfies?: {
14415
+ before?: boolean
14416
+ after?: boolean
14417
+ }
14374
14418
  set?: {
14375
14419
  before?: boolean
14376
14420
  after?: boolean
package/dist/index.d.ts CHANGED
@@ -1453,6 +1453,34 @@ interface RuleOptions {
1453
1453
  * @see https://eslint.org/docs/latest/rules/logical-assignment-operators
1454
1454
  */
1455
1455
  'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>
1456
+ /**
1457
+ * Require languages for fenced code blocks.
1458
+ */
1459
+ 'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
1460
+ /**
1461
+ * Enforce heading levels increment by one.
1462
+ */
1463
+ 'markdown/heading-increment'?: Linter.RuleEntry<[]>
1464
+ /**
1465
+ * Disallow duplicate headings in the same document.
1466
+ */
1467
+ 'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
1468
+ /**
1469
+ * Disallow empty links.
1470
+ */
1471
+ 'markdown/no-empty-links'?: Linter.RuleEntry<[]>
1472
+ /**
1473
+ * Disallow HTML tags.
1474
+ */
1475
+ 'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>
1476
+ /**
1477
+ * Disallow invalid label references.
1478
+ */
1479
+ 'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
1480
+ /**
1481
+ * Disallow missing label references.
1482
+ */
1483
+ 'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
1456
1484
  /**
1457
1485
  * Enforce a maximum number of classes per file
1458
1486
  * @see https://eslint.org/docs/latest/rules/max-classes-per-file
@@ -7931,7 +7959,7 @@ type AccessorPairs = []|[{
7931
7959
  // ----- antfu/consistent-chaining -----
7932
7960
  type AntfuConsistentChaining = []|[{
7933
7961
 
7934
- allowFirstPropertyAccess?: boolean
7962
+ allowLeadingPropertyAccess?: boolean
7935
7963
  }]
7936
7964
  // ----- antfu/consistent-list-newline -----
7937
7965
  type AntfuConsistentListNewline = []|[{
@@ -9610,6 +9638,14 @@ type LinesBetweenClassMembers = []|[({
9610
9638
  type LogicalAssignmentOperators = (([]|["always"]|["always", {
9611
9639
  enforceForIfStatements?: boolean
9612
9640
  }] | ["never"]) & unknown[])
9641
+ // ----- markdown/fenced-code-language -----
9642
+ type MarkdownFencedCodeLanguage = []|[{
9643
+ required?: string[]
9644
+ }]
9645
+ // ----- markdown/no-html -----
9646
+ type MarkdownNoHtml = []|[{
9647
+ allowed?: string[]
9648
+ }]
9613
9649
  // ----- max-classes-per-file -----
9614
9650
  type MaxClassesPerFile = []|[(number | {
9615
9651
  ignoreExpressions?: boolean
@@ -11308,6 +11344,7 @@ type StyleIndent = []|[("tab" | number)]|[("tab" | number), {
11308
11344
  offsetTernaryExpressions?: boolean
11309
11345
  ignoredNodes?: string[]
11310
11346
  ignoreComments?: boolean
11347
+ tabLength?: number
11311
11348
  }]
11312
11349
  // ----- style/indent-binary-ops -----
11313
11350
  type StyleIndentBinaryOps = []|[(number | "tab")]
@@ -11682,6 +11719,10 @@ type StyleKeywordSpacing = []|[{
11682
11719
  before?: boolean
11683
11720
  after?: boolean
11684
11721
  }
11722
+ satisfies?: {
11723
+ before?: boolean
11724
+ after?: boolean
11725
+ }
11685
11726
  set?: {
11686
11727
  before?: boolean
11687
11728
  after?: boolean
@@ -12162,7 +12203,6 @@ type StyleTypeAnnotationSpacing = []|[{
12162
12203
  parameter?: _StyleTypeAnnotationSpacing_SpacingConfig
12163
12204
  property?: _StyleTypeAnnotationSpacing_SpacingConfig
12164
12205
  returnType?: _StyleTypeAnnotationSpacing_SpacingConfig
12165
- operator?: _StyleTypeAnnotationSpacing_SpacingConfig
12166
12206
  }
12167
12207
  }]
12168
12208
  interface _StyleTypeAnnotationSpacing_SpacingConfig {
@@ -14371,6 +14411,10 @@ type VueKeywordSpacing = []|[{
14371
14411
  before?: boolean
14372
14412
  after?: boolean
14373
14413
  }
14414
+ satisfies?: {
14415
+ before?: boolean
14416
+ after?: boolean
14417
+ }
14374
14418
  set?: {
14375
14419
  before?: boolean
14376
14420
  after?: boolean
package/dist/index.js CHANGED
@@ -1124,7 +1124,7 @@ async function markdown(options = {}) {
1124
1124
  files = [GLOB_MARKDOWN],
1125
1125
  overrides = {}
1126
1126
  } = options;
1127
- const markdown2 = await interopDefault(import("eslint-plugin-markdown"));
1127
+ const markdown2 = await interopDefault(import("@eslint/markdown"));
1128
1128
  return [
1129
1129
  {
1130
1130
  name: "vinicunca/markdown/setup",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinicunca/eslint-config",
3
3
  "type": "module",
4
- "version": "2.11.0",
4
+ "version": "2.11.2",
5
5
  "description": "Vinicunca ESLint config",
6
6
  "author": {
7
7
  "name": "praburangki",
@@ -107,21 +107,21 @@
107
107
  "@antfu/install-pkg": "^0.4.1",
108
108
  "@clack/prompts": "^0.7.0",
109
109
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
110
- "@stylistic/eslint-plugin": "^2.7.2",
111
- "@typescript-eslint/eslint-plugin": "^8.4.0",
112
- "@typescript-eslint/parser": "^8.4.0",
110
+ "@eslint/markdown": "^6.1.0",
111
+ "@stylistic/eslint-plugin": "^2.8.0",
112
+ "@typescript-eslint/eslint-plugin": "^8.5.0",
113
+ "@typescript-eslint/parser": "^8.5.0",
113
114
  "@unocss/eslint-plugin": "^0.62.3",
114
115
  "@vitest/eslint-plugin": "^1.1.0",
115
116
  "eslint-config-flat-gitignore": "^0.3.0",
116
117
  "eslint-flat-config-utils": "^0.4.0",
117
118
  "eslint-merge-processors": "^0.1.0",
118
- "eslint-plugin-antfu": "^2.5.0",
119
+ "eslint-plugin-antfu": "^2.6.0",
119
120
  "eslint-plugin-command": "^0.2.4",
120
121
  "eslint-plugin-format": "^0.1.2",
121
122
  "eslint-plugin-import-x": "^4.2.1",
122
123
  "eslint-plugin-jsdoc": "^50.2.2",
123
124
  "eslint-plugin-jsonc": "^2.16.0",
124
- "eslint-plugin-markdown": "^5.1.0",
125
125
  "eslint-plugin-n": "^17.10.2",
126
126
  "eslint-plugin-no-only-tests": "^3.3.0",
127
127
  "eslint-plugin-perfectionist": "^3.5.0",