Skip to content

Commit

Permalink
refactor(ui): migrate eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
iamKunalGupta committed Nov 27, 2024
1 parent 303e779 commit 6d7b8cb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ui/.eslintrc.json

This file was deleted.

16 changes: 16 additions & 0 deletions ui/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
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 [{
ignores: ["**/node_modules"],
}, ...compat.extends("next", "prettier")];

0 comments on commit 6d7b8cb

Please sign in to comment.