Skip to content

Commit fae8304

Browse files
committed
Add npm script to run linter
1 parent fddbbb7 commit fae8304

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/eslint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
- name: Install modules
1313
run: npm i
1414
- name: Run ESLint on binderhub JS
15-
run: ./node_modules/.bin/eslint binderhub/static/js
15+
run: npm run lint

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
},
2020
"scripts": {
2121
"webpack": "webpack",
22-
"webpack:watch": "webpack --watch"
22+
"webpack:watch": "webpack --watch",
23+
"lint": "eslint binderhub/static/js"
2324
},
2425
"repository": {
2526
"type": "git",

0 commit comments

Comments
 (0)