diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d72b85f1e74..66d16a81bb2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -71,7 +71,10 @@ jobs: - script: | set -e export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" - yarn lint + yarn -s run code-lint --format junit > junit.xml + yarn schema-lint + yarn type-lint + yarn special-lint displayName: "Run linting" - task: PublishTestResults@2 inputs: diff --git a/package.json b/package.json index 79e95f09ac6..d322f2a6ce1 100644 --- a/package.json +++ b/package.json @@ -121,7 +121,7 @@ "pretest": "yarn lint", "prelint": "yarn setup", "lint": "yarn code-lint && yarn schema-lint && yarn type-lint && yarn special-lint", - "code-lint": "eslint --format junit --cache \"{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.js\" \"test/*.js\" \"test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js\" \"examples/**/webpack.config.js\" > junit.xml", + "code-lint": "eslint --cache \"{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.js\" \"test/*.js\" \"test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js\" \"examples/**/webpack.config.js\"", "type-lint": "tsc --pretty", "special-lint": "node tooling/inherit-types && node tooling/format-schemas && node tooling/compile-to-definitions", "special-lint-fix": "node tooling/inherit-types --write --override && node tooling/format-schemas --write && node tooling/compile-to-definitions --write",