Improved portability of lint scripts (#1612)

* Double quote globs since single quotes don't work on all shells
* Drop `find` and just use a glob pattern; `find` is a nix utility while this works everywhere
This commit is contained in:
XhmikosR 2020-04-17 11:00:23 +03:00 committed by GitHub
parent 65796a5893
commit 314e88af6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,8 +27,8 @@
"build": "npm run clean && npx webpack --mode production", "build": "npm run clean && npx webpack --mode production",
"clean": "npx rimraf material", "clean": "npx rimraf material",
"lint": "npm run lint:ts && npm run lint:scss", "lint": "npm run lint:ts && npm run lint:scss",
"lint:scss": "npx stylelint `find src/assets -name *.scss`", "lint:scss": "npx stylelint \"src/assets/**/*.scss\"",
"lint:ts": "npx tslint -p tsconfig.json 'src/**/*.ts'", "lint:ts": "npx tslint -p tsconfig.json \"src/**/*.ts\"",
"start": "npx webpack --mode development --watch" "start": "npx webpack --mode development --watch"
}, },
"dependencies": { "dependencies": {