chore: enable markdownlint

This commit is contained in:
Michael Naumov 2025-10-05 19:54:40 -06:00
parent 72ad010966
commit 94bbc2a691
6 changed files with 926 additions and 178 deletions

5
.markdownlint-cli2.mjs Normal file
View file

@ -0,0 +1,5 @@
import { createJiti } from 'jiti';
const jiti = createJiti(import.meta.url);
const { config } = await jiti.import('./.markdownlint-cli2.mts');
// eslint-disable-next-line import-x/no-default-export -- markdownlint-cli2 infrastructure requires a default export.
export default config;

6
.markdownlint-cli2.mts Normal file
View file

@ -0,0 +1,6 @@
import type { MarkdownlintCli2ConfigurationSchema } from 'obsidian-dev-utils/ScriptUtils/markdownlint/@types/markdownlint-cli2-config-schema';
import { obsidianDevUtilsConfig } from 'obsidian-dev-utils/ScriptUtils/markdownlint/markdownlint-cli2-config';
export const config: MarkdownlintCli2ConfigurationSchema = {
...obsidianDevUtilsConfig
};

View file

@ -4,13 +4,13 @@ This is a plugin for [Obsidian](https://obsidian.md/) that shows the backlink's
By default, Obsidian just shows the note name
![](./images/just-name.png)
![Just name](./images/just-name.png)
Which might be confusing when you have notes with the same name in different folders.
This plugin shows the full name helping to identify the backlinks better
![](./images/full-path.png)
![Full path](./images/full-path.png)
## Installation
@ -38,7 +38,9 @@ For more details, refer to the [documentation](https://github.com/mnaoumov/obsid
## Support
<a href="https://www.buymeacoffee.com/mnaoumov" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;"></a>
<!-- markdownlint-disable MD033 -->
<a href="https://www.buymeacoffee.com/mnaoumov" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="60" width="217"></a>
<!-- markdownlint-enable MD033 -->
## License

1075
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -18,6 +18,8 @@
"format:check": "obsidian-dev-utils format:check",
"lint": "obsidian-dev-utils lint",
"lint:fix": "obsidian-dev-utils lint:fix",
"lint:md": "obsidian-dev-utils lint:md",
"lint:md:fix": "obsidian-dev-utils lint:md:fix",
"prepare": "husky",
"spellcheck": "obsidian-dev-utils spellcheck",
"version": "obsidian-dev-utils version"
@ -40,6 +42,6 @@
"@antfu/utils": "9.2.0",
"boolean": "npm:dry-uninstall",
"dompurify": "3.0.1",
"type-fest": "5.0.1"
"type-fest": "latest"
}
}

View file

@ -26,10 +26,10 @@
"verbatimModuleSyntax": true
},
"include": [
"./eslint.config.*ts",
"./src/**/*.svelte",
"./.markdownlint-cli2.mts",
"./commitlint.config.ts",
"./eslint.config.mts",
"./src/**/*.ts",
"./src/**/*.tsx",
"./scripts/**/*.ts"
]
}