diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..46678f9 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + // 解决项目中使用@作为路径别名,导致vscode无法跳转文件的问题 + "@/*": ["src/*"] + }, + // 解决prettier对于装饰器语法的警告 + "experimentalDecorators": true, + // 解决.jsx文件无法快速跳转的问题 + "jsx": "preserve" + }, + //提高 IDE 性能 + "exclude": ["node_modules", "dist", "build"] +} \ No newline at end of file