-
Notifications
You must be signed in to change notification settings - Fork 2
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
10 changed files
with
995 additions
and
135 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
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 |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false }, | ||
"files": { "ignoreUnknown": false, "ignore": [] }, | ||
"formatter": { | ||
"enabled": true, | ||
"useEditorconfig": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 120, | ||
"attributePosition": "auto", | ||
"bracketSpacing": true | ||
}, | ||
"organizeImports": { "enabled": true }, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": false, | ||
"complexity": { "noBannedTypes": "error", "noUselessThisAlias": "error", "useArrowFunction": "off" }, | ||
"correctness": { "noUnusedVariables": "warn", "useArrayLiterals": "off" }, | ||
"style": { | ||
"noInferrableTypes": "error", | ||
"noNamespace": "off", | ||
"noNonNullAssertion": "off", | ||
"useAsConstAssertion": "error", | ||
"useBlockStatements": "off" | ||
}, | ||
"suspicious": { | ||
"noEmptyBlockStatements": "off", | ||
"noEmptyInterface": "error", | ||
"noExplicitAny": "off", | ||
"noExtraNonNullAssertion": "error", | ||
"noMisleadingInstantiator": "error", | ||
"useNamespaceKeyword": "error" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"jsxQuoteStyle": "double", | ||
"quoteProperties": "asNeeded", | ||
"trailingCommas": "all", | ||
"semicolons": "always", | ||
"arrowParentheses": "always", | ||
"bracketSameLine": false, | ||
"quoteStyle": "single", | ||
"attributePosition": "auto", | ||
"bracketSpacing": true | ||
} | ||
}, | ||
"overrides": [ | ||
{ | ||
"include": ["*.ts", "*.tsx"], | ||
"linter": { | ||
"rules": { | ||
"correctness": { | ||
"noConstAssign": "off", | ||
"noGlobalObjectCalls": "off", | ||
"noInvalidConstructorSuper": "off", | ||
"noNewSymbol": "off", | ||
"noSetterReturn": "off", | ||
"noUndeclaredVariables": "off", | ||
"noUnreachable": "off", | ||
"noUnreachableSuper": "off" | ||
}, | ||
"style": { "noArguments": "error", "noVar": "error", "useConst": "error" }, | ||
"suspicious": { | ||
"noDuplicateClassMembers": "off", | ||
"noDuplicateObjectKeys": "off", | ||
"noDuplicateParameters": "off", | ||
"noFunctionAssign": "off", | ||
"noImportAssign": "off", | ||
"noRedeclare": "off", | ||
"noUnsafeNegation": "off", | ||
"useGetterReturn": "off", | ||
"useValidTypeof": "off" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"include": ["*.ts", "*.tsx"], | ||
"linter": { | ||
"rules": { | ||
"correctness": { | ||
"noConstAssign": "off", | ||
"noGlobalObjectCalls": "off", | ||
"noInvalidConstructorSuper": "off", | ||
"noNewSymbol": "off", | ||
"noSetterReturn": "off", | ||
"noUndeclaredVariables": "off", | ||
"noUnreachable": "off", | ||
"noUnreachableSuper": "off" | ||
}, | ||
"style": { "noArguments": "error", "noVar": "error", "useConst": "error" }, | ||
"suspicious": { | ||
"noDuplicateClassMembers": "off", | ||
"noDuplicateObjectKeys": "off", | ||
"noDuplicateParameters": "off", | ||
"noFunctionAssign": "off", | ||
"noImportAssign": "off", | ||
"noRedeclare": "off", | ||
"noUnsafeNegation": "off", | ||
"useGetterReturn": "off", | ||
"useValidTypeof": "off" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,48 +5,33 @@ | |
"author": "Tony Fettes <[email protected]>", | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"keywords": [ | ||
"coc.nvim", | ||
"rime" | ||
], | ||
"keywords": ["coc.nvim", "rime"], | ||
"engines": { | ||
"coc": "^0.0.80" | ||
}, | ||
"scripts": { | ||
"lint": "eslint src --ext ts", | ||
"lint": "biome lint", | ||
"clean": "rimraf lib", | ||
"watch": "node esbuild.js --watch", | ||
"prepack": "xmake -y && xmake install && pkg-prebuilds-copy --baseDir build/release --source rime.node --name=rime --strip --napi_version=7 && node esbuild.js", | ||
"prepare": "npm-run-all clean prepack" | ||
}, | ||
"prettier": { | ||
"singleQuote": true, | ||
"printWidth": 120, | ||
"semi": true | ||
}, | ||
"devDependencies": { | ||
"@types/mkdirp": "^0.5.2", | ||
"@typescript-eslint/eslint-plugin": "^4.8.2", | ||
"@typescript-eslint/parser": "^4.8.2", | ||
"biome": "^0.3.3", | ||
"coc.nvim": "^0.0.80", | ||
"esbuild": "^0.20.2", | ||
"eslint": "^7.14.0", | ||
"eslint-config-prettier": "^7.1.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"mkdirp": "^0.5.1", | ||
"npm-run-all": "^4.1.5", | ||
"pkg-prebuilds": "^1.0.0", | ||
"prettier": "^2.2.0", | ||
"rimraf": "^5.0.5", | ||
"typescript": "^4.1.2", | ||
"vscode-languageserver-protocol": "^3.14.1", | ||
"vscode-languageserver-textdocument": "^1.0.1", | ||
"vscode-languageserver-types": "^3.14.0", | ||
"xmake-build-system": "2.9.7" | ||
}, | ||
"activationEvents": [ | ||
"*" | ||
], | ||
"activationEvents": ["*"], | ||
"contributes": { | ||
"configuration": { | ||
"type": "object", | ||
|
@@ -74,10 +59,7 @@ | |
"rime.traits.shared_data_dir": { | ||
"oneOf": [ | ||
{ | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
"type": ["string", "null"] | ||
}, | ||
{ | ||
"type": "array", | ||
|
@@ -97,10 +79,7 @@ | |
"rime.traits.user_data_dir": { | ||
"oneOf": [ | ||
{ | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
"type": ["string", "null"] | ||
}, | ||
{ | ||
"type": "array", | ||
|
@@ -118,18 +97,12 @@ | |
"description": "user data directory of rime. `null` will not use user data (just use shared data)" | ||
}, | ||
"rime.traits.log_dir": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"type": ["string", "null"], | ||
"default": "", | ||
"description": "log directory of rime. By default, it will be `~/.config/coc/extensions/coc-rime-data`. `null` will disable logging" | ||
}, | ||
"rime.traits.distribution_name": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"type": ["string", "null"], | ||
"default": "Rime" | ||
}, | ||
"rime.traits.distribution_code_name": { | ||
|
@@ -141,21 +114,13 @@ | |
"default": "0.1.3" | ||
}, | ||
"rime.traits.app_name": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"type": ["string", "null"], | ||
"default": "rime.coc-rime", | ||
"description": "Pass a C-string constant in the format \"rime.x\" where 'x' is the name of your application. Add prefix \"rime.\" to ensure old log files are automatically cleaned." | ||
}, | ||
"rime.traits.min_log_level": { | ||
"type": "integer", | ||
"enum": [ | ||
0, | ||
1, | ||
2, | ||
3 | ||
], | ||
"enum": [0, 1, 2, 3], | ||
"default": 3, | ||
"description": "Minimal level of logged messages. Value is passed to Glog library using FLAGS_minloglevel variable. 0 = INFO (default), 1 = WARNING, 2 = ERROR, 3 = FATAL" | ||
}, | ||
|
@@ -164,18 +129,7 @@ | |
"items": { | ||
"type": "string" | ||
}, | ||
"default": [ | ||
"①", | ||
"②", | ||
"③", | ||
"④", | ||
"⑤", | ||
"⑥", | ||
"⑦", | ||
"⑧", | ||
"⑨", | ||
"⓪" | ||
], | ||
"default": ["①", "②", "③", "④", "⑤", "⑥", "⑦", "⑧", "⑨", "⓪"], | ||
"description": "indices for IME" | ||
}, | ||
"rime.ui.left": { | ||
|
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
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
Oops, something went wrong.