edems-dev_md-discord-syntax/eslint.config.mjs
Edems b3294030f8 fix(obsidian): warning+id
- Changed plugin ID to md-discord-syntax across manifests, validation, package metadata, and release instructions.
 - Resolved TypeScript unsafe-value warnings through correct typed ESLint configuration and source typing.
 - Replaced flagged document.createElement usage with Obsidian createEl.
 - Addressed text-decoration compatibility warnings.
 - Optimized spoiler detection to inspect only relevant document lines instead of allocating the full document text.
 - Updated tests for strict type safety and promise handling.
2026-07-21 21:45:33 +02:00

25 lines
526 B
JavaScript

import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
{
ignores: [
"**/dist/**",
"packages/obsidian/main.js",
"packages/obsidian/styles.css",
"**/*.mjs",
"**/*.js",
],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
{
files: ["packages/**/*.ts"],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
);