diff options
| author | Johannes Theiner <[email protected]> | 2025-11-10 12:26:07 +0100 |
|---|---|---|
| committer | Johannes Theiner <[email protected]> | 2025-11-10 12:26:07 +0100 |
| commit | 92cba2564729d344061db7a270aa07d9d8697e4a (patch) | |
| tree | b7c06d8b8b73fc61a1dc6aab7a13b083c1eb8180 /eslint.config.mts | |
| parent | 9984b040b68c0021852b83458eefaf524151191c (diff) | |
| download | ai-pulse-obsidian-plugin-92cba2564729d344061db7a270aa07d9d8697e4a.tar.gz ai-pulse-obsidian-plugin-92cba2564729d344061db7a270aa07d9d8697e4a.zip | |
update sample plugin with eslint instructions
Diffstat (limited to 'eslint.config.mts')
| -rw-r--r-- | eslint.config.mts | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/eslint.config.mts b/eslint.config.mts new file mode 100644 index 0000000..3062c4a --- /dev/null +++ b/eslint.config.mts @@ -0,0 +1,34 @@ +import tseslint from 'typescript-eslint'; +import obsidianmd from "eslint-plugin-obsidianmd"; +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, + globalIgnores([ + "node_modules", + "dist", + "esbuild.config.mjs", + "eslint.config.js", + "version-bump.mjs", + "versions.json", + "main.js", + ]), +); |
