Skip to content

Commit

Permalink
add linter 💚
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Aug 18, 2022
1 parent e051f39 commit b5d9e74
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": "eslint:recommended",
"env": {
"es2020": true,
"node": true
},
"ignorePatterns": [
"node_modules"
],
"rules": {
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "none",
"ignoreRestSiblings": false
}
]
}
}
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm install

- run: npm run lint
- run: npm test
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@
"websocket-stream": "^5.1.1"
},
"scripts": {
"lint": "eslint .",
"start": "node server.js",
"test": "node test.js",
"prepublishOnly": "npm test"
"prepublishOnly": "npm run lint && npm test"
},
"devDependencies": {
"eslint": "^8.22.0"
}
}

0 comments on commit b5d9e74

Please sign in to comment.