From 8456d11f64b8aea431554bc5ebf0229fde656f2f Mon Sep 17 00:00:00 2001 From: Feroze Mohideen Date: Tue, 21 May 2024 14:05:42 -0400 Subject: [PATCH] fix pre-commit hook --- dashboard/.eslintignore | 1 + dashboard/.prettierignore | 3 ++- dashboard/src/legacy/main/home/Home.tsx | 2 +- dashboard/webpack.config.js | 3 +++ 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 dashboard/.eslintignore diff --git a/dashboard/.eslintignore b/dashboard/.eslintignore new file mode 100644 index 0000000000..0dabd1e672 --- /dev/null +++ b/dashboard/.eslintignore @@ -0,0 +1 @@ +src/legacy/ \ No newline at end of file diff --git a/dashboard/.prettierignore b/dashboard/.prettierignore index 1b07c39e9b..8bde4bdfd8 100644 --- a/dashboard/.prettierignore +++ b/dashboard/.prettierignore @@ -1,3 +1,4 @@ # Ignore artifacts: build -coverage \ No newline at end of file +coverage +src/legacy/ \ No newline at end of file diff --git a/dashboard/src/legacy/main/home/Home.tsx b/dashboard/src/legacy/main/home/Home.tsx index e10c349e9a..4f5ded1ac7 100644 --- a/dashboard/src/legacy/main/home/Home.tsx +++ b/dashboard/src/legacy/main/home/Home.tsx @@ -22,7 +22,7 @@ import standard from "legacy/shared/themes/standard"; import { type ClusterType, type ProjectListType, - ProjectType, + type ProjectType, } from "legacy/shared/types"; import { createPortal } from "react-dom"; import { diff --git a/dashboard/webpack.config.js b/dashboard/webpack.config.js index d895f517a6..004eb93558 100644 --- a/dashboard/webpack.config.js +++ b/dashboard/webpack.config.js @@ -143,6 +143,9 @@ module.exports = () => { ], }, resolve: { + alias: { + legacy: path.resolve(__dirname, "src/legacy/"), + }, modules: [path.resolve(__dirname, "src"), "node_modules"], extensions: ["*", ".tsx", ".ts", ".js", ".jsx", ".json"], },