Skip to content

Commit

Permalink
chore(deps): update dependency eslint to v9 (#712)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency eslint to v9

* feat: node22 and new eslint config

Signed-off-by: Promise <me@promise.solutions>

---------

Signed-off-by: Promise <me@promise.solutions>
Signed-off-by: Glenn <me@promise.solutions>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Promise <me@promise.solutions>
  • Loading branch information
renovate[bot] and promise authored Dec 10, 2024
1 parent 0a85735 commit 7d40850
Show file tree
Hide file tree
Showing 27 changed files with 4,299 additions and 3,518 deletions.
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": [
"github>promise/renovate-config",
"github>promise/renovate-config:force-node-version(18)",
"github>promise/renovate-config:force-node-version(22)",
"github>promise/renovate-config:force-mongo-version(4)"
]
}
3 changes: 2 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Set up node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Set up node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.20.5
22.12.0
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine@sha256:6eb9c3d9bd191bd2cc6ce7ec3d5ec4c2127616140c8586af96a6bec8f28689d1 AS base
FROM node:22-alpine AS base
RUN apk --no-cache add g++ gcc make python3

WORKDIR /app
Expand All @@ -8,11 +8,11 @@ ENV IS_DOCKER=true
# install prod dependencies

FROM base AS deps
RUN npm install -g pnpm@8

COPY package.json ./
COPY pnpm-lock.yaml ./
RUN corepack enable pnpm

COPY pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --prod


Expand Down
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "eslint-config-promise";
22 changes: 8 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,42 +32,36 @@
"dependencies": {
"@sapphire/type": "2.5.1",
"@typegoose/typegoose": "12.9.1",
"bufferutil": "4.0.8",
"dedent": "1.5.3",
"discord.js": "14.16.3",
"dotenv": "16.4.7",
"friendly-words": "1.3.1",
"match-sorter": "8.0.0",
"mongoose": "8.8.4",
"winston": "3.17.0",
"winston-daily-rotate-file": "5.0.0"
"winston-daily-rotate-file": "5.0.0",
"zlib-sync": "0.1.9"
},
"devDependencies": {
"@tsconfig/node18": "18.2.4",
"@tsconfig/node22": "22.0.0",
"@tsconfig/strictest": "2.0.5",
"@types/friendly-words": "1.2.2",
"@types/jest": "29.5.14",
"@types/node": "18.19.67",
"eslint": "8.57.1",
"@types/node": "22.10.1",
"eslint": "9.16.0",
"eslint-config-promise": "github:promise/eslint-config",
"jest": "29.7.0",
"ts-jest": "29.2.5",
"typescript": "5.7.2"
},
"optionalDependencies": {
"bufferutil": "4.0.8",
"erlpack": "github:discord/erlpack",
"utf-8-validate": "6.0.5",
"zlib-sync": "0.1.9"
},
"eslintConfig": {
"extends": "promise"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"testPathIgnorePatterns": [
"<rootDir>/build/",
"<rootDir>/node_modules/"
]
}
},
"packageManager": "pnpm@9.15.0"
}
Loading

0 comments on commit 7d40850

Please sign in to comment.