diff --git a/.github/renovate.json b/.github/renovate.json index 8f8b83e75c5..adbd17f69f8 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -75,8 +75,7 @@ "/^vite-/", "/vitest$/", "/lint-staged/", - "/lockfile-lint/", - "/markdownlint-cli/", + "/markdownlint-cli2/", "/^prettier/", "/prettier$/", "/rimraf/", diff --git a/.gitignore b/.gitignore index 40f69a44799..4c9d2ab525d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ ######################### ## Keep in sync with ## - .prettierignore -## - .markdownlintignore ## - .dockerignore ######################### diff --git a/.lefthook.yml b/.lefthook.yml index 9e648abee37..3d54fd5b7f1 100644 --- a/.lefthook.yml +++ b/.lefthook.yml @@ -9,7 +9,7 @@ pre-commit: markdownlint: tags: frontend style glob: "*.md" - run: yarn run markdownlint --fix {staged_files} || true + run: yarn run markdownlint --fix --no-globs {staged_files} || true stage_fixed: true prettier: tags: frontend style diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc new file mode 100644 index 00000000000..79cd75b4bb7 --- /dev/null +++ b/.markdownlint-cli2.jsonc @@ -0,0 +1,25 @@ +{ + "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/v0.16.0/schema/markdownlint-cli2-config-schema.json", + "config": { + "default": true, + "first-line-heading": false, + "line-length": false, + "list-marker-space": { + "ol_multi": 1, + "ol_single": 1, + "ul_multi": 1, + "ul_single": 1, + }, + "no-alt-text": false, + "no-bare-urls": false, + "no-duplicate-heading": { "siblings_only": true }, + "no-emphasis-as-heading": false, + "no-inline-html": false, + "no-trailing-punctuation": false, + "ol-prefix": { "style": "one" }, + "single-title": false, + }, + "gitignore": true, + "globs": ["*.md", "**/*.md"], + "ignores": ["**/LICENSE*.md"], +} diff --git a/.markdownlint.json b/.markdownlint.json deleted file mode 100644 index 0f1107a4ec7..00000000000 --- a/.markdownlint.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "default": true, - "first-line-heading": false, - "line-length": false, - "list-marker-space": { - "ol_multi": 1, - "ol_single": 1, - "ul_multi": 1, - "ul_single": 1 - }, - "no-alt-text": false, - "no-bare-urls": false, - "no-duplicate-heading": { "siblings_only": true }, - "no-emphasis-as-heading": false, - "no-inline-html": false, - "no-trailing-punctuation": false, - "ol-prefix": { "style": "one" }, - "single-title": false -} diff --git a/package.json b/package.json index b0aabda4499..bd36ed6df68 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "@taplo/cli": "0.7.0", "@yarnpkg/types": "^4.0.0", "lefthook": "1.9.2", - "markdownlint-cli": "0.43.0", + "markdownlint-cli2": "0.16.0", "npm-run-all2": "7.0.2", "prettier": "3.4.2", "prettier-plugin-packagejson": "2.5.6",