Skip to content

Commit

Permalink
chore: align base with starter-ts, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
NamesMT committed Aug 5, 2024
1 parent 751ac56 commit e3343d7
Show file tree
Hide file tree
Showing 11 changed files with 1,231 additions and 1,191 deletions.
49 changes: 6 additions & 43 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable jsonc/comma-dangle */
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
Expand All @@ -20,62 +21,24 @@
"customizations": {
"vscode": {
"extensions": [
"AMiner.codegeex",
"antfu.goto-alias",
"antfu.iconify",
"antfu.open-in-github-button",
"antfu.unocss",
"antfu.vite",
"antfu.where-am-i",
"Bito.Bito",
"ChakrounAnas.turbo-console-log",
"cweijan.vscode-mysql-client2",
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"funkyremi.vscode-google-translate",
"george-alisson.html-preview-vscode",
"GitHub.vscode-pull-request-github",
"Gruntfuggly.todo-tree",
"jock.svg",
"lokalise.i18n-ally",
"ms-vscode.live-server",
"naumovs.color-highlight",
"oderwat.indent-rainbow",
"rangav.vscode-thunder-client",
"richie5um2.vscode-sort-json",
"RobertOstermann.inline-parameters-extended",
"streetsidesoftware.code-spell-checker",
"svsool.markdown-memo",
"unional.vscode-sort-package-json",
"usernamehw.errorlens",
"Vue.volar",
"Vue.vscode-typescript-vue-plugin",
"yzhang.markdown-all-in-one"
"yoavbls.pretty-ts-errors",
]
}
},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
"workspaceMount": "",
"workspaceFolder": "${localWorkspaceFolder}",
// "remoteUser": "root",
"runArgs": [
// run container as current user
"--userns=keep-id",
// disable selinux isolation that breaks bind mounts
"--security-opt=label=disable",
// ensure project directory is mounted incase it exists outside the home directory
"--volume=${localWorkspaceFolder}:${localWorkspaceFolder}",
// mount pnpm store for shared caching/linking
"--volume=${env:PNPM_HOME}/store:${env:PNPM_HOME}/store"
// "--volume=${env:PNPM_HOME}/store:${env:PNPM_HOME}/store",

// // Enable both in this block if you want to mount home dir
// mount user home directory for things like git, ssh, and other configs
// "--volume=${env:HOME}:${env:HOME}",
// isolate the .vscode-server folder so you don't overwrite settings from remote ssh vscode
// "--volume=${localWorkspaceFolder}/.cache/vscode-server:${env:HOME}/.vscode-server"
// "--volume=${localWorkspaceFolder}/.cache/vscode-server:${env:HOME}/.vscode-server",
// //
],
"containerEnv": {
// ensure users home directory is the same inside the container as it is outside
"HOME": "${env:HOME}"
}
}
1 change: 0 additions & 1 deletion .npmignore

This file was deleted.

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-workspace-root-check=true
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"streetsidesoftware.code-spell-checker",
"usernamehw.errorlens",
"yoavbls.pretty-ts-errors"
]
}
31 changes: 15 additions & 16 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,

// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,
Expand All @@ -12,18 +9,19 @@
"source.organizeImports": "never"
},

// Silent the stylistic rules in you IDE, but still auto fix them
// "eslint.rules.customizations": [
// { "rule": "style/*", "severity": "off" },
// { "rule": "*-indent", "severity": "off" },
// { "rule": "*-spacing", "severity": "off" },
// { "rule": "*-spaces", "severity": "off" },
// { "rule": "*-order", "severity": "off" },
// { "rule": "*-dangle", "severity": "off" },
// { "rule": "*-newline", "severity": "off" },
// { "rule": "*quotes", "severity": "off" },
// { "rule": "*semi", "severity": "off" }
// ],
/* // Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "format/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
{ "rule": "*-order", "severity": "off" },
{ "rule": "*-dangle", "severity": "off" },
{ "rule": "*-newline", "severity": "off" },
{ "rule": "*quotes", "severity": "off" },
{ "rule": "*semi", "severity": "off" }
], */

// Enable eslint for all supported languages
"eslint.validate": [
Expand All @@ -36,6 +34,7 @@
"markdown",
"json",
"jsonc",
"yaml"
"yaml",
"toml"
]
}
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "unplugin-sheet-i18n",
"type": "module",
"version": "0.4.9",
"packageManager": "pnpm@9.5.0",
"packageManager": "pnpm@9.6.0",
"description": "internalization with csv, tsv, dsv, excel sheets, convert sheet to i18n-compatible json",
"author": "NamesMT <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -120,32 +120,32 @@
}
},
"dependencies": {
"@e965/xlsx": "^0.20.2",
"@e965/xlsx": "^0.20.3",
"consola": "^3.2.3",
"defu": "^6.1.4",
"papaparse": "^5.4.1",
"pathe": "^1.1.2",
"std-env": "^3.7.0",
"unplugin": "^1.11.0"
"unplugin": "^1.12.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.21.3",
"@namesmt/utils": "^0.3.1",
"@nuxt/kit": "^3.12.3",
"@nuxt/schema": "^3.12.3",
"@types/node": "^20.14.10",
"@antfu/eslint-config": "^2.24.1",
"@namesmt/utils": "^0.5.2",
"@nuxt/kit": "^3.12.4",
"@nuxt/schema": "^3.12.4",
"@types/node": "^20.14.14",
"@types/papaparse": "^5.3.14",
"@vitest/coverage-v8": "^1.6.0",
"eslint": "^9.6.0",
"lint-staged": "^15.2.7",
"rollup": "^4.18.0",
"@vitest/coverage-v8": "^2.0.5",
"eslint": "^9.8.0",
"lint-staged": "^15.2.8",
"rollup": "^4.20.0",
"simple-git-hooks": "^2.11.1",
"tsx": "^4.16.2",
"typescript": "^5.5.3",
"tsx": "^4.16.5",
"typescript": "^5.5.4",
"unbuild": "^2.0.0",
"vite": "^5.3.3",
"vitest": "^1.6.0",
"webpack": "^5.92.1"
"vite": "^5.3.5",
"vitest": "^2.0.5",
"webpack": "^5.93.0"
},
"pnpm": {
"overrides": {
Expand Down
4 changes: 2 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"devDependencies": {
"nodemon": "^3.1.4",
"unplugin-sheet-i18n": "workspace:^",
"vite": "^5.3.3",
"vite-plugin-inspect": "^0.8.4"
"vite": "^5.3.5",
"vite-plugin-inspect": "^0.8.5"
}
}
6 changes: 6 additions & 0 deletions playground/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"lib": ["ESNext", "DOM"]
}
}
Loading

0 comments on commit e3343d7

Please sign in to comment.