File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 28
28
run : |
29
29
npm run lint
30
30
npm run lint:examples
31
- npm run lint:markdown
32
31
33
32
- name : Lint doc files
34
33
run : |
Original file line number Diff line number Diff line change @@ -257,13 +257,21 @@ cd packages/opentelemetry-module-name
257
257
npm run lint:fix
258
258
```
259
259
260
- Similarly, Markdown files (such as README.md files) can be linted:
260
+ The default lint command will check majority of files, including Markdown files (such as README.md files), but you
261
+ also have the option to check just the Markdown files with:
261
262
262
263
``` sh
263
264
npm run lint:markdown
264
265
npm run lint:markdown:fix # can automatically fix some Markdown rules
265
266
```
266
267
268
+ The default command doesn't check the examples folder. To lint just the examples, use the script:
269
+
270
+ ``` sh
271
+ npm run lint:examples
272
+ npm run lint:examples:fix # can automatically fix some errors
273
+ ```
274
+
267
275
### Generating docs
268
276
269
277
We use [ typedoc] ( https://www.npmjs.com/package/typedoc ) to generate the api documentation.
Original file line number Diff line number Diff line change 21
21
"docs" : " typedoc --readme none && touch docs/.nojekyll" ,
22
22
"docs-deploy" : " gh-pages --dotfiles --dist docs" ,
23
23
"docs:test" : " linkinator docs --silent --retry && linkinator doc/*.md --skip http://localhost:3000 --skip http://localhost:9464 --silent --retry" ,
24
- "lint" : " lerna run lint" ,
24
+ "lint" : " lerna run lint && npm run lint:markdown " ,
25
25
"lint:changed" : " lerna run --concurrency 1 --stream lint --since HEAD --exclude-dependents" ,
26
- "lint:fix" : " lerna run lint:fix" ,
26
+ "lint:fix" : " lerna run lint:fix && npm run lint:markdown:fix " ,
27
27
"lint:fix:changed" : " lerna run --concurrency 1 --stream lint:fix --since HEAD --exclude-dependents" ,
28
28
"lint:examples" : " eslint --no-error-on-unmatched-pattern ./examples/**/*.js" ,
29
29
"lint:examples:fix" : " eslint --no-error-on-unmatched-pattern ./examples/**/*.js --fix" ,
You can’t perform that action at this time.
0 commit comments