fix(lint): comment out npm install command in ESLint class

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-02-07 16:21:26 +08:00
parent 5a718aa45d
commit b2eaf0481c

View File

@ -22,7 +22,7 @@ class ESLint extends LinterBase {
def doLint() { def doLint() {
steps.dir(workspace) { steps.dir(workspace) {
steps.log.info("${linterType.linter}", "Install eslint dependencies...") steps.log.info("${linterType.linter}", "Install eslint dependencies...")
steps.sh("npm install --save-dev ${deps.join(' ')}") // steps.sh("npm install --save-dev ${deps.join(' ')}")
steps.log.info("${linterType.linter}", "Running eslint...") steps.log.info("${linterType.linter}", "Running eslint...")
steps.sh("eslint --config ${configs} ${workspace}") steps.sh("eslint --config ${configs} ${workspace}")
} }