diff --git a/eslint.config.mjs b/eslint.config.mjs index 4bd0214..cd75fea 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,22 +1,25 @@ -import globals from "globals"; -import path from "node:path"; -import { fileURLToPath } from "node:url"; -import js from "@eslint/js"; -import { FlatCompat } from "@eslint/eslintrc"; +import globals from 'globals' +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 __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) const compat = new FlatCompat({ - baseDirectory: __dirname, - recommendedConfig: js.configs.recommended, - allConfig: js.configs.all -}); + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, + allConfig: js.configs.all, +}) -export default [...compat.extends("@haraka"), { +export default [ + ...compat.extends('@haraka'), + { languageOptions: { - globals: { - ...globals.node, - ...globals.mocha, - }, + globals: { + ...globals.node, + ...globals.mocha, + }, }, -}]; \ No newline at end of file + }, +] diff --git a/package.json b/package.json index 38e6ea9..1f1bbf9 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ }, "scripts": { "format": "npm run prettier:fix && npm run lint:fix", - "lint": "npx eslint@^8 *.js lib test test/*/*.js", - "lint:fix": "npx eslint@^8 *.js lib test test/*/*.js --fix", + "lint": "npx eslint *.js lib test test/*/*.js", + "lint:fix": "npx eslint *.js lib test test/*/*.js --fix", "prettier": "npx prettier . --check", "prettier:fix": "npx prettier . --write --log-level=warn", "test": "npx mocha@10 test test/readers",