tsconfig.json 782 B

12345678910111213141516171819202122232425262728293031323334
  1. {
  2. "compilerOptions": {
  3. "strictNullChecks": true,
  4. "noImplicitAny": true,
  5. "module": "CommonJS",
  6. "target": "ES2020",
  7. "allowJs": true,
  8. "allowSyntheticDefaultImports": true,
  9. "esModuleInterop": true,
  10. "experimentalDecorators": true,
  11. "noImplicitThis": true,
  12. "noImplicitReturns": true,
  13. "alwaysStrict": true,
  14. "noFallthroughCasesInSwitch": true,
  15. "noUnusedLocals": true,
  16. "noUnusedParameters": true,
  17. "strict": true,
  18. "strictPropertyInitialization": true,
  19. "types": ["miniprogram-api-typings"],
  20. "paths": {
  21. "@vant/weapp/*": ["path/to/node_modules/@vant/weapp/dist/*"]
  22. },
  23. "lib": ["ES6"],
  24. "typeRoots": [
  25. "./typings"
  26. ]
  27. },
  28. "include": [
  29. "./**/*.ts"
  30. ],
  31. "exclude": [
  32. "node_modules"
  33. ]
  34. }