UNPKG
create-w3-app
Version:
latest (0.7.1)
0.7.1
0.7.0
0.6.0
0.5.0
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
Create ethereum dApps with w3 stack
github.com/gopiinho/create-w3-app
gopiinho/create-w3-app
create-w3-app
/
src
/
utils
/
validateImportAlias.ts
7 lines
(6 loc)
•
184 B
text/typescript
View Raw
1
2
3
4
5
6
7
export const validateImportAlias = (
input
:
string
) => {
if
(
input
.startsWith(
"."
) ||
input
.startsWith(
"/"
)) {
return
"Import alias can't start with '.' or '/'"
; }
return
; };