1
0
mirror of synced 2025-12-19 18:10:59 -05:00

content linter npm script (#43038)

This commit is contained in:
Rachael Sewell
2023-09-21 19:08:27 -07:00
committed by GitHub
parent 426b4829b5
commit 05703f4712
4 changed files with 3 additions and 3 deletions

View File

@@ -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 }}

View File

@@ -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' }}

View File

@@ -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\"",