Skip to content

Instantly share code, notes, and snippets.

@rivertwilight
Created November 12, 2022 05:55
Show Gist options
  • Select an option

  • Save rivertwilight/a61cef76fbef99255b80dd54e5abcc30 to your computer and use it in GitHub Desktop.

Select an option

Save rivertwilight/a61cef76fbef99255b80dd54e5abcc30 to your computer and use it in GitHub Desktop.
TS/JS config with alias
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"module": "commonjs",
"strict": false,
"noImplicitAny": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"baseUrl": ".",
"paths": {
"@/components/*": ["src/components/*"],
"@/data/*": ["data/*"],
"@/apps/*": ["src/apps/*"],
"@/utils/*": ["src/utils/*"]
}
},
"exclude": ["node_modules"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "types/index.d,ts"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment