mirror of
https://github.com/firstsun-dev/git-files-sync.git
synced 2026-07-22 06:54:27 +00:00
* refactor: fix quality gate issues, improve type safety and pagination * refactor: integrate eslint-plugin-sonarjs and fix cognitive complexity issues * fix(ci): remove invalid secrets reference in workflow with block * fix(build): resolve strict null check errors in diff logic --------- Co-authored-by: ClaudiaFang <tianyao.firstsun@gmail.coim>
41 lines
846 B
TypeScript
41 lines
846 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/**",
|
|
"coverage/**",
|
|
]),
|
|
);
|