Skip to content

Commit f9f5123

Browse files
authored
chore: add readme and markdown to default lint (#2489)
1 parent a4fcd26 commit f9f5123

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ jobs:
1919
- name: Lint
2020
run: |
2121
npm run lint
22-
npm run lint:markdown
23-
npm run lint:readme

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"clean": "lerna run clean",
1616
"precompile": "tsc --version && npm run version:update",
1717
"version:update": "lerna run version:update",
18-
"lint:readme": "lerna run lint:readme",
1918
"compile": "lerna run compile",
2019
"prewatch": "npm run precompile",
2120
"test": "lerna run test",
@@ -24,12 +23,13 @@
2423
"test-all-versions": "npm run --if-present --workspaces test-all-versions",
2524
"bump": "lerna publish",
2625
"changelog": "lerna-changelog",
27-
"lint": "lerna run lint",
28-
"lint:fix": "lerna run lint:fix",
26+
"lint": "lerna run lint && npm run lint:readme && npm run lint:markdown",
27+
"lint:fix": "lerna run lint:fix && npm run lint:markdown:fix",
2928
"lint:examples": "eslint ./examples/**/*.js",
3029
"lint:examples:fix": "eslint ./examples/**/*.js --fix",
3130
"lint:markdown": "markdownlint-cli2 $(git ls-files '*.md')",
32-
"lint:markdown:fix": "markdownlint-cli2 --fix $(git ls-files '*.md')"
31+
"lint:markdown:fix": "markdownlint-cli2 --fix $(git ls-files '*.md')",
32+
"lint:readme": "lerna run lint:readme"
3333
},
3434
"keywords": [
3535
"opentelemetry",

0 commit comments

Comments
 (0)