From de7e5016ddedc2e0293d0950b7ac80ffbd3d028c Mon Sep 17 00:00:00 2001 From: seunghyunOh Date: Sun, 4 Dec 2022 08:32:43 +0900 Subject: [PATCH] Fix babel error --- frontend/.eslintrc.json | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json index 0c5504b90..fc0c07a74 100644 --- a/frontend/.eslintrc.json +++ b/frontend/.eslintrc.json @@ -1,8 +1,6 @@ { - "extends": "next/core-web-vitals", - "plugins": [ - "simple-import-sort" - ], + "extends": ["next/babel", "next/core-web-vitals"], + "plugins": ["simple-import-sort"], "rules": { "react-hooks/exhaustive-deps": "off", "simple-import-sort/exports": "warn", @@ -18,15 +16,9 @@ "^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)" ], // Packages `react` related packages - [ - "^react", - "^next", - "^@?\\w" - ], + ["^react", "^next", "^@?\\w"], // Internal packages. - [ - "^~(/.*|$)" - ], + ["^~(/.*|$)"], // Relative imports [ "^\\.\\.(?!/?$)", @@ -36,11 +28,9 @@ "^\\./?$" ], // Style imports. - [ - "^.+\\.?(css|scss)$" - ] + ["^.+\\.?(css|scss)$"] ] } ] } -} \ No newline at end of file +}