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 2899aff commit a22fe05
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 15 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")];
97 changes: 85 additions & 12 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.15.0",
"autoprefixer": "10.4.20",
"copy-webpack-plugin": "12.0.2",
"eslint": "8.57.1",
Expand Down

0 comments on commit a22fe05

Please sign in to comment.