Skip to content

Commit 3c57f6a

Browse files
committed
Bump dependencies (v1.7.0)
- Node v22 is now the minimum supported version. - The project now has no required dependencies. - Fixed a regression with computing the chop value.
1 parent 4b27e79 commit 3c57f6a

12 files changed

+759
-717
lines changed

.eslintrc.json

-49
This file was deleted.

.github/workflows/node.js.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v4
2121
with:
22-
node-version: '20.x'
22+
node-version: '22.x'
2323
cache: 'npm'
2424
- run: npm ci
2525
- run: npm run lint

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ A game played at H-Group level 5 can be seen [here](https://github.com/WillFlame
2020
If you're interested in understanding how the bot works, I've written [some documentation](https://docs.google.com/document/d/1JMXtNnv3Bw_4Lf6uW_KIllp-Eb7d2wqa_vFaPJzWbDw/edit?usp=sharing).
2121

2222
## Running locally
23-
- You'll need to have NodeJS v20 or above. You can download it [here](https://nodejs.org/en/download/).
23+
- You'll need to have NodeJS v22 or above. You can download it [here](https://nodejs.org/en/download/).
2424
- Clone the repository to your own computer. There are lots of tutorials online on using Git if you don't know how that works.
25-
- Navigate to the cloned repository in a terminal and run `npm install` to install required dependencies.
25+
- Navigate to the cloned repository in a terminal. This project has no required dependencies, so `npm install` is only needed if you plan to develop locally.
2626
- If you want to run on an alternate hanabi-live server, export the server hostname as `HANABI_HOSTNAME`.
2727
- Export the environment variables `HANABI_USERNAME` and `HANABI_PASSWORD` for the bot to log in.
2828
- You'll need to create its account on hanab.live first.

eslint.config.mjs

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// import jsdoc from "eslint-plugin-jsdoc";
2+
import globals from "globals";
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
import js from "@eslint/js";
6+
import { FlatCompat } from "@eslint/eslintrc";
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
const compat = new FlatCompat({
11+
baseDirectory: __dirname,
12+
recommendedConfig: js.configs.recommended,
13+
allConfig: js.configs.all
14+
});
15+
16+
export default [{
17+
ignores: ["src/hanabi-bot.js"],
18+
}, ...compat.extends("eslint:recommended", "plugin:jsdoc/recommended"), {
19+
// plugins: {
20+
// jsdoc,
21+
// },
22+
languageOptions: {
23+
globals: {
24+
...globals.node,
25+
...globals.commonjs,
26+
},
27+
ecmaVersion: "latest",
28+
sourceType: "module",
29+
},
30+
settings: {
31+
jsdoc: {
32+
tagNamePreference: {
33+
augments: "extends",
34+
},
35+
},
36+
},
37+
rules: {
38+
"indent": ["error", "tab", { SwitchCase: 1, ignoredNodes: ["ConditionalExpression"] }],
39+
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
40+
"semi": "error",
41+
"eol-last": "warn",
42+
"no-trailing-spaces": ["warn", { ignoreComments: true }],
43+
"prefer-const": "warn",
44+
"curly": ["warn", "multi-or-nest", "consistent"],
45+
"jsdoc/require-jsdoc": "off",
46+
"jsdoc/require-property-description": "off",
47+
"jsdoc/require-param-description": "off",
48+
"jsdoc/require-returns-description": "off",
49+
"jsdoc/require-returns": "off",
50+
"jsdoc/require-returns-type": "off",
51+
"jsdoc/tag-lines": "off",
52+
"jsdoc/no-undefined-types": "warn",
53+
"jsdoc/check-property-names": "off",
54+
"jsdoc/valid-types": "off"
55+
}
56+
}];

0 commit comments

Comments
 (0)