diff --git a/eslint.config.mjs b/eslint.config.mjs index c74b313..a07cec0 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,32 +1,16 @@ -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 [{ - ignores: ['node_modules'] -}, ...compat.extends('standard'), { - languageOptions: { - globals: { - describe: false, - it: false, - before: false, - after: false, - beforeEach: false, - afterEach: false +export default defineConfig([ + js.configs.recommended, + neostandard({ + ignores: neostandard.resolveIgnoresFromGitignore() + }), + { + 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..9cbae78 100644 --- a/package.json +++ b/package.json @@ -42,21 +42,17 @@ "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-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", + "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" },