Skip to content

Commit 6e8081b

Browse files
update(other): 🧩 update tsconfig, eslint alias
update alias for tsconfig and eslint + settings vscode file
1 parent 6cf574b commit 6e8081b

28 files changed

+98
-33
lines changed

.eslintrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
"eslint-import-resolver-custom-alias": {
5050
"alias": {
5151
"@": "./",
52-
"js": "./src",
53-
"assets": "./assets"
52+
"src": "./src",
53+
"assets": "./src/assets"
5454
},
55-
"extensions": [".js", ".jsx", ".vue", ".ts", ".tsx"]
55+
"extensions": [".js", ".jsx", ".ts", ".tsx"]
5656
}
5757
}
5858
}

.vscode/settings.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
{
2-
"nuxt.isNuxtApp": false
3-
}
2+
"nuxt.isNuxtApp": false,
3+
4+
"path-autocomplete.extensionOnImport": true,
5+
"path-autocomplete.includeExtension": true,
6+
"path-autocomplete.excludedItems": {
7+
"**": { "when": "**/*.{js,jsx,ts,tsx}", "isDir": true }
8+
},
9+
"path-autocomplete.pathMappings": {
10+
"images": "${workspace}/src/assets/images"
11+
},
12+
"path-autocomplete.pathSeparators": " \t({[",
13+
"editor.suggest.showModules": false
14+
}

config/index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -415,71 +415,71 @@
415415
</div>
416416
<div class="compilation-loading-screen__pacman--ball-out">
417417
<img
418-
src="<%= require('assets/images/development/svg/money.svg') %>"
418+
src="<%= require('src/assets/images/development/svg/money.svg') %>"
419419
alt=""
420420
width="40"
421421
height="40"
422422
/>
423423
</div>
424424
<div class="compilation-loading-screen__pacman--ball-in">
425425
<img
426-
src="<%= require('assets/images/development/svg/onion-purple.svg') %>"
426+
src="<%= require('src/assets/images/development/svg/onion-purple.svg') %>"
427427
alt=""
428428
width="40"
429429
height="40"
430430
/>
431431
</div>
432432
<div class="compilation-loading-screen__pacman--ball-in">
433433
<img
434-
src="<%= require('assets/images/development/svg/bug.svg') %>"
434+
src="<%= require('src/assets/images/development/svg/bug.svg') %>"
435435
alt=""
436436
width="40"
437437
height="40"
438438
/>
439439
</div>
440440
<div class="compilation-loading-screen__pacman--ball-out">
441441
<img
442-
src="<%= require('assets/images/development/svg/sycee-gold.svg') %>"
442+
src="<%= require('src/assets/images/development/svg/sycee-gold.svg') %>"
443443
alt=""
444444
width="40"
445445
height="40"
446446
/>
447447
</div>
448448
<div class="compilation-loading-screen__pacman--ball-out">
449449
<img
450-
src="<%= require('assets/images/development/svg/bitcoin.svg') %>"
450+
src="<%= require('src/assets/images/development/svg/bitcoin.svg') %>"
451451
alt=""
452452
width="40"
453453
height="40"
454454
/>
455455
</div>
456456
<div class="compilation-loading-screen__pacman--ball-in">
457457
<img
458-
src="<%= require('assets/images/development/svg/medicines.svg') %>"
458+
src="<%= require('src/assets/images/development/svg/medicines.svg') %>"
459459
alt=""
460460
width="40"
461461
height="40"
462462
/>
463463
</div>
464464
<div class="compilation-loading-screen__pacman--ball-in">
465465
<img
466-
src="<%= require('assets/images/development/svg/chili.svg') %>"
466+
src="<%= require('src/assets/images/development/svg/chili.svg') %>"
467467
alt=""
468468
width="40"
469469
height="40"
470470
/>
471471
</div>
472472
<div class="compilation-loading-screen__pacman--ball-out">
473473
<img
474-
src="<%= require('assets/images/development/svg/diamond.svg') %>"
474+
src="<%= require('src/assets/images/development/svg/diamond.svg') %>"
475475
alt=""
476476
width="40"
477477
height="40"
478478
/>
479479
</div>
480480
<div class="compilation-loading-screen__pacman--ball-in">
481481
<img
482-
src="<%= require('assets/images/development/svg/cannabis.svg') %>"
482+
src="<%= require('src/assets/images/development/svg/cannabis.svg') %>"
483483
alt=""
484484
width="40"
485485
height="40"

config/webpack.development.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const WebpackDevelopmentConfiguration = async () => {
6161
liveReload: false,
6262
host: process.env.PROJECT_IPV4_HOST,
6363
client: { overlay: false }, // NOTE - Use overlay of react refresh plugin
64+
historyApiFallback: true,
6465
devMiddleware: {
6566
publicPath: '/',
6667
writeToDisk: true,
@@ -172,13 +173,13 @@ const WebpackDevelopmentConfiguration = async () => {
172173

173174
cache: {
174175
// NOTE - Type memory
175-
type: 'memory',
176-
cacheUnaffected: true,
177-
maxGenerations: Infinity,
176+
// type: 'memory',
177+
// cacheUnaffected: true,
178+
// maxGenerations: Infinity,
178179

179180
// NOTE - Type filesystem
180-
// type: 'filesystem',
181-
// compression: 'gzip',
181+
type: 'filesystem',
182+
compression: 'gzip',
182183
},
183184

184185
// NOTE - We need get single runtime chunk to ignore issue hot module replacement does not work after changing a file

config/webpack.serve.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const serverInitial = new WebpackDevServer(
1010
{
1111
compress: true,
1212
static: './dist',
13+
historyApiFallback: true,
1314
}
1415
)
1516

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import useEffectCustomize from 'js/services/use-effect-customize'
1+
import useEffectCustomize from 'src/utils/use-effect-customize'
22

33
function App() {
44
const [count, setCount] = useState(0)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)