juisy 2.0.0-beta.1 → 2.0.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,42 +0,0 @@
1
- /** @type {import('#juisy/cli').Command} */
2
- export default new CLI.Command({
3
- command: 'lint',
4
- describe: 'Lint markdown with markdownlint',
5
- builder: function (cli) {
6
- cli.option('c', {
7
- alias: 'config',
8
- type: 'string',
9
- describe: 'Path to custom markdownlint config file (relative to root folder)',
10
- requiresArg: true
11
- })
12
- cli.option('f', {
13
- alias: 'fix',
14
- type: 'boolean',
15
- describe: 'Auto fix by passing --fix option to markdownlint-cli2',
16
- default: false
17
- })
18
- return cli
19
- },
20
- async handler (argv) {
21
- const { abort, run } = CLI.InterfaceUtils
22
- const configPath = argv.config || './docs/.markdownlint-cli2.cjs' // default relative to root folder
23
-
24
- /**
25
- * Call markdownlint command
26
- */
27
- try {
28
- await run(
29
- 'npx',
30
- [
31
- 'markdownlint-cli2',
32
- '--config',
33
- configPath,
34
- ...(argv.fix ? [ '--fix' ] : [])
35
- ],
36
- { stdio: 'inherit' }
37
- )
38
- } catch (error) {
39
- abort(error.exitCode)
40
- }
41
- }
42
- })
@@ -1,3 +0,0 @@
1
- declare module '../../types' {
2
- }
3
- export {};