Ete*_*ver 6 typescript eslint monorepo
在最近的一个项目中,tsconfig.json我发现使用符号 的路径别名@。
{
"compilerOptions": {
"target": "es5",
...
"baseUrl": ".",
"paths": {
"@/components/*": ["components/*"],
"@/pages/*": ["pages/*"],
"@/styles/*": ["styles/*"],
...
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "jest.config.js"],
"exclude": ["node_modules"]
}
Run Code Online (Sandbox Code Playgroud)
~但在一些网络视频和文章中,我也看到了和等符号的用法#。
我的问题是:
在 TypeScript 文档和简单的网络搜索中找不到这个问题的答案。
| 归档时间: |
|
| 查看次数: |
745 次 |
| 最近记录: |