Skip to content

Commit

Permalink
Merge pull request #30 from delta10/chore/eslint-9-upgrade
Browse files Browse the repository at this point in the history
Fix: eslint 9 upgrade, migration from eslintrc to eslint.config.mjs
  • Loading branch information
justiandevs authored Oct 23, 2024
2 parents 9b278fb + ba144b8 commit 70d807c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .eslintrc.json

This file was deleted.

13 changes: 13 additions & 0 deletions 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("next/core-web-vitals", "plugin:prettier/recommended")];

0 comments on commit 70d807c

Please sign in to comment.