diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 30bc162..0000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -/node_modules \ No newline at end of file diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 02f957f..0000000 --- a/.eslintrc +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "standard", - "globals": { - "describe": false, - "it": false, - "before": false, - "after": false, - "beforeEach": false, - "afterEach": false - }, - "rules": { - "array-bracket-spacing": 0, - "dot-notation": 0 - } -} \ No newline at end of file diff --git a/LICENSE b/LICENSE index 7fda3c4..e9edc7c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Fastify +Copyright (c) 2025 Fastify Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..c74b313 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,32 @@ +import path from 'node:path' +import { fileURLToPath } from 'node:url' +import js from '@eslint/js' +import { FlatCompat } from '@eslint/eslintrc' + +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 + } + }, + + rules: { + 'array-bracket-spacing': 0, + 'dot-notation': 0 + } +}] diff --git a/package.json b/package.json index 3951202..4340724 100644 --- a/package.json +++ b/package.json @@ -40,23 +40,25 @@ "postversion": "git push && git push --tags" }, "devDependencies": { - "@fastify/multipart": "^9.0.0", - "@fastify/pre-commit": "^2.1.0", + "@eslint/eslintrc": "3.2.0", + "@eslint/js": "9.18.0", + "@fastify/multipart": "^9.0.2", + "@fastify/pre-commit": "^2.2.0", "@h4ad/serverless-adapter": "4.4.0", "@types/aws-lambda": "8.10.147", "aws-serverless-express": "^3.4.0", "aws-serverless-fastify": "^3.1.0", "benchmark": "^2.1.4", - "eslint": "^9.11.0", + "eslint": "^9.18.0", "eslint-config-standard": "^17.1.0", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-n": "^17.10.3", - "eslint-plugin-promise": "^7.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", - "fastify": "^5.0.0", + "fastify": "^5.2.1", "serverless-http": "^3.2.0", "tap": "^16.3.9", - "tsd": "^0.31.0" + "tsd": "^0.31.2" }, "publishConfig": { "access": "public" diff --git a/performanceTest/test.js b/performanceTest/test.js index 01a46aa..5a0f8c7 100644 --- a/performanceTest/test.js +++ b/performanceTest/test.js @@ -93,6 +93,6 @@ suite }) .on('complete', function () { console.log('Fastest is ' + this.filter('fastest').map('name')) - process.exit(0) // eslint-disable-line no-process-exit + process.exit(0) }) .run({ async: true })