mirror of
https://github.com/lemon695/obsidian-note-image-gallery.git
synced 2026-07-22 06:41:53 +00:00
28 lines
576 B
JavaScript
28 lines
576 B
JavaScript
import obsidianmd from "eslint-plugin-obsidianmd";
|
|
import tseslint from "typescript-eslint";
|
|
import globals from "globals";
|
|
|
|
export default tseslint.config(
|
|
// 忽略构建产物和依赖
|
|
{
|
|
ignores: ["node_modules/**", "dist/**", "build/**", "main.js", "version-bump.mjs"],
|
|
},
|
|
|
|
{
|
|
files: ["**/*.ts", "**/*.tsx"],
|
|
languageOptions: {
|
|
parser: tseslint.parser,
|
|
parserOptions: {
|
|
project: "./tsconfig.json",
|
|
},
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
},
|
|
},
|
|
},
|
|
|
|
...tseslint.configs.recommended,
|
|
|
|
...obsidianmd.configs.recommended,
|
|
);
|