Skip to content

Commit

Permalink
chore: fix type issues in development
Browse files Browse the repository at this point in the history
  • Loading branch information
josefinalliende committed Dec 17, 2024
1 parent 0086fe3 commit 0781b4a
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 8 deletions.
12 changes: 11 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
import withNuxt from './.nuxt/eslint.config.mjs'
import vueEslintParser from 'vue-eslint-parser';

export default withNuxt()
const nuxtConfig = await withNuxt();

export default [ ...nuxtConfig,
{
files: ['*.vue'],
languageOptions: {
parser: vueEslintParser,
},
},
];
5 changes: 4 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss',
'@nuxt/eslint',
]
],
typescript: {
typeCheck: true
}
})
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"@nuxt/eslint": "^0.7.2",
"@nuxtjs/tailwindcss": "^6.12.2",
"eslint": "^9.15.0",
"gh-pages": "^6.2.0"
"gh-pages": "^6.2.0",
"typescript": "^5.7.2",
"vue-tsc": "^2.1.10"
},
"packageManager": "[email protected]"
}
12 changes: 11 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"strict": true,
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
}
},
"include": ["**/*.ts", "**/*.vue"],
"exclude": ["node_modules", "nuxt.config.ts"]
}
140 changes: 136 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2237,6 +2237,33 @@ __metadata:
languageName: node
linkType: hard

"@volar/language-core@npm:2.4.11, @volar/language-core@npm:~2.4.8":
version: 2.4.11
resolution: "@volar/language-core@npm:2.4.11"
dependencies:
"@volar/source-map": "npm:2.4.11"
checksum: 10c0/ccc5de0c28b4186dc99ff9856b2ac2318ee1818480af3ca406f3c09d42b19b6df8698b525f6cf0fed368332fc76659cd4433fb38e6a55a85c7cefc97d665ccf8
languageName: node
linkType: hard

"@volar/source-map@npm:2.4.11":
version: 2.4.11
resolution: "@volar/source-map@npm:2.4.11"
checksum: 10c0/8e5badf9f67d669679c48fe32258e082d823523ca2807438d38c0aac6c52b84d43580c8921b559fc5a27c0c7457ffcba569e60de7a597851690dec04ed77c5fc
languageName: node
linkType: hard

"@volar/typescript@npm:~2.4.8":
version: 2.4.11
resolution: "@volar/typescript@npm:2.4.11"
dependencies:
"@volar/language-core": "npm:2.4.11"
path-browserify: "npm:^1.0.1"
vscode-uri: "npm:^3.0.8"
checksum: 10c0/bca9bda9c8c95fd06672b834d1804810fdad496e15ee8e2099f76de74fa529d835f342afb6b976e6e3bc4599a3bbbfd007a842694fe1300cf6286783b827f917
languageName: node
linkType: hard

"@voxpelli/config-array-find-files@npm:^1.2.1":
version: 1.2.1
resolution: "@voxpelli/config-array-find-files@npm:1.2.1"
Expand Down Expand Up @@ -2325,7 +2352,7 @@ __metadata:
languageName: node
linkType: hard

"@vue/compiler-dom@npm:3.5.13, @vue/compiler-dom@npm:^3.3.4":
"@vue/compiler-dom@npm:3.5.13, @vue/compiler-dom@npm:^3.3.4, @vue/compiler-dom@npm:^3.5.0":
version: 3.5.13
resolution: "@vue/compiler-dom@npm:3.5.13"
dependencies:
Expand Down Expand Up @@ -2362,6 +2389,16 @@ __metadata:
languageName: node
linkType: hard

"@vue/compiler-vue2@npm:^2.7.16":
version: 2.7.16
resolution: "@vue/compiler-vue2@npm:2.7.16"
dependencies:
de-indent: "npm:^1.0.2"
he: "npm:^1.2.0"
checksum: 10c0/c76c3fad770b9a7da40b314116cc9da173da20e5fd68785c8ed8dd8a87d02f239545fa296e16552e040ec86b47bfb18283b39447b250c2e76e479bd6ae475bb3
languageName: node
linkType: hard

"@vue/devtools-api@npm:^6.6.4":
version: 6.6.4
resolution: "@vue/devtools-api@npm:6.6.4"
Expand Down Expand Up @@ -2424,6 +2461,27 @@ __metadata:
languageName: node
linkType: hard

"@vue/language-core@npm:2.1.10":
version: 2.1.10
resolution: "@vue/language-core@npm:2.1.10"
dependencies:
"@volar/language-core": "npm:~2.4.8"
"@vue/compiler-dom": "npm:^3.5.0"
"@vue/compiler-vue2": "npm:^2.7.16"
"@vue/shared": "npm:^3.5.0"
alien-signals: "npm:^0.2.0"
minimatch: "npm:^9.0.3"
muggle-string: "npm:^0.4.1"
path-browserify: "npm:^1.0.1"
peerDependencies:
typescript: "*"
peerDependenciesMeta:
typescript:
optional: true
checksum: 10c0/9257f1fcbb84749f806cf0926ccc6d5f40bdee51ec3febbd7f72586ddf52db0b11bb8c24dc24b1b3ada8b34d80865b10a0a183c8033b028daab9f77326e44fb6
languageName: node
linkType: hard

"@vue/reactivity@npm:3.5.13":
version: 3.5.13
resolution: "@vue/reactivity@npm:3.5.13"
Expand Down Expand Up @@ -2467,7 +2525,7 @@ __metadata:
languageName: node
linkType: hard

"@vue/shared@npm:3.5.13, @vue/shared@npm:^3.5.13":
"@vue/shared@npm:3.5.13, @vue/shared@npm:^3.5.0, @vue/shared@npm:^3.5.13":
version: 3.5.13
resolution: "@vue/shared@npm:3.5.13"
checksum: 10c0/2c940ef907116f1c2583ca1d7733984e5705983ab07054c4e72f1d95eb0f7bdf4d01efbdaee1776c2008f79595963f44e98fced057f5957d86d57b70028f5025
Expand Down Expand Up @@ -2574,6 +2632,13 @@ __metadata:
languageName: node
linkType: hard

"alien-signals@npm:^0.2.0":
version: 0.2.2
resolution: "alien-signals@npm:0.2.2"
checksum: 10c0/47adce909e0a12cdd78ed982d82ae2f9b93c7e8e315d57e49b6f9e2734db2c1ec1e2173365d044202b1a8c4085c87161a4311934547cdfacf1ba85b28961fdb6
languageName: node
linkType: hard

"ansi-colors@npm:^4.1.3":
version: 4.1.3
resolution: "ansi-colors@npm:4.1.3"
Expand Down Expand Up @@ -3582,6 +3647,13 @@ __metadata:
languageName: node
linkType: hard

"de-indent@npm:^1.0.2":
version: 1.0.2
resolution: "de-indent@npm:1.0.2"
checksum: 10c0/7058ce58abd6dfc123dd204e36be3797abd419b59482a634605420f47ae97639d0c183ec5d1b904f308a01033f473673897afc2bd59bc620ebf1658763ef4291
languageName: node
linkType: hard

"debug@npm:2.6.9":
version: 2.6.9
resolution: "debug@npm:2.6.9"
Expand Down Expand Up @@ -5151,6 +5223,15 @@ __metadata:
languageName: node
linkType: hard

"he@npm:^1.2.0":
version: 1.2.0
resolution: "he@npm:1.2.0"
bin:
he: bin/he
checksum: 10c0/a27d478befe3c8192f006cdd0639a66798979dfa6e2125c6ac582a19a5ebfec62ad83e8382e6036170d873f46e4536a7e795bf8b95bf7c247f4cc0825ccc8c17
languageName: node
linkType: hard

"hookable@npm:^5.5.3":
version: 5.5.3
resolution: "hookable@npm:5.5.3"
Expand Down Expand Up @@ -6475,6 +6556,13 @@ __metadata:
languageName: node
linkType: hard

"muggle-string@npm:^0.4.1":
version: 0.4.1
resolution: "muggle-string@npm:0.4.1"
checksum: 10c0/e914b63e24cd23f97e18376ec47e4ba3aa24365e4776212b666add2e47bb158003212980d732c49abf3719568900af7861873844a6e2d3a7ca7e86952c0e99e9
languageName: node
linkType: hard

"mz@npm:^2.7.0":
version: 2.7.0
resolution: "mz@npm:2.7.0"
Expand Down Expand Up @@ -6806,8 +6894,10 @@ __metadata:
eslint: "npm:^9.15.0"
gh-pages: "npm:^6.2.0"
nuxt: "npm:^3.14.159"
typescript: "npm:^5.7.2"
vue: "npm:latest"
vue-router: "npm:latest"
vue-tsc: "npm:^2.1.10"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -7202,6 +7292,13 @@ __metadata:
languageName: node
linkType: hard

"path-browserify@npm:^1.0.1":
version: 1.0.1
resolution: "path-browserify@npm:1.0.1"
checksum: 10c0/8b8c3fd5c66bd340272180590ae4ff139769e9ab79522e2eb82e3d571a89b8117c04147f65ad066dccfb42fcad902e5b7d794b3d35e0fd840491a8ddbedf8c66
languageName: node
linkType: hard

"path-exists@npm:^4.0.0":
version: 4.0.0
resolution: "path-exists@npm:4.0.0"
Expand Down Expand Up @@ -8317,7 +8414,7 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.6, semver@npm:^7.6.0, semver@npm:^7.6.3":
"semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.6, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.3":
version: 7.6.3
resolution: "semver@npm:7.6.3"
bin:
Expand Down Expand Up @@ -9153,6 +9250,26 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^5.7.2":
version: 5.7.2
resolution: "typescript@npm:5.7.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10c0/a873118b5201b2ef332127ef5c63fb9d9c155e6fdbe211cbd9d8e65877283797cca76546bad742eea36ed7efbe3424a30376818f79c7318512064e8625d61622
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A^5.7.2#optional!builtin<compat/typescript>":
version: 5.7.2
resolution: "typescript@patch:typescript@npm%3A5.7.2#optional!builtin<compat/typescript>::version=5.7.2&hash=5786d5"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10c0/f3b8082c9d1d1629a215245c9087df56cb784f9fb6f27b5d55577a20e68afe2a889c040aacff6d27e35be165ecf9dca66e694c42eb9a50b3b2c451b36b5675cb
languageName: node
linkType: hard

"ufo@npm:^1.1.2, ufo@npm:^1.5.4":
version: 1.5.4
resolution: "ufo@npm:1.5.4"
Expand Down Expand Up @@ -9745,7 +9862,7 @@ __metadata:
languageName: node
linkType: hard

"vscode-uri@npm:^3.0.2":
"vscode-uri@npm:^3.0.2, vscode-uri@npm:^3.0.8":
version: 3.0.8
resolution: "vscode-uri@npm:3.0.8"
checksum: 10c0/f7f217f526bf109589969fe6e66b71e70b937de1385a1d7bb577ca3ee7c5e820d3856a86e9ff2fa9b7a0bc56a3dd8c3a9a557d3fedd7df414bc618d5e6b567f9
Expand Down Expand Up @@ -9796,6 +9913,21 @@ __metadata:
languageName: node
linkType: hard

"vue-tsc@npm:^2.1.10":
version: 2.1.10
resolution: "vue-tsc@npm:2.1.10"
dependencies:
"@volar/typescript": "npm:~2.4.8"
"@vue/language-core": "npm:2.1.10"
semver: "npm:^7.5.4"
peerDependencies:
typescript: ">=5.0.0"
bin:
vue-tsc: ./bin/vue-tsc.js
checksum: 10c0/6367db8b36e59fcea432b1f9f53ac36f0389b26278cd8f1f7cc914a26ba82dda7db5a4407e8e159f33a9a788821f6e6f69037bc3db0f9f2be9fe700123032282
languageName: node
linkType: hard

"vue@npm:^3.5.13, vue@npm:latest":
version: 3.5.13
resolution: "vue@npm:3.5.13"
Expand Down

0 comments on commit 0781b4a

Please sign in to comment.