Skip to content

Commit

Permalink
Update node version and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
s25g5d4 committed Jun 16, 2024
1 parent 48c2fdc commit fee84ed
Show file tree
Hide file tree
Showing 71 changed files with 5,773 additions and 7,717 deletions.
13 changes: 12 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"plugins": ["@typescript-eslint", "import", "unused-imports"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
Expand Down Expand Up @@ -30,6 +30,17 @@
}
]
}
],
"no-unused-vars": "off", // or "@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
}
}
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
7 changes: 7 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extensions": ["ts"],
"spec": ["test/**"],
"recursive": true,
"import": ["tsx"],
"require": ["tsconfig-paths/register"]
}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine3.16 AS build-layer
FROM node:20-alpine3.20 AS build-layer

WORKDIR /opt/hinomori-bot
RUN apk add --no-cache python3 make g++
Expand All @@ -13,7 +13,7 @@ RUN npm run lint && \

RUN npm prune --production

FROM node:16-alpine3.16 AS service-layer
FROM node:20-alpine3.20 AS service-layer

WORKDIR /opt/hinomori-bot
COPY --from=build-layer /opt/hinomori-bot/package.json .
Expand Down
Loading

0 comments on commit fee84ed

Please sign in to comment.