mirror of
https://github.com/mnaoumov/obsidian-advanced-debug-mode.git
synced 2026-07-22 05:44:00 +00:00
chore: enable markdownlint
This commit is contained in:
parent
08ddac91bb
commit
8046dc4862
6 changed files with 926 additions and 218 deletions
5
.markdownlint-cli2.mjs
Normal file
5
.markdownlint-cli2.mjs
Normal 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
6
.markdownlint-cli2.mts
Normal 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
|
||||
};
|
||||
12
README.md
12
README.md
|
|
@ -71,7 +71,7 @@ foo1();
|
|||
|
||||
Without the plugin you get the error in the console
|
||||
|
||||
```
|
||||
```text
|
||||
Uncaught Error: Error from foo11
|
||||
at HTMLDivElement.foo11 (<anonymous>:47:9)
|
||||
at foo10 (<anonymous>:43:7)
|
||||
|
|
@ -80,7 +80,7 @@ Uncaught Error: Error from foo11
|
|||
|
||||
With the plugin you get
|
||||
|
||||
```
|
||||
```text
|
||||
Uncaught Error: Error from foo11
|
||||
at HTMLDivElement.foo11 (<anonymous>:47:9)
|
||||
at foo10 (<anonymous>:43:7)
|
||||
|
|
@ -193,7 +193,7 @@ foo1();
|
|||
|
||||
Without the plugin you get the error in the console
|
||||
|
||||
```
|
||||
```text
|
||||
Uncaught (in promise) Error: Error from barAsync2
|
||||
at barAsync2 (<anonymous>:58:9)
|
||||
at async barAsync1 (<anonymous>:52:3)
|
||||
|
|
@ -201,7 +201,7 @@ Uncaught (in promise) Error: Error from barAsync2
|
|||
|
||||
With the plugin you get
|
||||
|
||||
```
|
||||
```text
|
||||
Uncaught (in promise) Error: Error from barAsync2
|
||||
at barAsync2 (<anonymous>:58:9)
|
||||
at async barAsync1 (<anonymous>:52:3)
|
||||
|
|
@ -272,7 +272,9 @@ To install the latest beta release of this plugin (regardless if it is available
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
|||
1111
package-lock.json
generated
1111
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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"
|
||||
|
|
@ -42,6 +44,6 @@
|
|||
"@antfu/utils": "9.2.0",
|
||||
"boolean": "npm:dry-uninstall",
|
||||
"dompurify": "3.0.1",
|
||||
"type-fest": "5.0.1"
|
||||
"type-fest": "latest"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue