@fastify/aws-lambda
Version:
Inspired by aws-serverless-express to work with Fastify with inject functionality.
33 lines (29 loc) • 706 B
JavaScript
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
}
}]