diff options
author | 2025-04-29 10:47:43 +0530 | |
---|---|---|
committer | 2025-04-29 10:47:43 +0530 | |
commit | a2e0a65b2599267efe94d665d6305f59b225bbd5 (patch) | |
tree | e2cef2031e3f7655e0c5f419020a3f1064c3b7b8 /frontend/eslint.config.mjs | |
parent | 570bf0f3f065d583d6f94ecfc61aae93ba3e43de (diff) | |
download | restaurant-a2e0a65b2599267efe94d665d6305f59b225bbd5.tar.gz restaurant-a2e0a65b2599267efe94d665d6305f59b225bbd5.tar.bz2 restaurant-a2e0a65b2599267efe94d665d6305f59b225bbd5.zip |
Diffstat (limited to 'frontend/eslint.config.mjs')
-rw-r--r-- | frontend/eslint.config.mjs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs new file mode 100644 index 0000000..348c45a --- /dev/null +++ b/frontend/eslint.config.mjs @@ -0,0 +1,14 @@ +import { dirname } from "path"; +import { fileURLToPath } from "url"; +import { FlatCompat } from "@eslint/eslintrc"; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = dirname(__filename); + +const compat = new FlatCompat({ + baseDirectory: __dirname, +}); + +const eslintConfig = [...compat.extends("next/core-web-vitals")]; + +export default eslintConfig; |