Skip to content

Commit 872cfb8

Browse files
committed
eslint
1 parent e7b31da commit 872cfb8

27 files changed

+961
-158
lines changed

.eslintrc.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:prettier/recommended"
5+
],
6+
"env": {
7+
"es6": true,
8+
"node": true
9+
},
10+
"parserOptions": {
11+
"ecmaVersion": 8
12+
}
13+
};

package-lock.json

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

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"build": "cd src/client && webpack --config webpack.prod.js",
88
"prebuild": "node src/prebuild.js",
99
"clean": "rimraf src/client/dist/*",
10-
"items": "node src/itemDump.js"
10+
"items": "node src/itemDump.js",
11+
"lint": "eslint src/**/*.js",
12+
"lint:fix": "eslint --fix src/**/*.js"
1113
},
1214
"dependencies": {
1315
"@tweenjs/tween.js": "^18.6.4",
@@ -40,15 +42,22 @@
4042
"worker-loader": "^3.0.7"
4143
},
4244
"devDependencies": {
45+
"@types/node": "^14.14.28",
4346
"autoprefixer": "^9.0.0",
4447
"copy-webpack-plugin": "^6.3.1",
4548
"css-loader": "^5.0.1",
49+
"eslint": "^7.20.0",
50+
"eslint-config-prettier": "^7.2.0",
51+
"eslint-plugin-prettier": "^3.3.1",
4652
"exports-loader": "^2.0.0",
4753
"file-loader": "^6.2.0",
4854
"node-sass": "^5.0.0",
4955
"postcss-loader": "^3.0.0",
56+
"prettier": "^2.2.1",
5057
"sass-loader": "^10.1.1",
5158
"style-loader": "^2.0.0",
59+
"ts-loader": "^8.0.17",
60+
"typescript": "^4.1.5",
5261
"webpack": "^5.9.0",
5362
"webpack-cli": "^4.2.0",
5463
"webpack-node-externals": "^2.5.2"

src/atlasCreator.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// Generated by CoffeeScript 2.5.1
2-
(function() {
1+
32
var AtlasCreator, Canvas, fs, path;
43

54
path = require("path");
@@ -141,4 +140,3 @@
141140

142141
module.exports = AtlasCreator;
143142

144-
}).call(this);

src/client/scripts/AssetLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by CoffeeScript 2.5.1
1+
22
var AssetLoader;
33

44
import * as THREE from "three";

src/client/scripts/BlockBreak.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Generated by CoffeeScript 2.5.1
21
var BlockBreak;
32

43
import * as THREE from "three";

src/client/scripts/BlockPlace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by CoffeeScript 2.5.1
1+
22
var BlockPlace;
33

44
BlockPlace = class BlockPlace {

src/client/scripts/Chat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by CoffeeScript 2.5.1
1+
22
var Chat;
33

44
Chat = class Chat {

src/client/scripts/DistanceBasedFog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by CoffeeScript 2.5.1
1+
22
var DistanceBasedFog;
33

44
import * as THREE from "three";

src/client/scripts/Entities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by CoffeeScript 2.5.1
1+
22
var Entities;
33

44
import * as THREE from 'three';

0 commit comments

Comments
 (0)