mirror of https://github.com/webpack/webpack.git
add special linting to CI and to yarn fix
This commit is contained in:
parent
cf5f1d723c
commit
7147f4c3e9
|
|
@ -116,10 +116,12 @@
|
|||
"build:examples": "cd examples && node buildAll.js",
|
||||
"pretest": "yarn lint",
|
||||
"prelint": "yarn setup",
|
||||
"lint": "yarn code-lint && yarn schema-lint && yarn type-lint",
|
||||
"lint": "yarn code-lint && yarn schema-lint && yarn type-lint && yarn special-lint",
|
||||
"code-lint": "eslint --cache setup lib bin hot buildin benchmark tooling \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\"",
|
||||
"type-lint": "tsc --pretty",
|
||||
"fix": "yarn code-lint --fix",
|
||||
"special-lint": "node tooling/inherit-types && node tooling/format-file-header",
|
||||
"special-lint-fix": "node tooling/inherit-types --write --override && node tooling/format-file-header --write",
|
||||
"fix": "yarn code-lint --fix && yarn special-lint-fix",
|
||||
"pretty": "prettier --write --loglevel warn \"setup/**/*.js\" \"lib/**/*.js\" \"bin/*.js\" \"hot/*.js\" \"buildin/*.js\" \"benchmark/**/*.js\" \"tooling/*.js\" \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\" \"declarations.d.ts\" \"tsconfig.json\"",
|
||||
"schema-lint": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.lint.js\" --no-verbose",
|
||||
"benchmark": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.benchmark.js\" --runInBand",
|
||||
|
|
|
|||
Loading…
Reference in New Issue