markuplint 4.11.8 → 4.11.9-dev.110
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/lib/cli/init/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export async function initialize() {
|
|
|
29
29
|
message: 'Which do you use template engines?',
|
|
30
30
|
choices: Object.entries(langs).map(([key, name]) => ({ name, value: key })),
|
|
31
31
|
});
|
|
32
|
-
const autoInstall = await confirm('
|
|
32
|
+
const autoInstall = await confirm('Install npm dependencies?');
|
|
33
33
|
const customize = await confirm('Do you customize rules?');
|
|
34
34
|
let ruleSettingMode = 'none';
|
|
35
35
|
if (customize) {
|
|
@@ -57,7 +57,7 @@ export async function initialize() {
|
|
|
57
57
|
await fs.writeFile(filePath, JSON.stringify(config, null, 2), { encoding: 'utf8' });
|
|
58
58
|
process.stdout.write(`✨Created: ${filePath}\n`);
|
|
59
59
|
if (autoInstall) {
|
|
60
|
-
process.stdout.write('Install automatically\n');
|
|
60
|
+
process.stdout.write('Install the dependencies automatically\n');
|
|
61
61
|
const modules = selectModules(selectedLangs);
|
|
62
62
|
const result = await installModule(modules, true).catch(error_ => new Error(error_));
|
|
63
63
|
if (result instanceof Error) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { name, font, pad, getWidth, messageToString } from '@markuplint/cli-utils';
|
|
1
|
+
import { name, font, pad, getWidth, messageToString, xterm } from '@markuplint/cli-utils';
|
|
2
2
|
const commandName = name.toLowerCase();
|
|
3
3
|
const loggerError = font.red;
|
|
4
|
-
const loggerWarning =
|
|
4
|
+
const loggerWarning = xterm(208);
|
|
5
5
|
export function simpleReporter(results, options) {
|
|
6
6
|
const sizes = {
|
|
7
7
|
line: 0,
|
|
@@ -20,7 +20,7 @@ export function simpleReporter(results, options) {
|
|
|
20
20
|
for (const violation of results.violations) {
|
|
21
21
|
const s = violation.severity === 'error' ? loggerError('✖') : loggerWarning('⚠️');
|
|
22
22
|
const meg = messageToString(violation.message, violation.reason);
|
|
23
|
-
out.push(` ${font.cyan(`${pad(violation.line, sizes.line, true)}:${pad(violation.col, sizes.col)}`)} ${s} ${pad(meg, sizes.meg)} ${
|
|
23
|
+
out.push(` ${font.cyan(`${pad(violation.line, sizes.line, true)}:${pad(violation.col, sizes.col)}`)} ${s} ${pad(meg, sizes.meg)} ${xterm(8)(violation.ruleId)} `);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
else if (!options.problemOnly) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { messageToString, font, name, invisibleSpace, space, pad, getWidth } from '@markuplint/cli-utils';
|
|
1
|
+
import { messageToString, font, name, invisibleSpace, space, pad, getWidth, xterm } from '@markuplint/cli-utils';
|
|
2
2
|
const commandName = name.toLowerCase();
|
|
3
3
|
const loggerError = font.red;
|
|
4
|
-
const loggerWarning =
|
|
4
|
+
const loggerWarning = xterm(208);
|
|
5
5
|
export function standardReporter(results, options) {
|
|
6
6
|
const sizes = {
|
|
7
7
|
line: 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markuplint",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.9-dev.110+16e148e6e",
|
|
4
4
|
"description": "An HTML linter for all markup developers",
|
|
5
5
|
"author": "Yusuke Hirao",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"clean": "tsc --build --clean"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@markuplint/cli-utils": "4.4.
|
|
30
|
-
"@markuplint/file-resolver": "4.9.
|
|
31
|
-
"@markuplint/html-parser": "4.6.
|
|
32
|
-
"@markuplint/html-spec": "4.14.
|
|
33
|
-
"@markuplint/i18n": "4.6.
|
|
34
|
-
"@markuplint/ml-ast": "4.4.
|
|
35
|
-
"@markuplint/ml-config": "4.8.
|
|
36
|
-
"@markuplint/ml-core": "4.12.
|
|
37
|
-
"@markuplint/ml-spec": "4.9.
|
|
38
|
-
"@markuplint/rules": "4.10.
|
|
39
|
-
"@markuplint/shared": "4.4.
|
|
29
|
+
"@markuplint/cli-utils": "4.4.11-dev.350+16e148e6e",
|
|
30
|
+
"@markuplint/file-resolver": "4.9.14-dev.110+16e148e6e",
|
|
31
|
+
"@markuplint/html-parser": "4.6.19-dev.110+16e148e6e",
|
|
32
|
+
"@markuplint/html-spec": "4.14.2-dev.110+16e148e6e",
|
|
33
|
+
"@markuplint/i18n": "4.6.1-dev.350+16e148e6e",
|
|
34
|
+
"@markuplint/ml-ast": "4.4.10-dev.350+16e148e6e",
|
|
35
|
+
"@markuplint/ml-config": "4.8.11-dev.110+16e148e6e",
|
|
36
|
+
"@markuplint/ml-core": "4.12.4-dev.110+16e148e6e",
|
|
37
|
+
"@markuplint/ml-spec": "4.9.6-dev.110+16e148e6e",
|
|
38
|
+
"@markuplint/rules": "4.10.12-dev.110+16e148e6e",
|
|
39
|
+
"@markuplint/shared": "4.4.11-dev.350+16e148e6e",
|
|
40
40
|
"@types/debug": "4.1.12",
|
|
41
41
|
"chokidar": "4.0.3",
|
|
42
42
|
"debug": "4.4.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"os-locale": "6.0.2",
|
|
46
46
|
"strict-event-emitter": "0.5.1",
|
|
47
47
|
"strip-ansi": "7.1.0",
|
|
48
|
-
"type-fest": "4.
|
|
48
|
+
"type-fest": "4.39.1"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "16e148e6ec2abac673c5ea1e42bbb666d421f357"
|
|
51
51
|
}
|