Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 22
- run: npm ci
- run: npm test
- run: npm run build
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build
dist
node_modules
bower_components
.DS_Store
Expand Down
9 changes: 0 additions & 9 deletions babel.config.js

This file was deleted.

4 changes: 2 additions & 2 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
nodejs: 22
pre_build:
commands:
- echo Nothing to do in the pre_build phase...
Expand All @@ -20,5 +20,5 @@ phases:
artifacts:
files:
- '**/*'
base-directory: build
base-directory: dist
name: blaster-$(date +%Y-%m-%d)
50 changes: 29 additions & 21 deletions eslint.config.js → eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,39 +1,42 @@
const js = require("@eslint/js");
const tseslint = require("typescript-eslint");
const jestPlugin = require("eslint-plugin-jest");
const prettierPlugin = require("eslint-plugin-prettier");
const prettierConfig = require("eslint-config-prettier");
const globals = require("globals");
import js from "@eslint/js";
import tseslint from "typescript-eslint";
import prettierRecommended from "eslint-plugin-prettier/recommended";
import globals from "globals";

module.exports = tseslint.config(
export default tseslint.config(
{
ignores: ["dist/**", "coverage/**"],
},
js.configs.recommended,
...tseslint.configs.recommended,
prettierRecommended,
{
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
ecmaVersion: 2018,
sourceType: "module",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
...globals.browser,
...globals.node,
...globals.jest,
...globals.es2021,
},
},
plugins: {
jest: jestPlugin,
prettier: prettierPlugin,
},
rules: {
...prettierConfig.rules,
"prettier/prettier": "error",
indent: "off",
"lines-between-class-members": [
"error",
"always",
{
exceptAfterSingleLine: true,
},
],
"no-case-declarations": 0,
"no-console": 0,
"no-unused-vars": 0,
"no-case-declarations": "off",
"no-console": "off",
"no-unused-vars": "off",
"padding-line-between-statements": [
"error",
{
Expand All @@ -43,7 +46,7 @@ module.exports = tseslint.config(
},
],
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/parameter-properties": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand All @@ -53,6 +56,11 @@ module.exports = tseslint.config(
},
},
{
ignores: ["node_modules", "build", "dist"],
},
files: ["**/*.spec.ts"],
languageOptions: {
globals: {
...globals.vitest,
},
},
}
);
2 changes: 1 addition & 1 deletion src/index.html → index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html class="no-js" lang="en-us"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>blaster game by derduher</title><meta name="description" content="a sideproject by patrick weygand"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="manifest" href="/manifest.json"></head><body><canvas id="tutorial" width="1920" height="1080"></canvas></body></html>
<!DOCTYPE html><html class="no-js" lang="en-us"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>blaster game by derduher</title><meta name="description" content="a sideproject by patrick weygand"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="manifest" href="/manifest.json"></head><body><canvas id="tutorial" width="1920" height="1080"></canvas><script type="module" src="/src/js/main.ts"></script></body></html>
24 changes: 0 additions & 24 deletions jsconfig.json

This file was deleted.

Loading
Loading