Skip to content

Commit 8cfe32e

Browse files
committed
feat(package): add linting scripts
1 parent e225a67 commit 8cfe32e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: templates/app/_package.json

+3
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@
213213
"npm": "^3.9.5"
214214
},
215215
"scripts": {
216+
"lint": "npm run lint:client && npm run lint:server",
217+
"lint:client": "eslint ./client/**/*.<%= scriptExt %> -c ./client/.eslintrc --ignore-pattern *.spec.<%= scriptExt %>",
218+
"lint:server": "eslint ./server/**/*.js -c ./server/.eslintrc --ignore-pattern *.spec.js --ignore-pattern *.integration.js",
216219
"test": "gulp test",
217220
"test:client": "karma start ./karma.conf.js --single-run",
218221
<%_ if(filters.flow) { -%>

0 commit comments

Comments
 (0)