Skip to content

Commit 89fb868

Browse files
committed
lint: update scripts
1 parent df8351e commit 89fb868

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
"type": "module",
66
"scripts": {
77
"docs:dev": "NODE_OPTIONS=--openssl-legacy-provider vitepress dev main",
8-
"docs:build": "NODE_OPTIONS=--openssl-legacy-provider vitepress build main",
8+
"docs:build": "yarn lint:check-links && NODE_OPTIONS=--openssl-legacy-provider vitepress build main",
99
"docs:preview": "NODE_OPTIONS=--openssl-legacy-provider vitepress preview main",
10-
"docs:build-cf": "DEBUG='vitepress:*' NODE_OPTIONS=--openssl-legacy-provider vitepress build main && cp _redirects dist/",
10+
"docs:build-cf": "yarn lint:check-links && DEBUG='vitepress:*' NODE_OPTIONS=--openssl-legacy-provider vitepress build main && cp _redirects dist/",
1111
"test": "ava",
1212
"lint-fix": "yarn lint --fix",
1313
"lint": "eslint 'snippets/**/*.js'",
14-
"format": "node scripts/markdown-js-snippets-linter.mjs 'main/**/*.md' --fix && prettier --write '**/*.md' --config .prettierrc.json",
15-
"lint:format": "node scripts/markdown-js-snippets-linter.mjs 'main/**/*.md' && prettier --check '**/*.md' --config .prettierrc.json",
14+
"format": "yarn lint:inline-js-snippets --fix && prettier --write '**/*.md' --config .prettierrc.json",
15+
"lint:format": "yarn lint:inline-js-snippets && prettier --check '**/*.md' --config .prettierrc.json",
16+
"lint:inline-js-snippets": "node scripts/markdown-js-snippets-linter.mjs 'main/**/*.md'",
17+
"lint:check-links": "node scripts/checkLinks.mjs",
1618
"build": "exit 0"
1719
},
1820
"packageManager": "[email protected]",

0 commit comments

Comments
 (0)