mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
web: allow @ imports
This commit is contained in:
parent
cd768d6f2e
commit
4eec9f5eb6
4 changed files with 13 additions and 1 deletions
|
@ -2,5 +2,5 @@
|
|||
cd web > /dev/null
|
||||
if [[ -f "./node_modules/.bin/eslint" ]]; then
|
||||
ARGS=("$@")
|
||||
eslint ${ARGS[@]/#web\// }
|
||||
eslint --fix ${ARGS[@]/#web\// }
|
||||
fi
|
||||
|
|
|
@ -37,6 +37,10 @@ export default tseslint.config(
|
|||
"named": true,
|
||||
"warnOnUnassignedImports": true,
|
||||
"pathGroups": [{
|
||||
"pattern": "@/**",
|
||||
"group": "parent",
|
||||
"position": "before",
|
||||
}, {
|
||||
"pattern": "*.svg?react",
|
||||
"patternOptions": {"matchBase": true},
|
||||
"group": "sibling",
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
"DOM",
|
||||
"DOM.Iterable"
|
||||
],
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
},
|
||||
"module": "ESNext",
|
||||
"skipLibCheck": true,
|
||||
/* Bundler mode */
|
||||
|
|
|
@ -13,6 +13,11 @@ export default defineConfig({
|
|||
},
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": "/src",
|
||||
},
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
"/_gomuks/websocket": {
|
||||
|
|
Loading…
Add table
Reference in a new issue