Skip to content

Commit 7db69e3

Browse files
committed
husky auto eslint linting
1 parent 5252ef8 commit 7db69e3

File tree

6 files changed

+210
-55
lines changed

6 files changed

+210
-55
lines changed

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
"lint:fix": "eslint --fix src/",
1313
"postinstall": "node src/postinstall.js"
1414
},
15+
"husky": {
16+
"hooks": {
17+
"pre-commit": "npm run lint:fix",
18+
"pre-push": "npm run lint:fix"
19+
}
20+
},
1521
"dependencies": {
1622
"@msgpack/msgpack": "^2.4.1",
1723
"@tweenjs/tween.js": "^18.6.4",
@@ -57,6 +63,7 @@
5763
"eslint-plugin-prettier": "^3.3.1",
5864
"exports-loader": "^2.0.0",
5965
"file-loader": "^6.2.0",
66+
"husky": "^5.1.3",
6067
"node-sass": "^5.0.0",
6168
"postcss-loader": "^3.0.0",
6269
"prettier": "^2.2.1",

src/client/scripts/AssetLoader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class AssetLoader {
2020
var assetsLoaded = 0;
2121

2222
for (const assetName in assets) {
23+
// eslint-disable-next-line no-prototype-builtins
2324
if (!assets.hasOwnProperty(assetName)) continue;
2425

2526
let asset = assets[assetName];

src/client/scripts/Chat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Chat {
44
this.chatDiv = document.querySelector(".chat");
55
this.listen();
66
this.history = [""];
7-
this.histState = 0;
7+
this.histState = 0 ;
88
}
99

1010
chatGoBack() {

src/client/scripts/DistanceBasedFog.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class DistanceBasedFog {
66
this.view = new THREE.Vector3();
77
this.farnear = new THREE.Vector2();
88
this.color = new THREE.Vector4();
9-
109
}
1110

1211
update() {

0 commit comments

Comments
 (0)