Skip to content

Commit

Permalink
chore: upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
Zielak committed Nov 5, 2023
1 parent 95d3cee commit eddcaa8
Show file tree
Hide file tree
Showing 65 changed files with 2,823 additions and 14,662 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2.1
executors:
my-executor:
docker:
- image: cimg/node:16.16.0
- image: cimg/node:20.9.0

jobs:
install:
Expand Down
11 changes: 10 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,20 @@ module.exports = {
},
},
{
files: ["*.test.ts", "*.test.tsx"],
files: ["**/__test__/**/*.ts", "*.test.ts", "*.test.tsx"],
extends: ["plugin:jest/recommended"],
rules: {
"no-empty": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-unsafe-declaration-merging": "off",
"@typescript-eslint/explicit-function-return-type": "off",
},
},
{
files: ["examples/**/*.ts"],
extends: ["plugin:jest/recommended"],
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
20
2 changes: 1 addition & 1 deletion docs/src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const FeatureList: FeatureItem[] = [
},
]

function Feature({ title, Svg, description }: FeatureItem) {
function Feature({ title, Svg, description }: FeatureItem): JSX.Element {
return (
<div className={clsx("col col--6")}>
<div className="text--center">
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import React from "react"

import styles from "./index.module.css"

function HomepageHeader() {
function HomepageHeader(): JSX.Element {
const { siteConfig } = useDocusaurusContext()
return (
<header className={clsx("hero hero--primary", styles.heroBanner)}>
Expand Down
2 changes: 1 addition & 1 deletion examples/server-ts/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { WebSocketTransport } from "@colyseus/ws-transport"
import express from "express"

import { exitHandler } from "./exitHandler"
import WarGame from "./game/room"
import { WarGame } from "./game/room"

const { key, cert } = certs()

Expand Down
4 changes: 2 additions & 2 deletions examples/server-ts/src/game/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PickCard } from "./actions"
import { JustPlayGoal } from "./bot"
import { WarState } from "./state"

export default defineRoom<WarState>("WarGame", {
export const WarGame = defineRoom<WarState>("WarGame", {
stateConstructor: WarState,
variantDefaults: {
anteRatio: 0.5,
Expand Down Expand Up @@ -38,7 +38,7 @@ export default defineRoom<WarState>("WarGame", {
new entities.Deck(state, {
parent: container,
name: `player${player.name}Deck`,
})
}),
)

// A Pile container, to hold all currently played cards
Expand Down
Loading

0 comments on commit eddcaa8

Please sign in to comment.