1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

5 Commits
2.0.0 ... 2.0.1

15 changed files with 1496 additions and 880 deletions

26
.editorconfig Normal file
View File

@@ -0,0 +1,26 @@
# EditorConfig is awesome: https://editorconfig.org
# top-most EditorConfig file
root = true
[*]
end_of_line = lf
# Unix-style newlines with a newline ending every file
insert_final_newline = true
# Set default charset
charset = utf-8
[*.{js,ts}]
# 4 space indentation
indent_style = space
indent_size = 4
# Tab indentation (no size specified)
[.vscode/**.json]
indent_style = tab
# 历史原因需要保留 tab 缩进的代码文件
[src/{test/extension.test.ts,extension.ts}]
indent_style = tab

View File

@@ -1,30 +0,0 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "import",
"format": [ "camelCase", "PascalCase" ]
}
],
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
}

View File

@@ -5,7 +5,7 @@ src/**
.yarnrc .yarnrc
vsc-extension-quickstart.md vsc-extension-quickstart.md
**/tsconfig.json **/tsconfig.json
**/.eslintrc.json **/eslint.config.mjs
**/*.map **/*.map
**/*.ts **/*.ts
**/.vscode-test.* **/.vscode-test.*

View File

@@ -21,8 +21,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed ### Removed
### Internal
--> -->
## 2.0.1
### Internal
- Add `.editorconfig` file. (添加 `.editorconfig` 文件)
- Upgrade plugin dependency versions. (升级插件依赖版本)
- Modify eslint configuration. (调整 eslint 配置)
## 2.0.0 ## 2.0.0
### Added ### Added

View File

@@ -5,7 +5,7 @@
一个强大的变量命名及路径风格转换插件,支持一键转换、循环转换,支持右键菜单、快捷键、状态栏等多种方式使用。<br> 一个强大的变量命名及路径风格转换插件,支持一键转换、循环转换,支持右键菜单、快捷键、状态栏等多种方式使用。<br>
A powerful variable and path conversion extension. Supports one-key conversion & cyclic conversion. You can use it through the editer menu, shortcut keys and status bar. A powerful variable and path conversion extension. Supports one-key conversion & cyclic conversion. You can use it through the editer menu, shortcut keys and status bar.
> 【近期更新】v2.0.0 版本 (2024-12-15) > **【近期更新】v2.0.1 版本 (2025-07-12)**
> >
> - 支持 Windows / Unix 路径风格转换(可选中文本中的路径,然后使用 `Ctrl + Alt + /` 快捷键,或点击右键菜单、底部状态栏路径转换按钮轻松实现转换) > - 支持 Windows / Unix 路径风格转换(可选中文本中的路径,然后使用 `Ctrl + Alt + /` 快捷键,或点击右键菜单、底部状态栏路径转换按钮轻松实现转换)

28
eslint.config.mjs Normal file
View File

@@ -0,0 +1,28 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
export default [{
files: ["**/*.ts"],
}, {
plugins: {
"@typescript-eslint": typescriptEslint,
},
languageOptions: {
parser: tsParser,
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
"@typescript-eslint/naming-convention": ["warn", {
selector: "import",
format: ["camelCase", "PascalCase"],
}],
curly: "warn",
eqeqeq: "warn",
"no-throw-literal": "warn",
semi: "warn",
},
}];

2216
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -2,11 +2,11 @@
"name": "variable-conversion", "name": "variable-conversion",
"displayName": "Variable Conversion", "displayName": "Variable Conversion",
"description": "一个强大的变量名转换插件,支持右键菜单、快捷键、状态栏等多种方式使用,支持小驼峰、大驼峰(帕斯卡)、下划线(蛇形)、中划线(连字符/脊柱式)、空格分隔、点分隔、全小写、全大写等常用命名方式(及组合)转换。 \nA powerful variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar. Support camel, pascal, snake, kebab(spinal), space, dot, lower, upper case, and more.", "description": "一个强大的变量名转换插件,支持右键菜单、快捷键、状态栏等多种方式使用,支持小驼峰、大驼峰(帕斯卡)、下划线(蛇形)、中划线(连字符/脊柱式)、空格分隔、点分隔、全小写、全大写等常用命名方式(及组合)转换。 \nA powerful variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar. Support camel, pascal, snake, kebab(spinal), space, dot, lower, upper case, and more.",
"version": "2.0.0", "version": "2.0.1",
"icon": "image/logo.png", "icon": "image/logo.png",
"publisher": "coder-xiaomo", "publisher": "coder-xiaomo",
"engines": { "engines": {
"vscode": "^1.87.0" "vscode": "^1.102.0"
}, },
"categories": [ "categories": [
"Other" "Other"
@@ -402,20 +402,20 @@
"compile": "tsc -p ./", "compile": "tsc -p ./",
"watch": "tsc -watch -p ./", "watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint", "pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts", "lint": "eslint src",
"test": "vscode-test", "test": "vscode-test",
"package": "echo \"start `vsce package`\" & vsce package", "package": "vsce package",
"publish": "vsce publish" "publish": "vsce publish"
}, },
"devDependencies": { "devDependencies": {
"@types/mocha": "^10.0.6", "@types/mocha": "^10.0.10",
"@types/node": "18.x", "@types/node": "20.x",
"@types/vscode": "^1.87.0", "@types/vscode": "^1.102.0",
"@typescript-eslint/eslint-plugin": "^7.4.0", "@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^7.4.0", "@typescript-eslint/parser": "^8.31.1",
"@vscode/test-cli": "^0.0.8", "@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.3.9", "@vscode/test-electron": "^2.5.2",
"eslint": "^8.57.0", "eslint": "^9.25.1",
"typescript": "^5.3.3" "typescript": "^5.8.3"
} }
} }

View File

@@ -8,7 +8,7 @@
], ],
"sourceMap": true, "sourceMap": true,
"rootDir": "src", "rootDir": "src",
"strict": true /* enable all strict type-checking options */ "strict": true, /* enable all strict type-checking options */
/* Additional Checks */ /* Additional Checks */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */