mirror of https://github.com/portainer/portainer
chore(lint): add lint command (#5106)
parent
f9ffb1a712
commit
bd47bb8cdc
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"go.lintTool": "golangci-lint",
|
||||
"go.lintFlags": ["--fast", "-E", "exportloopref"]
|
||||
}
|
|
@ -34,7 +34,10 @@
|
|||
"start:toolkit": "grunt start:toolkit",
|
||||
"build:server:offline": "cd ./api/cmd/portainer && CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags '-s' && mv -f portainer ../../../dist/portainer",
|
||||
"clean:all": "grunt clean:all",
|
||||
"format": "prettier --loglevel warn --write \"**/*.{js,css,html}\""
|
||||
"format": "prettier --loglevel warn --write \"**/*.{js,css,html}\"",
|
||||
"lint": "yarn lint:client; yarn lint:server",
|
||||
"lint:server": "cd api && golangci-lint run -E exportloopref",
|
||||
"lint:client": "eslint --cache --fix ."
|
||||
},
|
||||
"scriptsComments": {
|
||||
"build": "Build the entire app (backend/frontend) in development mode",
|
||||
|
@ -171,4 +174,4 @@
|
|||
"*.js": "eslint --cache --fix",
|
||||
"*.{js,css,md,html}": "prettier --write"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue