-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,076 additions
and
877 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,45 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node | ||
{ | ||
"name": "Node.js & TypeScript", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-18-buster", | ||
"features": { | ||
"ghcr.io/devcontainers-contrib/features/pnpm:2": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"antfu.goto-alias", | ||
"mikestead.dotenv", | ||
"redhat.vscode-yaml", | ||
"Lokalise.i18n-ally", | ||
"Vue.volar", | ||
"steoates.autoimport", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"EditorConfig.EditorConfig", | ||
"usernamehw.errorlens", | ||
"shd101wyy.markdown-preview-enhanced", | ||
"voorjaar.windicss-intellisense", | ||
"yoavbls.pretty-ts-errors", | ||
"bodil.prettier-toml", | ||
"bungcip.better-toml" | ||
] | ||
} | ||
} | ||
"name": "Node.js & TypeScript", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-18-buster", | ||
"features": { | ||
"ghcr.io/devcontainers-contrib/features/pnpm:2": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"antfu.goto-alias", | ||
"mikestead.dotenv", | ||
"redhat.vscode-yaml", | ||
"Lokalise.i18n-ally", | ||
"Vue.volar", | ||
"steoates.autoimport", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"EditorConfig.EditorConfig", | ||
"usernamehw.errorlens", | ||
"shd101wyy.markdown-preview-enhanced", | ||
"voorjaar.windicss-intellisense", | ||
"yoavbls.pretty-ts-errors", | ||
"bodil.prettier-toml", | ||
"bungcip.better-toml" | ||
] | ||
} | ||
} | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "yarn install", | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "yarn install", | ||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
{ | ||
"root": true, // 禁止接着往上找 | ||
"env": { | ||
"node": true, | ||
"es2021": true, | ||
"browser": true // 浏览器 | ||
}, | ||
"parser": "vue-eslint-parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"parser": "@typescript-eslint/parser", | ||
"ecmaFeatures": { | ||
"jsx": true // 启用 jsx | ||
} | ||
}, | ||
"plugins": ["prettier"], | ||
"extends": [ | ||
"@unocss", | ||
"eslint:recommended", // 内置规则 | ||
"plugin:vue/vue3-recommended", // 支持 vue sfc | ||
"prettier", | ||
"./presets/eslint/.eslintrc-auto-import.json" | ||
], | ||
"rules": { | ||
// 允许相同组件名 | ||
"vue/multi-word-component-names": "off", | ||
// prettier 作为规则 | ||
"prettier/prettier": "error", | ||
// 禁止使用 var,而应该用 let 或 const | ||
"no-var": "error" | ||
}, | ||
"globals": { | ||
"defineOptions": true | ||
} | ||
"root": true, // 禁止接着往上找 | ||
"env": { | ||
"node": true, | ||
"es2021": true, | ||
"browser": true // 浏览器 | ||
}, | ||
"parser": "vue-eslint-parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"parser": "@typescript-eslint/parser", | ||
"ecmaFeatures": { | ||
"jsx": true // 启用 jsx | ||
} | ||
}, | ||
"plugins": ["prettier"], | ||
"extends": [ | ||
"@unocss", | ||
"eslint:recommended", // 内置规则 | ||
"plugin:vue/vue3-recommended", // 支持 vue sfc | ||
"prettier", | ||
"./presets/eslint/.eslintrc-auto-import.json" | ||
], | ||
"rules": { | ||
// 允许相同组件名 | ||
"vue/multi-word-component-names": "off", | ||
// prettier 作为规则 | ||
"prettier/prettier": "error", | ||
// 禁止使用 var,而应该用 let 或 const | ||
"no-var": "error" | ||
}, | ||
"globals": { | ||
"defineOptions": true | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"endOfLine": "auto" | ||
"semi": false, | ||
"singleQuote": true, | ||
"endOfLine": "auto" | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
{ | ||
"recommendations": [ | ||
"antfu.iconify", | ||
"mikestead.dotenv", | ||
"redhat.vscode-yaml", | ||
"lokalise.i18n-ally", | ||
"Vue.volar", | ||
"steoates.autoimport", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"EditorConfig.EditorConfig", | ||
"usernamehw.errorlens", | ||
"shd101wyy.markdown-preview-enhanced", | ||
"antfu.goto-alias", | ||
"voorjaar.windicss-intellisense", | ||
"yoavbls.pretty-ts-errors", | ||
"bodil.prettier-toml", | ||
"bungcip.better-toml" | ||
] | ||
"recommendations": [ | ||
"antfu.iconify", | ||
"mikestead.dotenv", | ||
"redhat.vscode-yaml", | ||
"lokalise.i18n-ally", | ||
"Vue.volar", | ||
"steoates.autoimport", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"EditorConfig.EditorConfig", | ||
"usernamehw.errorlens", | ||
"shd101wyy.markdown-preview-enhanced", | ||
"antfu.goto-alias", | ||
"voorjaar.windicss-intellisense", | ||
"yoavbls.pretty-ts-errors", | ||
"bodil.prettier-toml", | ||
"bungcip.better-toml" | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "edge debug", | ||
"request": "launch", | ||
"type": "msedge", | ||
"url": "http://localhost:5173", | ||
"webRoot": "${workspaceFolder}/src" | ||
}, | ||
{ | ||
"name": "chrome debug", | ||
"request": "launch", | ||
"type": "chrome", | ||
"url": "http://localhost:5173", | ||
"webRoot": "${workspaceFolder}/src" | ||
} | ||
] | ||
} | ||
"configurations": [ | ||
{ | ||
"name": "edge debug", | ||
"request": "launch", | ||
"type": "msedge", | ||
"url": "http://localhost:5173", | ||
"webRoot": "${workspaceFolder}/src" | ||
}, | ||
{ | ||
"name": "chrome debug", | ||
"request": "launch", | ||
"type": "chrome", | ||
"url": "http://localhost:5173", | ||
"webRoot": "${workspaceFolder}/src" | ||
} | ||
] | ||
} |
Oops, something went wrong.