From d5b74e09c456268c3df702ed885e7d48b04c2bf2 Mon Sep 17 00:00:00 2001 From: srdtrk Date: Fri, 9 Jun 2023 13:52:12 +0300 Subject: [PATCH] refactor: removed markdownlint changes in this PR --- .github/workflows/markdown-lint.yml | 23 ----------------------- .markdownlint-cli2.jsonc | 11 ----------- .markdownlint.jsonc | 9 +-------- .markdownlintignore | 3 +++ Makefile | 8 +------- 5 files changed, 5 insertions(+), 49 deletions(-) delete mode 100644 .github/workflows/markdown-lint.yml delete mode 100644 .markdownlint-cli2.jsonc create mode 100644 .markdownlintignore diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml deleted file mode 100644 index f56bf35692e..00000000000 --- a/.github/workflows/markdown-lint.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Markdown Lint -on: - pull_request: - paths: - - "**.md" - - "!.github/**" -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: tj-actions/changed-files@v35 - id: changed-files - with: - files: "**/*.md" - separator: "," - - uses: DavidAnson/markdownlint-cli2-action@v10 - if: steps.changed-files.outputs.any_changed == 'true' - with: - globs: ${{ steps.changed-files.outputs.all_changed_files }} - separator: "," diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc deleted file mode 100644 index 476fe757926..00000000000 --- a/.markdownlint-cli2.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// This file is used by markdownlint-cli2 to configure the linting process -// in conjunction with .markdownlint.jsonc. -{ - "ignores": [ - "docs/node_modules/**", - ".github", - "CHANGELOG.md", - "vendor/**", - "e2e/vendor/**" - ] -} diff --git a/.markdownlint.jsonc b/.markdownlint.jsonc index 4655427d437..2038c88463e 100644 --- a/.markdownlint.jsonc +++ b/.markdownlint.jsonc @@ -1,17 +1,10 @@ { "default": true, - "MD003": { "style": "atx" }, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md003---heading-style - "MD004": { "style": "dash" }, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md004---unordered-list-style - "MD007": { "indent": 4 }, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md007---unordered-list-indentation - "MD009": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md009---trailing-spaces - "MD010": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md010---hard-tabs "MD013": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md013---line-length "MD024": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md024---multiple-headings-with-the-same-content "MD025": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md025---multiple-top-level-headings-in-the-same-document "MD029": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md029---ordered-list-item-prefix "MD033": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md033---inline-html "MD036": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md036---emphasis-used-instead-of-a-heading - "MD041": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md041---first-line-in-a-file-should-be-a-top-level-heading - "MD049": { "style": "asterisk" }, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md049---emphasis-style-should-be-consistent - "MD050": { "style": "asterisk" } // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md050---strong-style-should-be-consistent + "MD041": false // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md041---first-line-in-a-file-should-be-a-top-level-heading } diff --git a/.markdownlintignore b/.markdownlintignore new file mode 100644 index 00000000000..66adb794061 --- /dev/null +++ b/.markdownlintignore @@ -0,0 +1,3 @@ +vendor +e2e/vendor +docs/node_modules \ No newline at end of file diff --git a/Makefile b/Makefile index 35884826315..e8cbfec8617 100644 --- a/Makefile +++ b/Makefile @@ -282,13 +282,7 @@ format: .PHONY: format docs-lint: - markdownlint-cli2 "**.md" - -docs-lint-fix: - markdownlint-cli2-fix "**.md" - -docs-link-check: - find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check --config ./.github/workflows/link-check-config.json + markdownlint . --fix .PHONY: lint lint-fix lint-fix-changed docs-lint docs-lint-changed