Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Jan 21, 2025
1 parent 2be7a83 commit 9dcc6f3
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 26 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

15 changes: 0 additions & 15 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
32 changes: 32 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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
}
}]
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion performanceTest/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

0 comments on commit 9dcc6f3

Please sign in to comment.