mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-29 14:31:35 +08:00
* build: add eslint-plugin-oxlint dependency Add new eslint plugin to enhance linting capabilities with oxlint rules * build(eslint): add oxlint plugin to eslint config Add oxlint plugin as recommended in the documentation to enhance linting capabilities * build: add oxlint v1.15.0 as a dependency * build: add oxlint to linting commands Add oxlint alongside eslint in test:lint and lint scripts for enhanced static analysis * build: add oxlint configuration file Configure oxlint with a comprehensive set of rules for JavaScript/TypeScript code quality checks * chore: update oxlint configuration and related settings - Add oxc to editor code actions on save - Update oxlint configs to use eslint, typescript, and unicorn presets - Extend ignore patterns in oxlint configuration - Simplify oxlint command in package.json scripts - Add oxlint-tsgolint dependency * fix: lint warning * chore: update oxlintrc from eslint.recommended * refactor(lint): update eslint and oxlint configurations - Add src/preload to eslint ignore patterns - Update oxlint env to es2022 and add environment overrides - Adjust several lint rule severities and configurations * fix: lint error * fix(file): replace eslint-disable with oxlint-disable in sanitizeFilename The linter was changed from ESLint to oxlint, so the directive needs to be updated accordingly. * fix: enforce stricter linting by failing on warnings in test:lint script * feat: add recommended ts-eslint rules into exlint * docs: remove outdated comment in oxlint config file * style: disable typescript/no-require-imports rule in oxlint config * docs(utils): fix comment typo from NODE to NOTE * fix(MessageErrorBoundary): correct error description display condition The error description was incorrectly showing in production and hiding in development. Fix the logic to show detailed errors only in development mode * chore: add oxc-vscode extension to recommended list * ci(workflows): reorder format check step in pr-ci.yml * chore: update yarn.lock
52 lines
1.5 KiB
JSON
52 lines
1.5 KiB
JSON
{
|
|
"[css]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[javascript]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[json]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[jsonc]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[markdown]": {
|
|
"files.trimTrailingWhitespace": false
|
|
},
|
|
"[scss]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[typescript]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[typescriptreact]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.biome": "explicit",
|
|
"source.fixAll.eslint": "explicit",
|
|
"source.fixAll.oxc": "explicit",
|
|
"source.organizeImports": "never"
|
|
},
|
|
"editor.formatOnSave": true,
|
|
"files.associations": {
|
|
"*.css": "tailwindcss"
|
|
},
|
|
"files.eol": "\n",
|
|
"i18n-ally.displayLanguage": "zh-cn",
|
|
"i18n-ally.enabledFrameworks": ["react-i18next", "i18next"],
|
|
"i18n-ally.enabledParsers": ["ts", "js", "json"], // 解析语言
|
|
"i18n-ally.fullReloadOnChanged": true, // 界面显示语言
|
|
"i18n-ally.keystyle": "nested", // 翻译路径格式
|
|
"i18n-ally.localesPaths": ["src/renderer/src/i18n/locales"],
|
|
// "i18n-ally.namespace": true, // 开启命名空间
|
|
"i18n-ally.sortKeys": true, // 排序
|
|
"i18n-ally.sourceLanguage": "zh-cn", // 翻译源语言
|
|
"i18n-ally.usage.derivedKeyRules": ["{key}_one", "{key}_other"], // 标记单复数形式的键为已翻译
|
|
"search.exclude": {
|
|
"**/dist/**": true,
|
|
".yarn/releases/**": true
|
|
}
|
|
}
|