mirror of
https://github.com/firstsun-dev/git-files-sync.git
synced 2026-07-22 06:54:27 +00:00
- Use FileSystemAdapter.list() recursively to discover hidden files (e.g. .claude) - Fix ensureParentDirs to use adapter.mkdir() for hidden directory creation - Expand BINARY_EXTENSIONS with modern image, audio, video, archive, and design formats - Exclude .agents/** from ESLint to prevent project-service parse errors Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
42 lines
862 B
TypeScript
42 lines
862 B
TypeScript
import tseslint from 'typescript-eslint';
|
|
import obsidianmd from "eslint-plugin-obsidianmd";
|
|
import sonarjs from "eslint-plugin-sonarjs";
|
|
import globals from "globals";
|
|
import { globalIgnores } from "eslint/config";
|
|
|
|
export default tseslint.config(
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
},
|
|
parserOptions: {
|
|
projectService: {
|
|
allowDefaultProject: [
|
|
'eslint.config.js',
|
|
'manifest.json'
|
|
]
|
|
},
|
|
tsconfigRootDir: import.meta.dirname,
|
|
extraFileExtensions: ['.json']
|
|
},
|
|
},
|
|
},
|
|
...obsidianmd.configs.recommended,
|
|
{
|
|
files: ["src/**/*.ts", "src/**/*.tsx"],
|
|
...sonarjs.configs.recommended,
|
|
},
|
|
globalIgnores([
|
|
"node_modules",
|
|
"dist",
|
|
"esbuild.config.mjs",
|
|
"eslint.config.js",
|
|
"version-bump.mjs",
|
|
"versions.json",
|
|
"main.js",
|
|
".claude/**",
|
|
".agents/**",
|
|
"coverage/**",
|
|
]),
|
|
);
|