From b442eca0bf3af779bab5d528110316b1feaab8c9 Mon Sep 17 00:00:00 2001 From: Carlos Palhares Date: Tue, 10 Dec 2024 17:17:29 -0300 Subject: [PATCH] Support eslint 9 --- packages/eslint-config/eslint.config.mjs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/eslint-config/eslint.config.mjs diff --git a/packages/eslint-config/eslint.config.mjs b/packages/eslint-config/eslint.config.mjs new file mode 100644 index 00000000..4a828f9b --- /dev/null +++ b/packages/eslint-config/eslint.config.mjs @@ -0,0 +1,13 @@ +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("@powerhome/eslint-config/base")]; \ No newline at end of file