Skip to content

Commit 3fe1fb8

Browse files
committed
chore: lint 전체 검사
1 parent 84f07b2 commit 3fe1fb8

File tree

180 files changed

+3283
-2427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+3283
-2427
lines changed

.eslintrc.cjs

+57-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,65 @@ module.exports = {
77
"plugin:react-hooks/recommended",
88
"prettier",
99
],
10-
ignorePatterns: ["dist", ".eslintrc.cjs"],
10+
ignorePatterns: ["build", "dist", "public"],
1111
parser: "@typescript-eslint/parser",
12-
plugins: ["react-refresh"],
12+
plugins: ["react-refresh", "import"],
1313
rules: {
14+
"import/prefer-default-export": "off",
15+
"import/extensions": ["off", "error", "ignorePackages"],
16+
"import/order": [
17+
"error",
18+
{
19+
groups: [
20+
"builtin",
21+
"external",
22+
"internal",
23+
["parent", "sibling"],
24+
"index",
25+
"object",
26+
"type",
27+
"unknown",
28+
],
29+
pathGroups: [
30+
{
31+
pattern: "next",
32+
group: "builtin",
33+
position: "before",
34+
},
35+
{
36+
pattern: "react",
37+
group: "builtin",
38+
},
39+
{
40+
pattern: "@tanstack/**",
41+
group: "builtin",
42+
position: "before",
43+
},
44+
{
45+
pattern: "@/libs/**",
46+
group: "unknown",
47+
},
48+
{
49+
pattern: "@/core/**",
50+
group: "unknown",
51+
},
52+
{
53+
pattern: "@/store/**",
54+
group: "unknown",
55+
},
56+
{
57+
pattern: "**/*.css.ts",
58+
group: "unknown",
59+
position: "after",
60+
},
61+
],
62+
"newlines-between": "always",
63+
alphabetize: {
64+
order: "asc",
65+
caseInsensitive: true,
66+
},
67+
},
68+
],
1469
"react/react-in-jsx-scope": "off",
1570
"react-refresh/only-export-components": [
1671
"warn",

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
/>
2727
<title>퍼센트 호텔</title>
2828
</head>
29-
<script>
29+
<!-- <script>
3030
document.addEventListener("DOMContentLoaded", function () {
3131
if ("serviceWorker" in navigator) {
3232
navigator.serviceWorker.register("/pwabuilder-sw.js");
3333
}
3434
});
35-
</script>
35+
</script> -->
3636
<body>
3737
<div id="root"></div>
3838
<div id="modal-root"></div>

0 commit comments

Comments
 (0)