Skip to content

Commit

Permalink
content linter npm script (#43038)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmari authored Sep 22, 2023
1 parent 426b482 commit 05703f4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/content-lint-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/lint-entire-content-data-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"",
Expand Down
File renamed without changes.

0 comments on commit 05703f4

Please sign in to comment.