From 1827128540a627e7397f1a8e69f58751b673d306 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 18 Jul 2019 11:33:31 -0400 Subject: [PATCH] fix lint error fix lint error ``` PS> npm run lint > express-typescript-starter@0.1.0 lint C:\Users\JipingWang\source\repos\api > tsc --noEmit && eslint '*/**/*.{js,ts}' --quiet --fix Oops! Something went wrong! :( ESLint: 5.16.0. No files matching the pattern "'*/**/*.{js,ts}'" were found. Please check for typing mistakes in the pattern. npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! express-typescript-starter@0.1.0 lint: `tsc --noEmit && eslint '*/**/*.{js,ts}' --quiet --fix` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the express-typescript-starter@0.1.0 lint script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\JipingWang\AppData\Roaming\npm-cache\_logs\2019-07-18T15_26_05_580Z-debug.log ``` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 597056e..faa0e76 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "watch-ts": "tsc -w", "build-sass": "node-sass src/public/css/main.scss dist/public/css/main.css", "watch-sass": "node-sass -w src/public/css/main.scss dist/public/css/main.css", - "lint": "tsc --noEmit && eslint '*/**/*.{js,ts}' --quiet --fix", + "lint": "tsc --noEmit && eslint \"*/**/*.{js,ts}\" --quiet --fix", "copy-static-assets": "ts-node copyStaticAssets.ts", "debug": "npm run build && npm run watch-debug", "serve-debug": "nodemon --inspect dist/server.js",