@bfra.me/eslint-config 0.23.1 → 0.24.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/lib/index.d.ts CHANGED
@@ -1816,6 +1816,11 @@ interface Rules {
1816
1816
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
1817
1817
  */
1818
1818
  'markdown/heading-increment'?: Linter.RuleEntry<[]>
1819
+ /**
1820
+ * Disallow bare URLs
1821
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
1822
+ */
1823
+ 'markdown/no-bare-urls'?: Linter.RuleEntry<[]>
1819
1824
  /**
1820
1825
  * Disallow duplicate definitions
1821
1826
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md
@@ -1825,7 +1830,7 @@ interface Rules {
1825
1830
  * Disallow duplicate headings in the same document
1826
1831
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
1827
1832
  */
1828
- 'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
1833
+ 'markdown/no-duplicate-headings'?: Linter.RuleEntry<MarkdownNoDuplicateHeadings>
1829
1834
  /**
1830
1835
  * Disallow empty definitions
1831
1836
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
@@ -1861,11 +1866,21 @@ interface Rules {
1861
1866
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
1862
1867
  */
1863
1868
  'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
1869
+ /**
1870
+ * Disallow link fragments that do not reference valid headings
1871
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-link-fragments.md
1872
+ */
1873
+ 'markdown/no-missing-link-fragments'?: Linter.RuleEntry<MarkdownNoMissingLinkFragments>
1864
1874
  /**
1865
1875
  * Disallow multiple H1 headings in the same document
1866
1876
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
1867
1877
  */
1868
1878
  'markdown/no-multiple-h1'?: Linter.RuleEntry<MarkdownNoMultipleH1>
1879
+ /**
1880
+ * Disallow reversed link and image syntax
1881
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
1882
+ */
1883
+ 'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>
1869
1884
  /**
1870
1885
  * Require alternative text for images
1871
1886
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
@@ -8002,10 +8017,19 @@ type MarkdownNoDuplicateDefinitions = []|[{
8002
8017
  allowDefinitions?: string[]
8003
8018
  allowFootnoteDefinitions?: string[]
8004
8019
  }]
8020
+ // ----- markdown/no-duplicate-headings -----
8021
+ type MarkdownNoDuplicateHeadings = []|[{
8022
+ checkSiblingsOnly?: boolean
8023
+ }]
8005
8024
  // ----- markdown/no-html -----
8006
8025
  type MarkdownNoHtml = []|[{
8007
8026
  allowed?: string[]
8008
8027
  }]
8028
+ // ----- markdown/no-missing-link-fragments -----
8029
+ type MarkdownNoMissingLinkFragments = []|[{
8030
+ ignoreCase?: boolean
8031
+ allowPattern?: string
8032
+ }]
8009
8033
  // ----- markdown/no-multiple-h1 -----
8010
8034
  type MarkdownNoMultipleH1 = []|[{
8011
8035
  frontmatterTitle?: string
package/lib/index.js CHANGED
@@ -648,7 +648,7 @@ __name(jsdoc, "jsdoc");
648
648
  import { fileURLToPath } from "url";
649
649
 
650
650
  // package.json
651
- var version = "0.23.1";
651
+ var version = "0.24.0";
652
652
 
653
653
  // src/parsers/any-parser.ts
654
654
  var lineBreakPattern = /\r\n|[\n\r\u2028\u2029]/u;
@@ -898,12 +898,7 @@ async function markdown(options = {}) {
898
898
  },
899
899
  {
900
900
  name: "@bfra.me/markdown/disabled",
901
- files: [
902
- GLOB_MARKDOWN
903
- ],
904
- ignores: [
905
- GLOB_MARKDOWN_CODE
906
- ],
901
+ files,
907
902
  rules: {
908
903
  "unicorn/filename-case": "off"
909
904
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bfra.me/eslint-config",
3
- "version": "0.23.1",
3
+ "version": "0.24.0",
4
4
  "description": "Shared ESLint configuration for bfra.me",
5
5
  "keywords": [
6
6
  "bfra.me",
@@ -38,13 +38,13 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
41
- "@eslint/markdown": "6.5.0",
41
+ "@eslint/markdown": "6.6.0",
42
42
  "eslint-config-flat-gitignore": "2.1.0",
43
43
  "eslint-flat-config-utils": "2.1.0",
44
44
  "eslint-merge-processors": "2.0.0",
45
- "eslint-plugin-command": "3.2.1",
45
+ "eslint-plugin-command": "3.3.0",
46
46
  "eslint-plugin-import-x": "4.15.2",
47
- "eslint-plugin-jsdoc": "51.0.3",
47
+ "eslint-plugin-jsdoc": "51.0.4",
48
48
  "eslint-plugin-json-schema-validator": "5.4.1",
49
49
  "eslint-plugin-jsonc": "2.20.1",
50
50
  "eslint-plugin-n": "17.20.0",
@@ -75,9 +75,9 @@
75
75
  "eslint-typegen": "2.2.0",
76
76
  "tsup": "8.5.0",
77
77
  "tsx": "4.20.3",
78
- "@bfra.me/eslint-config": "0.23.1",
79
- "@bfra.me/tsconfig": "0.9.7",
80
- "@bfra.me/prettier-config": "0.15.5"
78
+ "@bfra.me/eslint-config": "0.24.0",
79
+ "@bfra.me/prettier-config": "0.15.5",
80
+ "@bfra.me/tsconfig": "0.10.0"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "@vitest/eslint-plugin": "^1.1.21",
@@ -56,7 +56,7 @@ export async function markdown(options: MarkdownOptions = {}): Promise<Config[]>
56
56
  {
57
57
  name: '@bfra.me/markdown/plugin',
58
58
  plugins: {
59
- markdown: markdown as any,
59
+ markdown,
60
60
  },
61
61
  },
62
62
  {
@@ -77,8 +77,7 @@ export async function markdown(options: MarkdownOptions = {}): Promise<Config[]>
77
77
  },
78
78
  {
79
79
  name: '@bfra.me/markdown/disabled',
80
- files: [GLOB_MARKDOWN],
81
- ignores: [GLOB_MARKDOWN_CODE],
80
+ files,
82
81
  rules: {
83
82
  'unicorn/filename-case': 'off',
84
83
  },
package/src/rules.d.ts CHANGED
@@ -1809,6 +1809,11 @@ export interface Rules {
1809
1809
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
1810
1810
  */
1811
1811
  'markdown/heading-increment'?: Linter.RuleEntry<[]>
1812
+ /**
1813
+ * Disallow bare URLs
1814
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
1815
+ */
1816
+ 'markdown/no-bare-urls'?: Linter.RuleEntry<[]>
1812
1817
  /**
1813
1818
  * Disallow duplicate definitions
1814
1819
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md
@@ -1818,7 +1823,7 @@ export interface Rules {
1818
1823
  * Disallow duplicate headings in the same document
1819
1824
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
1820
1825
  */
1821
- 'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
1826
+ 'markdown/no-duplicate-headings'?: Linter.RuleEntry<MarkdownNoDuplicateHeadings>
1822
1827
  /**
1823
1828
  * Disallow empty definitions
1824
1829
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
@@ -1854,11 +1859,21 @@ export interface Rules {
1854
1859
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
1855
1860
  */
1856
1861
  'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
1862
+ /**
1863
+ * Disallow link fragments that do not reference valid headings
1864
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-link-fragments.md
1865
+ */
1866
+ 'markdown/no-missing-link-fragments'?: Linter.RuleEntry<MarkdownNoMissingLinkFragments>
1857
1867
  /**
1858
1868
  * Disallow multiple H1 headings in the same document
1859
1869
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
1860
1870
  */
1861
1871
  'markdown/no-multiple-h1'?: Linter.RuleEntry<MarkdownNoMultipleH1>
1872
+ /**
1873
+ * Disallow reversed link and image syntax
1874
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
1875
+ */
1876
+ 'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>
1862
1877
  /**
1863
1878
  * Require alternative text for images
1864
1879
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
@@ -7995,10 +8010,19 @@ type MarkdownNoDuplicateDefinitions = []|[{
7995
8010
  allowDefinitions?: string[]
7996
8011
  allowFootnoteDefinitions?: string[]
7997
8012
  }]
8013
+ // ----- markdown/no-duplicate-headings -----
8014
+ type MarkdownNoDuplicateHeadings = []|[{
8015
+ checkSiblingsOnly?: boolean
8016
+ }]
7998
8017
  // ----- markdown/no-html -----
7999
8018
  type MarkdownNoHtml = []|[{
8000
8019
  allowed?: string[]
8001
8020
  }]
8021
+ // ----- markdown/no-missing-link-fragments -----
8022
+ type MarkdownNoMissingLinkFragments = []|[{
8023
+ ignoreCase?: boolean
8024
+ allowPattern?: string
8025
+ }]
8002
8026
  // ----- markdown/no-multiple-h1 -----
8003
8027
  type MarkdownNoMultipleH1 = []|[{
8004
8028
  frontmatterTitle?: string