diff --git a/prettier.config.js b/.config/.prettierrc.js similarity index 100% rename from prettier.config.js rename to .config/.prettierrc.js diff --git a/eslint.config.js b/.config/eslint.config.js similarity index 99% rename from eslint.config.js rename to .config/eslint.config.js index bc6b752..d428b12 100644 --- a/eslint.config.js +++ b/.config/eslint.config.js @@ -8,7 +8,7 @@ import { fileURLToPath } from 'node:url' import tsEslint, { parser } from 'typescript-eslint' const __dirname = path.dirname(fileURLToPath(import.meta.url)) -const gitIgnorePath = path.join(__dirname, '.gitignore') +const gitIgnorePath = path.join(__dirname, '..', '.gitignore') const autofix = process.env.CI ? 'error' : 'warn' /** @type {import('@typescript-eslint/utils/ts-eslint').FlatConfig.Config[]} */ @@ -257,7 +257,7 @@ export default [ languageOptions: { parserOptions: { projectService: true, - tsconfigRootDir: __dirname, + tsconfigRootDir: path.join(__dirname, '..'), }, }, name: 'claudesidian/typed', diff --git a/tsconfig.json b/.config/tsconfig.json similarity index 100% rename from tsconfig.json rename to .config/tsconfig.json diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..f559842 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,29 @@ +# Ignore Obsidian folders +00_Inbox/ +01_Projects/ +02_Areas/ +03_Resources/ +04_Archives/ +05_Attachments/ +06_Metadata/ +OLD_VAULT/ + +# Ignore dependencies +node_modules/ +package-lock.json + +# Ignore build/dist +dist/ +build/ + +# Ignore hidden folders +.obsidian/ +.trash/ +.tmp/ +.backup/ + +# Ignore git +.git/ + +# Ignore config folder +.config/ \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..8b5f779 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,26 @@ +# Ignore Obsidian folders +00_Inbox/ +01_Projects/ +02_Areas/ +03_Resources/ +04_Archives/ +05_Attachments/ +06_Metadata/ +OLD_VAULT/ + +# Ignore dependencies +node_modules/ +package-lock.json + +# Ignore build/dist +dist/ +build/ + +# Ignore hidden folders +.obsidian/ +.trash/ +.tmp/ +.backup/ + +# Ignore git +.git/ \ No newline at end of file diff --git a/package.json b/package.json index fb587a7..3a50856 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,10 @@ "scripts": { "setup": "pnpm install && echo '✅ Setup complete! Configure GEMINI_API_KEY for vision features'", "test-gemini": "GEMINI_API_KEY=${GEMINI_API_KEY} node .claude/mcp-servers/gemini-vision.mjs", - "lint": "eslint . --fix && prettier --write .", - "lint:check": "eslint . && prettier --check .", - "format": "prettier --write .", - "format:check": "prettier --check .", + "lint": "eslint --config .config/eslint.config.js . --fix && prettier --config .config/.prettierrc.js --write .", + "lint:check": "eslint --config .config/eslint.config.js . && prettier --config .config/.prettierrc.js --check .", + "format": "prettier --config .config/.prettierrc.js --write .", + "format:check": "prettier --config .config/.prettierrc.js --check .", "attachments:list": "ls -1 '05_Attachments/' | grep -v Organized | head -20", "attachments:count": "ls -1 '05_Attachments/' | grep -v Organized | wc -l", "attachments:organized": "ls -1 '05_Attachments/Organized' 2>/dev/null | wc -l || echo '0'",