Skip to content

Commit a064f14

Browse files
committed
chore: add .editorconfig and update tsconfig paths for better module resolution
1 parent 1a7a0ff commit a064f14

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = false
12+
insert_final_newline = false
13+
14+
[*.json]
15+
indent_size = 2

tsconfig.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"esModuleInterop": true,
1010
"module": "esnext",
1111
"moduleResolution": "bundler",
12+
"allowArbitraryExtensions": true,
1213
"resolveJsonModule": true,
1314
"isolatedModules": true,
1415
"jsx": "react-jsx",
@@ -19,12 +20,12 @@
1920
}
2021
],
2122
"paths": {
22-
"@/*": ["./*"],
23-
"@components": ["./componnts/*"],
24-
"@contexts": ["./contexts/*"],
25-
"@hooks": ["./hooks/*"],
26-
"@libs": ["./libs/*"],
27-
"@api": ["./api/*"],
23+
"@/*": ["./src/*"],
24+
"@components": ["./src/componnts/*"],
25+
"@contexts": ["./src/contexts/*"],
26+
"@hooks": ["./src/hooks/*"],
27+
"@libs": ["./src/libs/*"],
28+
"@api": ["./src/api/*"]
2829
}
2930
},
3031
"include": [

0 commit comments

Comments
 (0)