markuplint 4.9.2 → 4.9.4

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/CHANGELOG.md CHANGED
@@ -3,17 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [4.9.2](https://github.com/markuplint/markuplint/compare/markuplint@4.9.1...markuplint@4.9.2) (2024-06-25)
6
+ ## [4.9.4](https://github.com/markuplint/markuplint/compare/markuplint@4.9.3...markuplint@4.9.4) (2024-09-23)
7
+
8
+ **Note:** Version bump only for package markuplint
7
9
 
8
10
 
9
- ### Bug Fixes
10
11
 
11
- * **markuplint:** ensure `--config` option correctly handles absolute paths ([fd36c1a](https://github.com/markuplint/markuplint/commit/fd36c1a4475f71d8b1e83212a60639c7361cd702))
12
12
 
13
13
 
14
+ ## [4.9.3](https://github.com/markuplint/markuplint/compare/markuplint@4.9.2...markuplint@4.9.3) (2024-09-02)
15
+
16
+ **Note:** Version bump only for package markuplint
17
+
14
18
 
15
19
 
16
20
 
21
+
22
+ ## [4.9.2](https://github.com/markuplint/markuplint/compare/markuplint@4.9.1...markuplint@4.9.2) (2024-06-25)
23
+
24
+ ### Bug Fixes
25
+
26
+ - **markuplint:** ensure `--config` option correctly handles absolute paths ([fd36c1a](https://github.com/markuplint/markuplint/commit/fd36c1a4475f71d8b1e83212a60639c7361cd702))
27
+
17
28
  ## [4.9.1](https://github.com/markuplint/markuplint/compare/markuplint@4.9.0...markuplint@4.9.1) (2024-06-09)
18
29
 
19
30
  ### Bug Fixes
package/README.md CHANGED
@@ -128,6 +128,7 @@ Examples
128
128
  [<img width="36" src="https://avatars.githubusercontent.com/u/111797" alt="Yasuo Fukuda" />](https://github.com/sigwyg)
129
129
  [<img width="36" src="https://avatars.githubusercontent.com/u/802921" alt="Hideyuki Saito" />](https://github.com/hideyukisaito)
130
130
  [<img width="36" src="https://avatars.githubusercontent.com/u/91047157" alt="shamokit" />](https://github.com/shamokit)
131
+ [<img width="36" src="https://avatars.githubusercontent.com/u/18516475" alt="takanorip" />](https://github.com/takanorip)
131
132
 
132
133
  Need [Sponsors❤️‍🔥](https://github.com/sponsors/markuplint)
133
134
 
@@ -253,8 +253,8 @@ export class MLEngine extends Emitter {
253
253
  const targetConfig = await __classPrivateFieldGet(this, _MLEngine_configProvider, "f").search(__classPrivateFieldGet(this, _MLEngine_file, "f"));
254
254
  this.emit('log', 'targetConfig', targetConfig ?? 'N/A');
255
255
  const configFilePathsFromTarget = __classPrivateFieldGet(this, _MLEngine_options, "f")?.noSearchConfig
256
- ? defaultConfigKey ?? null
257
- : targetConfig ?? defaultConfigKey;
256
+ ? (defaultConfigKey ?? null)
257
+ : (targetConfig ?? defaultConfigKey);
258
258
  configLog('configFilePathsFromTarget: %s', configFilePathsFromTarget ?? 'N/A');
259
259
  this.emit('log', 'configFilePathsFromTarget', configFilePathsFromTarget ?? 'N/A');
260
260
  const configKey = __classPrivateFieldGet(this, _MLEngine_options, "f")?.config && __classPrivateFieldGet(this, _MLEngine_configProvider, "f").set(mergeConfig(__classPrivateFieldGet(this, _MLEngine_options, "f").config));
@@ -3,7 +3,7 @@ export function getDefaultRules() {
3
3
  const rules = {};
4
4
  for (const [ruleName, rule] of Object.entries(builtinRules)) {
5
5
  const defaultSeverity = rule.defaultSeverity;
6
- const defaultValue = defaultSeverity === 'warning' ? false : rule.defaultValue ?? true;
6
+ const defaultValue = defaultSeverity === 'warning' ? false : (rule.defaultValue ?? true);
7
7
  const category = rule.meta?.category;
8
8
  if (category) {
9
9
  rules[ruleName] = {
@@ -33,7 +33,7 @@ export function standardReporter(results, options) {
33
33
  const line = lines[startLine] ?? '';
34
34
  for (const [i, rawLine] of rawLines.entries()) {
35
35
  const currentLine = lines[startLine + i] ?? '';
36
- const beforeChars = i === 0 ? line.slice(0, Math.max(0, violation.col - 1)) : rawLine.match(/^\s+/)?.[0] ?? '';
36
+ const beforeChars = i === 0 ? line.slice(0, Math.max(0, violation.col - 1)) : (rawLine.match(/^\s+/)?.[0] ?? '');
37
37
  const codeChars = rawLine.trim();
38
38
  const afterChars = currentLine.slice(Math.max(0, beforeChars.length + codeChars.length));
39
39
  const lineNoChars = pad(violation.line + i, sizes.col, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markuplint",
3
- "version": "4.9.2",
3
+ "version": "4.9.4",
4
4
  "description": "An HTML linter for all markup developers",
5
5
  "author": "Yusuke Hirao",
6
6
  "license": "MIT",
@@ -25,26 +25,26 @@
25
25
  "clean": "tsc --build --clean"
26
26
  },
27
27
  "dependencies": {
28
- "@markuplint/cli-utils": "4.4.3",
29
- "@markuplint/file-resolver": "4.9.0",
30
- "@markuplint/html-parser": "4.6.5",
31
- "@markuplint/html-spec": "4.8.2",
32
- "@markuplint/i18n": "4.5.1",
33
- "@markuplint/ml-ast": "4.4.2",
34
- "@markuplint/ml-config": "4.7.2",
35
- "@markuplint/ml-core": "4.8.2",
36
- "@markuplint/ml-spec": "4.6.3",
37
- "@markuplint/rules": "4.9.3",
38
- "@markuplint/shared": "4.4.3",
28
+ "@markuplint/cli-utils": "4.4.5",
29
+ "@markuplint/file-resolver": "4.9.2",
30
+ "@markuplint/html-parser": "4.6.7",
31
+ "@markuplint/html-spec": "4.9.1",
32
+ "@markuplint/i18n": "4.5.3",
33
+ "@markuplint/ml-ast": "4.4.4",
34
+ "@markuplint/ml-config": "4.7.4",
35
+ "@markuplint/ml-core": "4.9.0",
36
+ "@markuplint/ml-spec": "4.7.0",
37
+ "@markuplint/rules": "4.10.0",
38
+ "@markuplint/shared": "4.4.5",
39
39
  "@types/debug": "4.1.12",
40
- "chokidar": "3.6.0",
41
- "debug": "4.3.5",
40
+ "chokidar": "4.0.1",
41
+ "debug": "4.3.7",
42
42
  "get-stdin": "9.0.0",
43
43
  "meow": "13.2.0",
44
44
  "os-locale": "6.0.2",
45
45
  "strict-event-emitter": "0.5.1",
46
46
  "strip-ansi": "7.1.0",
47
- "type-fest": "4.20.1"
47
+ "type-fest": "4.26.1"
48
48
  },
49
- "gitHead": "05fdca254661ec335ff0cae4c6a11db164b032b9"
49
+ "gitHead": "05d2eabfcc41b67847c24049f12dd2b9f5ca6485"
50
50
  }