Skip to content

Commit

Permalink
Merge pull request #8334 from webpack/bugfix/lint
Browse files Browse the repository at this point in the history
move azure specific commands to azure-pipelines.yml
  • Loading branch information
sokra committed Nov 5, 2018
2 parents 290094e + 36eb0bb commit af123a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion azure-pipelines.yml
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit af123a8

Please sign in to comment.