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
27 changes: 0 additions & 27 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
- name: Setup Environment
run: cp .env.example .env.local
- name: Install Dependencies
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
- name: Install modules
run: npm install
- name: Run ESLint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
- name: Install Dependencies
run: npm install
- name: Run Unit Tests
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.13.1
24
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.8.1-alpine AS base
FROM node:24-alpine AS base

# Install dependencies only when needed
FROM base AS deps
Expand Down
42 changes: 9 additions & 33 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,38 +1,13 @@
import { defineConfig } from "eslint/config"
import typescriptEslint from "@typescript-eslint/eslint-plugin"
import tsParser from "@typescript-eslint/parser"
import path from "node:path"
import { fileURLToPath } from "node:url"
import js from "@eslint/js"
import { FlatCompat } from "@eslint/eslintrc"
import nextCoreWebVitals from "eslint-config-next/core-web-vitals"
import tseslint from "typescript-eslint"

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
})

export default defineConfig([
const config = [
...nextCoreWebVitals,
js.configs.recommended,
...tseslint.configs.recommended,
{
ignores: ["next-env.d.ts", ".next"],
},
{
extends: [
...compat.extends("next/core-web-vitals"),
...compat.extends("eslint:recommended"),
...compat.extends("plugin:@typescript-eslint/recommended")
],

plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
parser: tsParser,
},

rules: {
"array-callback-return": ["error"],
"no-await-in-loop": ["error"],
Expand All @@ -46,10 +21,11 @@ export default defineConfig([
"no-unreachable-loop": ["error"],
"no-unused-private-class-members": ["error"],
"require-atomic-updates": ["error"],

"@typescript-eslint/no-unused-vars": ["error", {
argsIgnorePattern: "^_",
}],
},
}
])
]

export default config
5 changes: 0 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
// Allows production builds to successfully complete even if it has linting errors.
// This is only OK because we do linting as part of our CI setup.
ignoreDuringBuilds: true,
},
// Output standalone to be used for Docker builds.
output: 'standalone',
}
Expand Down
Loading
Loading