Last active
November 22, 2020 17:09
-
-
Save agcty/9d3581535d41876396576a17937097b9 to your computer and use it in GitHub Desktop.
Update tsconfig for absoulte imports next.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"compilerOptions": { | |
"target": "ES2017", | |
"lib": ["es6", "dom", "dom.iterable", "esnext"], | |
"allowJs": true, | |
"skipLibCheck": true, | |
"strict": false, | |
"forceConsistentCasingInFileNames": true, | |
"noEmit": true, | |
"esModuleInterop": true, | |
"module": "ESNEXT", | |
"moduleResolution": "node", | |
"resolveJsonModule": true, | |
"isolatedModules": true, | |
"jsx": "preserve", | |
"baseUrl": ".", | |
"paths": { | |
"@components/*": ["./src/components/*"], | |
"@api/*": ["./src/api/*"], | |
"@models/*": ["./src/models/*"], | |
"@screens/*": ["./src/screens/*"], | |
"@hooks/*": ["./src/hooks/*"], | |
"@services/*": ["./src/services/*"], | |
"@constants": ["./src/constants.ts"], | |
"@context/*": ["./src/context/*"], | |
"@queries/*": ["./src/queries/*"], | |
"@data/*": ["./src/data/*"], | |
"@typeDefs/*": ["./src/types/*"], | |
"@generated/*": ["./src/generated/*"], | |
"@public/*": ["./public/*"], | |
"@utils/*": ["./src/utils/*"], | |
"@app/*": ["./src/app/*"], | |
"@assets/*": ["./src/assets/*"] | |
} | |
}, | |
"exclude": ["node_modules"], | |
"include": [ | |
"**/*.ts", | |
"**/*.tsx", | |
"next-env.d.ts", | |
"next.config.js", | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment