mirror of
https://github.com/embersparks/obsidian-github-stars-manager.git
synced 2026-07-22 06:44:31 +00:00
chore: add eslint configuration for local code checking
添加 ESLint 配置以支持本地代码检查: - 安装 eslint 和 eslint-plugin-obsidianmd - 添加 eslint.config.mjs 配置文件 - 遵循 ObsidianReviewBot 建议:本地运行代码检查 这将帮助开发者在提交前发现并修复代码规范问题。 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
parent
5a0ae21b25
commit
f680ff38d5
3 changed files with 3751 additions and 371 deletions
17
eslint.config.mjs
Normal file
17
eslint.config.mjs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import tsparser from "@typescript-eslint/parser";
|
||||
import obsidianmd from "eslint-plugin-obsidianmd";
|
||||
|
||||
export default [
|
||||
...obsidianmd.configs.recommended,
|
||||
{
|
||||
files: ["src/**/*.ts"],
|
||||
languageOptions: {
|
||||
parser: tsparser,
|
||||
parserOptions: {
|
||||
project: "./tsconfig.json",
|
||||
ecmaVersion: 2020,
|
||||
sourceType: "module"
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
4095
package-lock.json
generated
4095
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
|
@ -8,7 +8,13 @@
|
|||
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
||||
"version": "node version-bump.mjs && git add manifest.json versions.json"
|
||||
},
|
||||
"keywords": ["obsidian", "github", "stars", "repository", "plugin"],
|
||||
"keywords": [
|
||||
"obsidian",
|
||||
"github",
|
||||
"stars",
|
||||
"repository",
|
||||
"plugin"
|
||||
],
|
||||
"author": "EmberSparks",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
|
|
@ -18,6 +24,8 @@
|
|||
"builtin-modules": "^3.3.0",
|
||||
"dotenv": "^16.3.1",
|
||||
"esbuild": "^0.19.0",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-plugin-obsidianmd": "^0.1.9",
|
||||
"obsidian": "latest",
|
||||
"tslib": "^2.6.0",
|
||||
"typescript": "^5.0.0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue