diff --git a/.github/workflows/content-lint-markdown.yml b/.github/workflows/content-lint-markdown.yml index 7a9c47884144..a9f3b7408f7d 100644 --- a/.github/workflows/content-lint-markdown.yml +++ b/.github/workflows/content-lint-markdown.yml @@ -38,4 +38,4 @@ jobs: - name: Run content linter if changed content/data files if: steps.changed-files.outputs.any_changed == 'true' - run: node src/content-linter/scripts/markdownlint.js --errors-only --paths ${{ steps.changed-files.outputs.all_changed_files }} + run: npm run lint-content -- --errors-only --paths ${{ steps.changed-files.outputs.all_changed_files }} diff --git a/.github/workflows/lint-entire-content-data-markdown.yml b/.github/workflows/lint-entire-content-data-markdown.yml index bb873722b18f..d5f675f758d3 100644 --- a/.github/workflows/lint-entire-content-data-markdown.yml +++ b/.github/workflows/lint-entire-content-data-markdown.yml @@ -32,7 +32,7 @@ jobs: id: linting-content-data timeout-minutes: 10 continue-on-error: true - run: node src/content-linter/scripts/markdownlint.js --errors-only --paths content data --output-file /tmp/error-lints.json + run: npm run lint-content -- --errors-only --paths content data --output-file /tmp/error-lints.json - name: Open issue in docs-content if: ${{ always() && steps.linting-content-data.outcome == 'failure' }} diff --git a/package.json b/package.json index 21a82b4c5d4e..9628b0d4eb37 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "fixture-test": "cross-env ROOT=tests/fixtures npm test -- tests/rendering-fixtures", "index-test-fixtures": "node src/search/scripts/index-elasticsearch.js -l en -l ja -V ghae -V dotcom --index-prefix tests -- src/search/tests/fixtures/search-indexes", "lint": "eslint '**/*.{js,mjs,ts,tsx}'", - "lint-content": "src/content-linter/scripts/markdownlint.js", + "lint-content": "src/content-linter/scripts/lint-content.js", "lint-translation": "cross-env NODE_OPTIONS=--experimental-vm-modules jest src/content-linter/tests/lint-files.js", "openapi-docs": "src/rest/docs.js", "playwright-test": "playwright test --project=\"Google Chrome\"", diff --git a/src/content-linter/scripts/markdownlint.js b/src/content-linter/scripts/lint-content.js similarity index 100% rename from src/content-linter/scripts/markdownlint.js rename to src/content-linter/scripts/lint-content.js