Skip to content

Commit e3343d7

Browse files
committed
chore: align base with starter-ts, update deps
1 parent 751ac56 commit e3343d7

11 files changed

Lines changed: 1231 additions & 1191 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 6 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable jsonc/comma-dangle */
12
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
23
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
34
{
@@ -20,62 +21,24 @@
2021
"customizations": {
2122
"vscode": {
2223
"extensions": [
23-
"AMiner.codegeex",
24-
"antfu.goto-alias",
25-
"antfu.iconify",
26-
"antfu.open-in-github-button",
27-
"antfu.unocss",
28-
"antfu.vite",
29-
"antfu.where-am-i",
30-
"Bito.Bito",
31-
"ChakrounAnas.turbo-console-log",
32-
"cweijan.vscode-mysql-client2",
3324
"dbaeumer.vscode-eslint",
34-
"eamodio.gitlens",
35-
"funkyremi.vscode-google-translate",
36-
"george-alisson.html-preview-vscode",
37-
"GitHub.vscode-pull-request-github",
38-
"Gruntfuggly.todo-tree",
39-
"jock.svg",
40-
"lokalise.i18n-ally",
41-
"ms-vscode.live-server",
42-
"naumovs.color-highlight",
43-
"oderwat.indent-rainbow",
44-
"rangav.vscode-thunder-client",
45-
"richie5um2.vscode-sort-json",
46-
"RobertOstermann.inline-parameters-extended",
4725
"streetsidesoftware.code-spell-checker",
48-
"svsool.markdown-memo",
49-
"unional.vscode-sort-package-json",
5026
"usernamehw.errorlens",
51-
"Vue.volar",
52-
"Vue.vscode-typescript-vue-plugin",
53-
"yzhang.markdown-all-in-one"
27+
"yoavbls.pretty-ts-errors",
5428
]
5529
}
5630
},
5731
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
58-
// "remoteUser": "root"
59-
"workspaceMount": "",
60-
"workspaceFolder": "${localWorkspaceFolder}",
32+
// "remoteUser": "root",
6133
"runArgs": [
62-
// run container as current user
63-
"--userns=keep-id",
64-
// disable selinux isolation that breaks bind mounts
65-
"--security-opt=label=disable",
66-
// ensure project directory is mounted incase it exists outside the home directory
67-
"--volume=${localWorkspaceFolder}:${localWorkspaceFolder}",
6834
// mount pnpm store for shared caching/linking
69-
"--volume=${env:PNPM_HOME}/store:${env:PNPM_HOME}/store"
35+
// "--volume=${env:PNPM_HOME}/store:${env:PNPM_HOME}/store",
36+
7037
// // Enable both in this block if you want to mount home dir
7138
// mount user home directory for things like git, ssh, and other configs
7239
// "--volume=${env:HOME}:${env:HOME}",
7340
// isolate the .vscode-server folder so you don't overwrite settings from remote ssh vscode
74-
// "--volume=${localWorkspaceFolder}/.cache/vscode-server:${env:HOME}/.vscode-server"
41+
// "--volume=${localWorkspaceFolder}/.cache/vscode-server:${env:HOME}/.vscode-server",
7542
// //
7643
],
77-
"containerEnv": {
78-
// ensure users home directory is the same inside the container as it is outside
79-
"HOME": "${env:HOME}"
80-
}
8144
}

.npmignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-workspace-root-check=true

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"streetsidesoftware.code-spell-checker",
5+
"usernamehw.errorlens",
6+
"yoavbls.pretty-ts-errors"
7+
]
8+
}

.vscode/settings.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
// Enable the ESlint flat config support
3-
"eslint.experimental.useFlatConfig": true,
4-
52
// Disable the default formatter, use eslint instead
63
"prettier.enable": false,
74
"editor.formatOnSave": false,
@@ -12,18 +9,19 @@
129
"source.organizeImports": "never"
1310
},
1411

15-
// Silent the stylistic rules in you IDE, but still auto fix them
16-
// "eslint.rules.customizations": [
17-
// { "rule": "style/*", "severity": "off" },
18-
// { "rule": "*-indent", "severity": "off" },
19-
// { "rule": "*-spacing", "severity": "off" },
20-
// { "rule": "*-spaces", "severity": "off" },
21-
// { "rule": "*-order", "severity": "off" },
22-
// { "rule": "*-dangle", "severity": "off" },
23-
// { "rule": "*-newline", "severity": "off" },
24-
// { "rule": "*quotes", "severity": "off" },
25-
// { "rule": "*semi", "severity": "off" }
26-
// ],
12+
/* // Silent the stylistic rules in you IDE, but still auto fix them
13+
"eslint.rules.customizations": [
14+
{ "rule": "style/*", "severity": "off" },
15+
{ "rule": "format/*", "severity": "off" },
16+
{ "rule": "*-indent", "severity": "off" },
17+
{ "rule": "*-spacing", "severity": "off" },
18+
{ "rule": "*-spaces", "severity": "off" },
19+
{ "rule": "*-order", "severity": "off" },
20+
{ "rule": "*-dangle", "severity": "off" },
21+
{ "rule": "*-newline", "severity": "off" },
22+
{ "rule": "*quotes", "severity": "off" },
23+
{ "rule": "*semi", "severity": "off" }
24+
], */
2725

2826
// Enable eslint for all supported languages
2927
"eslint.validate": [
@@ -36,6 +34,7 @@
3634
"markdown",
3735
"json",
3836
"jsonc",
39-
"yaml"
37+
"yaml",
38+
"toml"
4039
]
4140
}

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "unplugin-sheet-i18n",
33
"type": "module",
44
"version": "0.4.9",
5-
"packageManager": "pnpm@9.5.0",
5+
"packageManager": "pnpm@9.6.0",
66
"description": "internalization with csv, tsv, dsv, excel sheets, convert sheet to i18n-compatible json",
77
"author": "NamesMT <dangquoctrung123@gmail.com>",
88
"license": "MIT",
@@ -120,32 +120,32 @@
120120
}
121121
},
122122
"dependencies": {
123-
"@e965/xlsx": "^0.20.2",
123+
"@e965/xlsx": "^0.20.3",
124124
"consola": "^3.2.3",
125125
"defu": "^6.1.4",
126126
"papaparse": "^5.4.1",
127127
"pathe": "^1.1.2",
128128
"std-env": "^3.7.0",
129-
"unplugin": "^1.11.0"
129+
"unplugin": "^1.12.0"
130130
},
131131
"devDependencies": {
132-
"@antfu/eslint-config": "^2.21.3",
133-
"@namesmt/utils": "^0.3.1",
134-
"@nuxt/kit": "^3.12.3",
135-
"@nuxt/schema": "^3.12.3",
136-
"@types/node": "^20.14.10",
132+
"@antfu/eslint-config": "^2.24.1",
133+
"@namesmt/utils": "^0.5.2",
134+
"@nuxt/kit": "^3.12.4",
135+
"@nuxt/schema": "^3.12.4",
136+
"@types/node": "^20.14.14",
137137
"@types/papaparse": "^5.3.14",
138-
"@vitest/coverage-v8": "^1.6.0",
139-
"eslint": "^9.6.0",
140-
"lint-staged": "^15.2.7",
141-
"rollup": "^4.18.0",
138+
"@vitest/coverage-v8": "^2.0.5",
139+
"eslint": "^9.8.0",
140+
"lint-staged": "^15.2.8",
141+
"rollup": "^4.20.0",
142142
"simple-git-hooks": "^2.11.1",
143-
"tsx": "^4.16.2",
144-
"typescript": "^5.5.3",
143+
"tsx": "^4.16.5",
144+
"typescript": "^5.5.4",
145145
"unbuild": "^2.0.0",
146-
"vite": "^5.3.3",
147-
"vitest": "^1.6.0",
148-
"webpack": "^5.92.1"
146+
"vite": "^5.3.5",
147+
"vitest": "^2.0.5",
148+
"webpack": "^5.93.0"
149149
},
150150
"pnpm": {
151151
"overrides": {

playground/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"devDependencies": {
99
"nodemon": "^3.1.4",
1010
"unplugin-sheet-i18n": "workspace:^",
11-
"vite": "^5.3.3",
12-
"vite-plugin-inspect": "^0.8.4"
11+
"vite": "^5.3.5",
12+
"vite-plugin-inspect": "^0.8.5"
1313
}
1414
}

playground/tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"lib": ["ESNext", "DOM"]
5+
}
6+
}

0 commit comments

Comments
 (0)