Skip to content

Commit

Permalink
chore: stricter TS config
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Apr 18, 2023
1 parent 7208c89 commit b5ea016
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
6 changes: 4 additions & 2 deletions playground/vite.config.ts
Expand Up @@ -2,11 +2,13 @@ import { resolve } from 'node:path'
import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'

const currentDir = new URL('.', import.meta.url).pathname

export default defineConfig({
resolve: {
alias: {
'~/': `${resolve(__dirname, 'src')}/`,
'@leanera/vue-i18n': resolve(__dirname, '../src/index.ts'),
'~/': `${resolve(currentDir, 'src')}/`,
'@leanera/vue-i18n': resolve(currentDir, '../src/index.ts'),
},
},

Expand Down
19 changes: 13 additions & 6 deletions tsconfig.json
@@ -1,17 +1,24 @@
{
"compilerOptions": {
"target": "ESNext",
"lib": ["ESNext", "DOM", "ScriptHost"],
"jsx": "preserve",
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "node",
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"paths": {
"@leanera/vue-i18n": ["./src/index.ts"]
},
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "node",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
"noEmit": true,
"jsx": "preserve",

/* Linting */
"strict": true
}
}

0 comments on commit b5ea016

Please sign in to comment.