Skip to content

Commit

Permalink
🔧 Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rootasjey committed Jul 20, 2020
1 parent 774f42b commit a4b2c85
Show file tree
Hide file tree
Showing 7 changed files with 783 additions and 105 deletions.
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# don't ever lint node_modules
node_modules
# don't lint build output (make sure it's set to your correct build folder name)
dist
# don't lint nyc coverage output
coverage
# config
.eslintrc.js
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
root: true,
env: {
browser: true,
amd: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
plugins: [
'@typescript-eslint',
],
rules: {
'@typescript-eslint/restrict-template-expressions': [0],
'@typescript-eslint/semi': [0],
'@typescript-eslint/space-before-function-paren': [0],
'@typescript-eslint/strict-boolean-expressions': [0],
'@typescript-eslint/quotes': [1],
'comma-dangle': [1, 'always-multiline'],
'padded-blocks': [0]
},
extends: 'standard-with-typescript',
}
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,27 @@
"start": "snowpack dev",
"build": "snowpack build",
"format": "prettier --write 'src/**/*.js'",
"lint": "prettier --check 'src/**/*.js'",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"test": "ava",
"test:watch": "ava --watch"
},
"prettier": {
"printWidth": 140
},
"dependencies": {
"pathfinding": "0.4.18",
"phaser": "3.24.1"
},
"devDependencies": {
"@types/pathfinding": "0.0.4",
"@typescript-eslint/eslint-plugin": "3.6.1",
"@typescript-eslint/parser": "3.6.1",
"ava": "3.10.1",
"prettier": "2.0.5",
"eslint": "7.5.0",
"eslint-config-standard-with-typescript": "18.0.2",
"eslint-plugin-import": "2.22.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-standard": "4.0.1",
"snowpack": "2.0.0",
"ts-node": "8.10.2",
"tslint": "6.1.2",
"typescript": "3.9.7"
},
"ava": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Phaser from "phaser";
import Phaser from 'phaser';

import BootScene from './scenes/boot';
import MenuScene from './scenes/menu';
import PlayScene from './scenes/play';

import { Game } from './gameObjects/Game';

window.addEventListener("load", () => {
window.addEventListener('load', () => {
Game.instance = new Phaser.Game({
// See <https://github.com/photonstorm/phaser/blob/master/src/boot/Config.js>
scale: {
Expand Down
31 changes: 16 additions & 15 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "node",
"noImplicitAny": true,
"noImplicitThis": true,
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"target": "es2018"
},
"include": [
"./src/**/*",
"./tests",
"./typings"
]
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "node",
"noImplicitAny": true,
"noImplicitThis": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"sourceMap": true,
"strict": true,
"target": "es2018"
},
"include": [
"./src/**/*",
"./tests",
"./typings"
]
}
25 changes: 0 additions & 25 deletions tslint.json

This file was deleted.

Loading

0 comments on commit a4b2c85

Please sign in to comment.