Yarn run commands in local JS environment (#2118)

Ensures that the JS environment specified in the repo is used when running the tools.
This commit is contained in:
Zachary Wasserman 2019-10-19 13:49:48 -07:00 committed by GitHub
parent adf87140a7
commit 75c79efd3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,13 +113,13 @@ fleetctl: .prefix .pre-build .pre-fleetctl
go build -i -o build/fleetctl -ldflags ${KIT_VERSION} ./cmd/fleetctl
lint-js:
eslint frontend --ext .js,.jsx
yarn run eslint frontend --ext .js,.jsx
lint-ts:
tslint frontend/**/*.tsx frontend/**/*.ts
yarn run tslint frontend/**/*.tsx frontend/**/*.ts
lint-scss:
sass-lint --verbose
yarn run sass-lint --verbose
lint-go:
go vet ./...