Skip to content

Commit

Permalink
dep(eslint): upgrade to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jan 26, 2025
1 parent a599cf1 commit 8879d11
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .eslintrc.yaml

This file was deleted.

39 changes: 39 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import haraka from "eslint-plugin-haraka";
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 compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends("eslint:recommended", "plugin:haraka/recommended"), {
plugins: {
haraka,
},

languageOptions: {
globals: {
...globals.node,
...globals.mocha,
OK: true,
CONT: true,
DENY: true,
DENYSOFT: true,
DENYDISCONNECT: true,
DENYSOFTDISCONNECT: true,
},
},

rules: {
indent: ["error", 2, {
SwitchCase: 1,
}],
},
}];

0 comments on commit 8879d11

Please sign in to comment.