juisy 2.0.0-beta.0 → 2.0.0-beta.1
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.
- package/bin/cli/cli.js +6 -4
- package/bin/cli/cmds/index.js +10 -10
- package/bin/cli/cmds/private/docs/generate-api.js +31 -0
- package/bin/cli/cmds/{docs → private/docs}/index.js +4 -6
- package/bin/cli/cmds/{print-globals.js → public/print-globals.js} +0 -1
- package/bin/scripts/prepare.js +22 -0
- package/dist/DataExporter.d.ts +6 -0
- package/dist/cli/CLIFactory.d.ts +48 -11
- package/dist/cli/Command.d.ts +23 -13
- package/dist/cli/GlobalSettings.schema.json +1 -0
- package/dist/cli/InterfaceUtils.d.ts +8 -2
- package/dist/cli/OutputUtils.d.ts +3 -3
- package/dist/cli/Plugin.d.ts +21 -0
- package/dist/cli/extract-usage.d.ts +7 -1
- package/dist/cli/index.d.ts +19 -6
- package/dist/cli/index.js +1160 -138
- package/dist/cli/plugins/command-handler-injections/augment.d.ts +29 -0
- package/dist/cli/{command-visitors → plugins/command-handler-injections/command-visitors}/command-handler-injections.d.ts +1 -1
- package/dist/cli/plugins/command-handler-injections/index.d.ts +3 -0
- package/dist/cli/plugins/command-meta/augment.d.ts +23 -0
- package/dist/cli/{command-visitors/get-command-meta.d.ts → plugins/command-meta/command-visitors/command-meta.d.ts} +1 -1
- package/dist/cli/plugins/command-meta/index.d.ts +3 -0
- package/dist/cli/plugins/default-command-fallbacks/augment.d.ts +3 -0
- package/dist/cli/plugins/default-command-fallbacks/command-visitors/default-command-fallbacks.d.ts +10 -0
- package/dist/cli/plugins/default-command-fallbacks/index.d.ts +3 -0
- package/dist/cli/plugins/load-env-file/augment.d.ts +9 -0
- package/dist/cli/plugins/load-env-file/index.d.ts +3 -0
- package/dist/cli/plugins/private-commands/augment.d.ts +6 -0
- package/dist/cli/{command-visitors → plugins/private-commands/command-visitors}/private-command.d.ts +1 -1
- package/dist/cli/plugins/private-commands/index.d.ts +3 -0
- package/dist/cli/plugins/register-changelog-command/augment.d.ts +110 -0
- package/dist/cli/plugins/register-changelog-command/cmds/index.d.ts +3 -0
- package/dist/cli/plugins/register-changelog-command/index.d.ts +3 -0
- package/dist/cli/plugins/register-docs-commands/augment.d.ts +18 -0
- package/dist/cli/plugins/register-docs-commands/cmds/generate-api.d.ts +3 -0
- package/dist/cli/plugins/register-docs-commands/cmds/generate-cli.d.ts +3 -0
- package/dist/cli/plugins/register-docs-commands/cmds/generate-readme.d.ts +3 -0
- package/dist/cli/plugins/register-docs-commands/cmds/index.d.ts +3 -0
- package/dist/cli/plugins/register-docs-commands/index.d.ts +3 -0
- package/dist/cli/plugins/register-git-hooks-commands/augment.d.ts +40 -0
- package/dist/cli/plugins/register-git-hooks-commands/cmds/index.d.ts +3 -0
- package/dist/cli/plugins/register-git-hooks-commands/cmds/reset.d.ts +3 -0
- package/dist/cli/plugins/register-git-hooks-commands/cmds/sync.d.ts +3 -0
- package/dist/cli/plugins/register-git-hooks-commands/index.d.ts +3 -0
- package/dist/cli/plugins/register-lint-commands/augment.d.ts +39 -0
- package/dist/cli/plugins/register-lint-commands/cmds/commit.d.ts +3 -0
- package/dist/cli/plugins/register-lint-commands/cmds/default.d.ts +3 -0
- package/dist/cli/plugins/register-lint-commands/cmds/markdown.d.ts +3 -0
- package/dist/cli/plugins/register-lint-commands/cmds/staged.d.ts +3 -0
- package/dist/cli/plugins/register-lint-commands/index.d.ts +3 -0
- package/dist/cli/plugins/register-lint-commands/settings.d.ts +11 -0
- package/dist/cli/plugins/register-lint-commands/types.d.ts +26 -0
- package/dist/cli/plugins/register-release-command/augment.d.ts +9 -0
- package/dist/cli/plugins/register-release-command/cmds/index.d.ts +3 -0
- package/dist/cli/plugins/register-release-command/index.d.ts +3 -0
- package/dist/cli/plugins/register-test-command/augment.d.ts +3 -0
- package/dist/cli/plugins/register-test-command/cmds/index.d.ts +3 -0
- package/dist/cli/plugins/register-test-command/index.d.ts +3 -0
- package/dist/cli/types.d.ts +73 -44
- package/dist/cli/utils.d.ts +3 -3
- package/dist/eject.d.ts +11 -4
- package/dist/index.d.ts +8 -2
- package/dist/index.js +80 -76
- package/dist/project-globals.d.ts +9 -0
- package/dist/templater/index.d.ts +6 -1
- package/dist/templater/index.js +27 -40
- package/dist/templater/markdown-templater/ReadmeTemplater.d.ts +28 -28
- package/dist/templater/markdown-templater/index.d.ts +3 -0
- package/dist/templater/types.d.ts +6 -0
- package/dist/utils/misc.d.ts +1 -1
- package/package.json +69 -55
- package/README.md +0 -211
- package/bin/cli/cmds/changelog.js +0 -41
- package/bin/cli/cmds/docs/generate-api.js +0 -22
- package/bin/cli/cmds/docs/generate-cli.js +0 -11
- package/bin/cli/cmds/docs/generate-readme.js +0 -11
- package/bin/cli/cmds/eject.js +0 -28
- package/bin/cli/cmds/git-hooks/index.js +0 -20
- package/bin/cli/cmds/git-hooks/reset.js +0 -48
- package/bin/cli/cmds/git-hooks/sync.js +0 -19
- package/bin/cli/cmds/release.js +0 -231
- package/bin/cli/lib/docs/generate-api-doc.js +0 -78
- package/bin/cli/lib/version/update-version.js +0 -52
- package/bin/scripts/commit-msg.js +0 -32
- package/bin/scripts/pre-commit.js +0 -24
- package/dist/cli/command-visitors/index.d.ts +0 -9
- package/src/index.js +0 -507
- package/template/CHANGELOG.md +0 -0
- package/template/bin/cli/cli.js +0 -27
- package/template/bin/cli/cmds/changelog.js +0 -71
- package/template/bin/cli/cmds/docs.js +0 -30
- package/template/bin/cli/cmds/docs_cmds/generate-api.js +0 -75
- package/template/bin/cli/cmds/docs_cmds/generate-readme.js +0 -51
- package/template/bin/cli/cmds/git-hooks.js +0 -30
- package/template/bin/cli/cmds/git_hooks_cmds/reset.js +0 -76
- package/template/bin/cli/cmds/git_hooks_cmds/sync.js +0 -44
- package/template/bin/cli/cmds/release.js +0 -219
- package/template/bin/cli/index.js +0 -7
- package/template/bin/cli/lib/docs/generate-api-doc.js +0 -33
- package/template/bin/cli/lib/release/generate-release-note.js +0 -3
- package/template/bin/cli/lib/version/update-version.js +0 -51
- package/template/bin/scripts/commit-msg.js +0 -42
- package/template/bin/scripts/pre-commit.js +0 -32
- package/template/docs/api/docs.config.js +0 -10
- package/template/docs/readme/config.js +0 -22
- package/template/docs/readme/readme.js +0 -70
- package/template/docs/readme/template.md +0 -53
- /package/bin/cli/cmds/{docs → private/docs}/lint.js +0 -0
- /package/bin/cli/cmds/{test.js → private/test.js} +0 -0
- /package/bin/cli/cmds/{squeeze.js → public/squeeze.js} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CommandModule as YargsCommandModule, CommandBuilder, MiddlewareFunction } from 'yargs';
|
|
2
|
+
declare module '../../types' {
|
|
3
|
+
/** Shims for private yargs types */
|
|
4
|
+
interface Positional {
|
|
5
|
+
cmd: NotEmptyArray<string>;
|
|
6
|
+
variadic: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* An array whose first element is not undefined.
|
|
10
|
+
*/
|
|
11
|
+
type NotEmptyArray<T = any> = [T, ...T[]];
|
|
12
|
+
interface CommandHandlerThisArg {
|
|
13
|
+
builder: CommandBuilder;
|
|
14
|
+
demanded: Positional[];
|
|
15
|
+
deprecated?: boolean;
|
|
16
|
+
description?: string | false;
|
|
17
|
+
handler: CommandObject['handler'];
|
|
18
|
+
middlewares: MiddlewareFunction[];
|
|
19
|
+
optional: Positional[];
|
|
20
|
+
original: string;
|
|
21
|
+
engine: CLIEngine;
|
|
22
|
+
log: (msg?: string, options?: any) => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Type declaration to extend "this" type inside command handler method
|
|
26
|
+
* @group Types
|
|
27
|
+
*/
|
|
28
|
+
type CommandHandler = (this: CommandHandlerThisArg, argv: Parameters<YargsCommandModule['handler']>[0]) => ReturnType<YargsCommandModule['handler']>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare module '../../types' {
|
|
2
|
+
/**
|
|
3
|
+
* @group Types
|
|
4
|
+
*/
|
|
5
|
+
interface CommandMeta extends Record<string, any> {
|
|
6
|
+
}
|
|
7
|
+
interface CLIEngine {
|
|
8
|
+
_meta: CommandMeta;
|
|
9
|
+
/**
|
|
10
|
+
* Get the CLI instance meta
|
|
11
|
+
* @example
|
|
12
|
+
* cli.getMeta()
|
|
13
|
+
*/
|
|
14
|
+
getMeta: () => this['_meta'];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @group Types
|
|
18
|
+
*/
|
|
19
|
+
interface CommandObject {
|
|
20
|
+
meta?: Partial<CommandMeta>;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {};
|
package/dist/cli/plugins/default-command-fallbacks/command-visitors/default-command-fallbacks.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommandVisitor } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Global command visitor to auto-set command meta
|
|
4
|
+
* @ignore
|
|
5
|
+
* @param commandObject - The command object
|
|
6
|
+
* @param cli - The CLIEngine instance
|
|
7
|
+
* @returns The commandObject with wrapped builder to inject CLI instance meta.
|
|
8
|
+
*/
|
|
9
|
+
export declare const visitor: CommandVisitor;
|
|
10
|
+
export declare const options: {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { default as ConventionalChangelogConfigSpec } from 'conventional-changelog-config-spec';
|
|
2
|
+
import { GetSemverTagsParams, GetCommitsParams } from '@conventional-changelog/git-client';
|
|
3
|
+
import { Preset as CCBumperPreset } from 'conventional-recommended-bump';
|
|
4
|
+
declare module '../../types' {
|
|
5
|
+
interface GlobalSettings {
|
|
6
|
+
/**
|
|
7
|
+
* conventional-changelog-cli configuration. All options are mapped using long name and converted to camelcase.
|
|
8
|
+
* Use the additional `onReleaseConfig` to pass options to the
|
|
9
|
+
* [@release-it/conventional-changelog](https://github.com/release-it/conventional-changelog) plugin.
|
|
10
|
+
* @see https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli
|
|
11
|
+
* @see https://github.com/release-it/conventional-changelog
|
|
12
|
+
*/
|
|
13
|
+
changelog?: {
|
|
14
|
+
/**
|
|
15
|
+
* Pass or override specific options for @release-it/conventional-changelog plugin.
|
|
16
|
+
* Default inherits from parent config.
|
|
17
|
+
*/
|
|
18
|
+
onReleaseConfig?: {
|
|
19
|
+
preset?: ConventionalChangelogConfigSpec.Config;
|
|
20
|
+
tagOpts?: GetSemverTagsParams;
|
|
21
|
+
commitsOpts?: GetCommitsParams;
|
|
22
|
+
whatBump?: CCBumperPreset['whatBump'];
|
|
23
|
+
/**
|
|
24
|
+
* Use true to ignore the recommended bump, and use the version provided by release-it (command line argument or prompt).
|
|
25
|
+
* Note that the changelog preview shows the recommended bump, as the desired version isn't known yet in the release-it process.
|
|
26
|
+
* The infile will have the correct version.
|
|
27
|
+
* Default value: false
|
|
28
|
+
*/
|
|
29
|
+
ignoreRecommendedBump?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Use true to strictly follow semver, also in consecutive pre-releases.
|
|
32
|
+
* This means that from a pre-release, a recommended bump will result in a next pre-release for the next version.
|
|
33
|
+
* For example, from 1.0.0-alpha.0 a recommended bump of minor will result in a preminor bump to 1.1.0-alpha.0.
|
|
34
|
+
* The default behavior results in a prerelease bump to 1.0.0-alpha.1.
|
|
35
|
+
* Default value: false
|
|
36
|
+
*/
|
|
37
|
+
strictSemVer?: boolean;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* --infile: Read the CHANGELOG from this file
|
|
41
|
+
*/
|
|
42
|
+
infile?: string;
|
|
43
|
+
/**
|
|
44
|
+
* --outfile: Write the CHANGELOG to this file
|
|
45
|
+
* If unspecified, it prints to stdout
|
|
46
|
+
*/
|
|
47
|
+
outfile?: string;
|
|
48
|
+
/**
|
|
49
|
+
* --same-file: Outputting to the infile so you
|
|
50
|
+
* don't need to specify the same file as outfile
|
|
51
|
+
*/
|
|
52
|
+
sameFile?: true;
|
|
53
|
+
/**
|
|
54
|
+
* --preset: Name of the preset you want to use. Must be one of the following:
|
|
55
|
+
* angular, atom, codemirror, conventionalcommits, ember, eslint, express, jquery or jshint
|
|
56
|
+
*/
|
|
57
|
+
preset?: 'angular' | 'atom' | 'codemirror' | 'conventionalcommits' | 'ember' | 'eslint' | 'express' | 'jquery' | 'jshint';
|
|
58
|
+
/**
|
|
59
|
+
* --pkg: A filepath of where your package.json is located
|
|
60
|
+
* Default is the closest package.json from cwd
|
|
61
|
+
*/
|
|
62
|
+
pkg?: string;
|
|
63
|
+
/**
|
|
64
|
+
* --append: Should the newer release be appended to the older release
|
|
65
|
+
* Default: false
|
|
66
|
+
*/
|
|
67
|
+
append?: true;
|
|
68
|
+
/**
|
|
69
|
+
* --release-count: How many releases to be generated from the latest
|
|
70
|
+
* If 0, the whole changelog will be regenerated and the outfile will be overwritten
|
|
71
|
+
* Default: 1
|
|
72
|
+
*/
|
|
73
|
+
releaseCount?: number;
|
|
74
|
+
/**
|
|
75
|
+
* --skip-unstable: If given, unstable tags will be skipped, e.g., x.x.x-alpha.1, x.x.x-rc.2
|
|
76
|
+
*/
|
|
77
|
+
skipUnstable?: true;
|
|
78
|
+
/**
|
|
79
|
+
* --output-unreleased: Output unreleased changelog
|
|
80
|
+
*/
|
|
81
|
+
outputUnreleased?: true;
|
|
82
|
+
/**
|
|
83
|
+
* --verbose: Verbose output. Use this for debugging
|
|
84
|
+
* Default: false
|
|
85
|
+
*/
|
|
86
|
+
verbose?: string;
|
|
87
|
+
/**
|
|
88
|
+
* --config: A filepath of your config script
|
|
89
|
+
* Example of a config script: https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-cli/test/fixtures/config.cjs
|
|
90
|
+
*/
|
|
91
|
+
config?: string;
|
|
92
|
+
/**
|
|
93
|
+
* --context: A filepath of a json that is used to define template variables
|
|
94
|
+
*/
|
|
95
|
+
context?: string;
|
|
96
|
+
/**
|
|
97
|
+
* --lerna-package: Generate a changelog for a specific lerna package (:pkg-name@1.0.0)
|
|
98
|
+
*/
|
|
99
|
+
lernaPackage?: string;
|
|
100
|
+
/**
|
|
101
|
+
* --tag-prefix: Tag prefix to consider when reading the tags
|
|
102
|
+
*/
|
|
103
|
+
tagPrefix?: string;
|
|
104
|
+
/**
|
|
105
|
+
* --commit-path: Generate a changelog scoped to a specific directory
|
|
106
|
+
*/
|
|
107
|
+
commitPath?: string;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare module '../../types' {
|
|
2
|
+
interface GlobalSettings {
|
|
3
|
+
/**
|
|
4
|
+
* Docs configuration (README, CLI, API...)
|
|
5
|
+
*/
|
|
6
|
+
docs?: {
|
|
7
|
+
/**
|
|
8
|
+
* Configure how README file is generated
|
|
9
|
+
*/
|
|
10
|
+
readme?: UserProvidedConfigSetting<{}>;
|
|
11
|
+
/**
|
|
12
|
+
* Configure how CLI docs are generated
|
|
13
|
+
*/
|
|
14
|
+
cli?: UserProvidedConfigSetting<{}>;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare module '../../types' {
|
|
2
|
+
interface GlobalSettings {
|
|
3
|
+
/**
|
|
4
|
+
* simple-git-hooks configuration
|
|
5
|
+
* @see https://github.com/toplenboren/simple-git-hooks/tree/master
|
|
6
|
+
*/
|
|
7
|
+
gitHooks?: UserProvidedConfigSetting<{
|
|
8
|
+
'applypatch-msg'?: string;
|
|
9
|
+
'pre-applypatch'?: string;
|
|
10
|
+
'post-applypatch'?: string;
|
|
11
|
+
'pre-commit'?: string;
|
|
12
|
+
'pre-merge-commit'?: string;
|
|
13
|
+
'prepare-commit-msg'?: string;
|
|
14
|
+
'commit-msg'?: string;
|
|
15
|
+
'post-commit'?: string;
|
|
16
|
+
'pre-rebase'?: string;
|
|
17
|
+
'post-checkout'?: string;
|
|
18
|
+
'post-merge'?: string;
|
|
19
|
+
'pre-push'?: string;
|
|
20
|
+
'pre-receive'?: string;
|
|
21
|
+
'update'?: string;
|
|
22
|
+
'proc-receive'?: string;
|
|
23
|
+
'post-receive'?: string;
|
|
24
|
+
'post-update'?: string;
|
|
25
|
+
'reference-transaction'?: string;
|
|
26
|
+
'push-to-checkout'?: string;
|
|
27
|
+
'pre-auto-gc'?: string;
|
|
28
|
+
'post-rewrite'?: string;
|
|
29
|
+
'sendemail-validate'?: string;
|
|
30
|
+
'fsmonitor-watchman'?: string;
|
|
31
|
+
'p4-changelist'?: string;
|
|
32
|
+
'p4-prepare-changelist'?: string;
|
|
33
|
+
'p4-post-changelist'?: string;
|
|
34
|
+
'p4-pre-submit'?: string;
|
|
35
|
+
'post-index-change'?: string;
|
|
36
|
+
'preserveUnused'?: boolean;
|
|
37
|
+
}>;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as ESLint } from 'eslint';
|
|
2
|
+
import { default as LintStaged } from 'lint-staged';
|
|
3
|
+
import { SettingsLintMarkdown } from './types';
|
|
4
|
+
declare module '../../types' {
|
|
5
|
+
interface GlobalSettings {
|
|
6
|
+
/**
|
|
7
|
+
* Linters configuration
|
|
8
|
+
*/
|
|
9
|
+
lint?: {
|
|
10
|
+
/**
|
|
11
|
+
* Configuration for eslint
|
|
12
|
+
* Default: `{ config: 'eslint.config.js' }`
|
|
13
|
+
*/
|
|
14
|
+
default?: UserProvidedConfigSetting<ESLint.Linter.LegacyConfig | ESLint.Linter.Config | ESLint.Linter.Config[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Configuration for commitlint
|
|
17
|
+
* See also: https://github.com/conventional-changelog/commitlint
|
|
18
|
+
* Default: `{ extends: [ '@commitlint/config-conventional' ] }`
|
|
19
|
+
*/
|
|
20
|
+
commit?: UserProvidedConfigSetting<{}>;
|
|
21
|
+
/**
|
|
22
|
+
* Configuration for markdownlint (markdownlint-cli2)
|
|
23
|
+
*/
|
|
24
|
+
markdown?: SettingsLintMarkdown;
|
|
25
|
+
/**
|
|
26
|
+
* Configuration for lint-staged
|
|
27
|
+
* See also: https://github.com/lint-staged/lint-staged
|
|
28
|
+
*/
|
|
29
|
+
staged?: UserProvidedConfigSetting<LintStaged.Config>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
interface CLIEngine {
|
|
33
|
+
getSettings(path: 'lint'): GlobalSettings['lint'] | undefined;
|
|
34
|
+
getSettings(path: 'lint.default'): Required<GlobalSettings>['lint']['default'] | undefined;
|
|
35
|
+
getSettings(path: 'lint.commit'): Required<GlobalSettings>['lint']['commit'] | undefined;
|
|
36
|
+
getSettings(path: 'lint.markdown'): SettingsLintMarkdown | undefined;
|
|
37
|
+
getSettings(path: 'lint.staged'): Required<GlobalSettings>['lint']['staged'] | undefined;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GlobalSettings } from '../../types';
|
|
2
|
+
import { SettingsLintMarkdown } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Resolve settings for 'lint' namespace
|
|
5
|
+
*/
|
|
6
|
+
export default function resolveSettings(settings?: Required<GlobalSettings>['lint']): {
|
|
7
|
+
default?: import('../..').UserProvidedConfigSetting<import("eslint").Linter.LegacyConfig | import("eslint").Linter.Config | import("eslint").Linter.Config[]>;
|
|
8
|
+
commit?: import('../..').UserProvidedConfigSetting<{}>;
|
|
9
|
+
markdown?: SettingsLintMarkdown;
|
|
10
|
+
staged?: import('../..').UserProvidedConfigSetting<import('lint-staged').Config>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types in ./node_modules/markdownlint-cli2/schema/markdownlint-cli2-config-schema.json
|
|
3
|
+
* or not currently parsable...
|
|
4
|
+
*/
|
|
5
|
+
type MarkdownlintCLI2Config = {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
globs?: never;
|
|
8
|
+
fix?: never;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Object for root config in lint.markdown settings
|
|
12
|
+
*/
|
|
13
|
+
export type SettingsLintMarkdown = Array<SettingsLintMarkdownRootConfig | SettingsLintMarkdownConfig>;
|
|
14
|
+
/**
|
|
15
|
+
* Object for root config in lint.markdown settings
|
|
16
|
+
*/
|
|
17
|
+
export type SettingsLintMarkdownRootConfig = {
|
|
18
|
+
config: string | MarkdownlintCLI2Config;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Object for glob scoped config in lint.markdown settings
|
|
22
|
+
*/
|
|
23
|
+
export type SettingsLintMarkdownConfig = SettingsLintMarkdownRootConfig & {
|
|
24
|
+
globs?: string[];
|
|
25
|
+
};
|
|
26
|
+
export {};
|