mirror of
https://github.com/gapmiss/inline-callouts.git
synced 2026-07-22 05:45:12 +00:00
- Remove disablePlugin/enablePlugin reload method (Scorecard security risk) - Add eslint-plugin-obsidianmd with typescript-eslint type-checked rules - Fix 113 ESLint errors across all source files: - Replace any types with proper typing - Use createSpan/createEl instead of document.createElement - Fix floating promises, unused vars, case declarations - Shorten command IDs to avoid plugin name duplication - Use window.setTimeout instead of bare setTimeout - Update minAppVersion to 1.4.10 (required by AbstractInputSuggest) - Update TypeScript to 5.x, ESLint to 9.x - Add GitHub Actions workflow for releases with artifact attestation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
882 B
JavaScript
28 lines
882 B
JavaScript
import tsParser from "@typescript-eslint/parser";
|
|
import tseslint from "typescript-eslint";
|
|
import obsidianmd from "eslint-plugin-obsidianmd";
|
|
|
|
export default [
|
|
{ ignores: ["node_modules/**", "main.js", "*.mjs", "package.json", "package-lock.json", "versions.json", "tsconfig.json"] },
|
|
...tseslint.configs.recommendedTypeChecked.map(config => ({
|
|
...config,
|
|
files: ["src/**/*.ts"],
|
|
})),
|
|
...obsidianmd.configs.recommended,
|
|
{
|
|
files: ["src/**/*.ts"],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
project: "./tsconfig.json",
|
|
sourceType: "module",
|
|
},
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-unused-vars": ["error", {
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
}],
|
|
},
|
|
},
|
|
];
|