Skip to content

Commit a2fce04

Browse files
committed
feat(package): add separate client lint script for TS
1 parent 24b6144 commit a2fce04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: templates/app/_package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@
214214
},
215215
"scripts": {
216216
"lint": "npm run lint:client && npm run lint:server",
217-
"lint:client": "eslint ./client/**/*.<%= scriptExt %> -c ./client/.eslintrc --ignore-pattern *.spec.<%= scriptExt %>",
217+
<%_ if(filters.babel) { -%>
218+
"lint:client": "eslint ./client/**/*.<%= scriptExt %> -c ./client/.eslintrc --ignore-pattern *.spec.<%= scriptExt %>",<% } else { %>
219+
"lint:client": "tslint --format verbose ./client/{**/**,**}/*.ts",<% } %>
218220
"lint:server": "eslint ./server/**/*.js -c ./server/.eslintrc --ignore-pattern *.spec.js --ignore-pattern *.integration.js",
219221
"test": "gulp test",
220222
"test:client": "karma start ./karma.conf.js --single-run",

0 commit comments

Comments
 (0)