@sxzz/eslint-config 4.0.0 → 4.1.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 CHANGED
@@ -1833,6 +1833,34 @@ interface Rules {
1833
1833
  * @see https://eslint.org/docs/latest/rules/logical-assignment-operators
1834
1834
  */
1835
1835
  'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>;
1836
+ /**
1837
+ * Require languages for fenced code blocks.
1838
+ */
1839
+ 'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
1840
+ /**
1841
+ * Enforce heading levels increment by one.
1842
+ */
1843
+ 'markdown/heading-increment'?: Linter.RuleEntry<[]>;
1844
+ /**
1845
+ * Disallow duplicate headings in the same document.
1846
+ */
1847
+ 'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>;
1848
+ /**
1849
+ * Disallow empty links.
1850
+ */
1851
+ 'markdown/no-empty-links'?: Linter.RuleEntry<[]>;
1852
+ /**
1853
+ * Disallow HTML tags.
1854
+ */
1855
+ 'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>;
1856
+ /**
1857
+ * Disallow invalid label references.
1858
+ */
1859
+ 'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>;
1860
+ /**
1861
+ * Disallow missing label references.
1862
+ */
1863
+ 'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>;
1836
1864
  /**
1837
1865
  * Enforce a maximum number of classes per file
1838
1866
  * @see https://eslint.org/docs/latest/rules/max-classes-per-file
@@ -8564,6 +8592,16 @@ type LogicalAssignmentOperators = (([] | ["always"] | [
8564
8592
  enforceForIfStatements?: boolean;
8565
8593
  }
8566
8594
  ] | ["never"]) & unknown[]);
8595
+ type MarkdownFencedCodeLanguage = [] | [
8596
+ {
8597
+ required?: string[];
8598
+ }
8599
+ ];
8600
+ type MarkdownNoHtml = [] | [
8601
+ {
8602
+ allowed?: string[];
8603
+ }
8604
+ ];
8567
8605
  type MaxClassesPerFile = [] | [
8568
8606
  (number | {
8569
8607
  ignoreExpressions?: boolean;
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import _configJs from "@eslint/js";
3
3
  import * as _pluginAntfu from "eslint-plugin-antfu";
4
4
  import * as _pluginComments from "eslint-plugin-eslint-comments";
5
- import * as _pluginMarkdown from "eslint-plugin-markdown";
5
+ import * as _pluginMarkdown from "@eslint/markdown";
6
6
  import tseslint from "typescript-eslint";
7
7
  import * as _pluginUnicorn from "eslint-plugin-unicorn";
8
8
  import * as _pluginVue from "eslint-plugin-vue";
@@ -339,7 +339,7 @@ var jsonc = [
339
339
 
340
340
  // src/configs/markdown.ts
341
341
  var markdown = [
342
- ...pluginMarkdown.configs.recommended.map((config) => ({
342
+ ...pluginMarkdown.configs.processor.map((config) => ({
343
343
  ...config,
344
344
  name: `sxzz/${config.name || "anonymous"}`
345
345
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "ESLint config for @sxzz.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -31,6 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@eslint/js": "^9.9.1",
34
+ "@eslint/markdown": "^6.0.0",
34
35
  "@types/eslint": "^9.6.1",
35
36
  "@unocss/eslint-plugin": "^0.62.3",
36
37
  "eslint-config-flat-gitignore": "^0.3.0",
@@ -41,7 +42,6 @@
41
42
  "eslint-plugin-import-x": "^4.1.1",
42
43
  "eslint-plugin-jsdoc": "^50.2.2",
43
44
  "eslint-plugin-jsonc": "^2.16.0",
44
- "eslint-plugin-markdown": "^5.1.0",
45
45
  "eslint-plugin-n": "^17.10.2",
46
46
  "eslint-plugin-perfectionist": "^3.3.0",
47
47
  "eslint-plugin-prettier": "^5.2.1",
@@ -65,7 +65,7 @@
65
65
  "bumpp": "^9.5.2",
66
66
  "eslint": "^9.9.1",
67
67
  "eslint-typegen": "^0.3.1",
68
- "importx": "^0.4.3",
68
+ "importx": "^0.4.4",
69
69
  "picocolors": "^1.0.1",
70
70
  "tsup": "^8.2.4",
71
71
  "tsx": "^4.19.0",