diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fdf521d3e3..4d9a1bda84 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,5 +19,3 @@ jobs: - name: Lint run: | npm run lint - npm run lint:markdown - npm run lint:readme diff --git a/package.json b/package.json index f0daf35bfc..dfee7ad5aa 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "clean": "lerna run clean", "precompile": "tsc --version && npm run version:update", "version:update": "lerna run version:update", - "lint:readme": "lerna run lint:readme", "compile": "lerna run compile", "prewatch": "npm run precompile", "test": "lerna run test", @@ -24,12 +23,13 @@ "test-all-versions": "npm run --if-present --workspaces test-all-versions", "bump": "lerna publish", "changelog": "lerna-changelog", - "lint": "lerna run lint", - "lint:fix": "lerna run lint:fix", + "lint": "lerna run lint && npm run lint:readme && npm run lint:markdown", + "lint:fix": "lerna run lint:fix && npm run lint:markdown:fix", "lint:examples": "eslint ./examples/**/*.js", "lint:examples:fix": "eslint ./examples/**/*.js --fix", "lint:markdown": "markdownlint-cli2 $(git ls-files '*.md')", - "lint:markdown:fix": "markdownlint-cli2 --fix $(git ls-files '*.md')" + "lint:markdown:fix": "markdownlint-cli2 --fix $(git ls-files '*.md')", + "lint:readme": "lerna run lint:readme" }, "keywords": [ "opentelemetry",