From 3be8f4e2e528632aa99dda53390a5fd8eae7e7c0 Mon Sep 17 00:00:00 2001 From: Luca Del Puppo Date: Thu, 8 Jan 2026 18:37:48 +0100 Subject: [PATCH 1/3] refactor(eslint): simplify ESLint configuration and remove unused plugins --- eslint.config.mjs | 51 +++++++++++++++++++++-------------------------- package.json | 6 +----- 2 files changed, 24 insertions(+), 33 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index c74b313..28d929e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,32 +1,27 @@ -import path from 'node:path' -import { fileURLToPath } from 'node:url' import js from '@eslint/js' -import { FlatCompat } from '@eslint/eslintrc' +import { defineConfig } from 'eslint/config' +import neostandard from 'neostandard' -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([ + js.configs.recommended, + neostandard({ + ignores: neostandard.resolveIgnoresFromGitignore() + }), + { + languageOptions: { + globals: { + describe: false, + it: false, + before: false, + after: false, + beforeEach: false, + afterEach: false + } + }, -export default [{ - ignores: ['node_modules'] -}, ...compat.extends('standard'), { - languageOptions: { - globals: { - describe: false, - it: false, - before: false, - after: false, - beforeEach: false, - afterEach: false + rules: { + 'array-bracket-spacing': 0, + 'dot-notation': 0 } - }, - - rules: { - 'array-bracket-spacing': 0, - 'dot-notation': 0 - } -}] + }] +) diff --git a/package.json b/package.json index 3efa8d0..843d79b 100644 --- a/package.json +++ b/package.json @@ -50,13 +50,9 @@ "aws-serverless-fastify": "^3.1.0", "benchmark": "^2.1.4", "eslint": "^9.18.0", - "eslint-config-standard": "^17.1.0", - "eslint-plugin-import": "^2.31.0", - "eslint-plugin-n": "^17.15.1", - "eslint-plugin-promise": "^7.2.1", - "eslint-plugin-standard": "^5.0.0", "fast-glob": "^3.3.3", "fastify": "^5.2.1", + "neostandard": "^0.12.2", "serverless-http": "^4.0.0", "tsd": "^0.33.0" }, From 84bf67a40ac7808eebb45b77f056e013a3d05b15 Mon Sep 17 00:00:00 2001 From: Luca Del Puppo Date: Thu, 8 Jan 2026 18:38:35 +0100 Subject: [PATCH 2/3] chore(deps): update dependencies for @fastify/multipart, aws-serverless-fastify, eslint, and fastify --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 843d79b..9cbae78 100644 --- a/package.json +++ b/package.json @@ -42,16 +42,16 @@ "devDependencies": { "@eslint/eslintrc": "3.3.3", "@eslint/js": "9.39.2", - "@fastify/multipart": "^9.0.2", + "@fastify/multipart": "^9.3.0", "@h4ad/serverless-adapter": "4.4.0", "@types/aws-lambda": "8.10.159", "@types/node": "^25.0.3", "aws-serverless-express": "^3.4.0", - "aws-serverless-fastify": "^3.1.0", + "aws-serverless-fastify": "^3.1.3", "benchmark": "^2.1.4", - "eslint": "^9.18.0", + "eslint": "^9.39.2", "fast-glob": "^3.3.3", - "fastify": "^5.2.1", + "fastify": "^5.6.2", "neostandard": "^0.12.2", "serverless-http": "^4.0.0", "tsd": "^0.33.0" From 7461214990870483fa7b04f83404ea93bbd4439f Mon Sep 17 00:00:00 2001 From: Luca Del Puppo Date: Thu, 8 Jan 2026 18:40:33 +0100 Subject: [PATCH 3/3] refactor(eslint): remove unused language options from ESLint configuration --- eslint.config.mjs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 28d929e..a07cec0 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -8,17 +8,6 @@ export default defineConfig([ ignores: neostandard.resolveIgnoresFromGitignore() }), { - languageOptions: { - globals: { - describe: false, - it: false, - before: false, - after: false, - beforeEach: false, - afterEach: false - } - }, - rules: { 'array-bracket-spacing': 0, 'dot-notation': 0