Skip to content

Commit

Permalink
Support eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed Dec 10, 2024
1 parent 0725977 commit b442eca
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/eslint-config/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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")];

0 comments on commit b442eca

Please sign in to comment.