markuplint 4.9.1 → 4.9.3

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,16 +3,25 @@
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.1](https://github.com/markuplint/markuplint/compare/markuplint@4.9.0...markuplint@4.9.1) (2024-06-09)
6
+ ## [4.9.3](https://github.com/markuplint/markuplint/compare/markuplint@4.9.2...markuplint@4.9.3) (2024-09-02)
7
+
8
+ **Note:** Version bump only for package markuplint
9
+
7
10
 
8
11
 
9
- ### Bug Fixes
10
12
 
11
- * fix to export type files ([eff4bbf](https://github.com/markuplint/markuplint/commit/eff4bbfd127574809dc5e15d7cafe87699758ee0))
12
13
 
14
+ ## [4.9.2](https://github.com/markuplint/markuplint/compare/markuplint@4.9.1...markuplint@4.9.2) (2024-06-25)
13
15
 
16
+ ### Bug Fixes
17
+
18
+ - **markuplint:** ensure `--config` option correctly handles absolute paths ([fd36c1a](https://github.com/markuplint/markuplint/commit/fd36c1a4475f71d8b1e83212a60639c7361cd702))
14
19
 
20
+ ## [4.9.1](https://github.com/markuplint/markuplint/compare/markuplint@4.9.0...markuplint@4.9.1) (2024-06-09)
21
+
22
+ ### Bug Fixes
15
23
 
24
+ - fix to export type files ([eff4bbf](https://github.com/markuplint/markuplint/commit/eff4bbfd127574809dc5e15d7cafe87699758ee0))
16
25
 
17
26
  # [4.9.0](https://github.com/markuplint/markuplint/compare/markuplint@4.8.1...markuplint@4.9.0) (2024-05-28)
18
27
 
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));
@@ -6,7 +6,8 @@ import { log } from '../debug.js';
6
6
  import { output } from './output.js';
7
7
  export async function command(files, options, apiOptions) {
8
8
  const fix = options.fix;
9
- const configFile = options.config && path.join(process.cwd(), options.config);
9
+ const configFile = options.config &&
10
+ (path.isAbsolute(options.config) ? options.config : path.resolve(process.cwd(), options.config));
10
11
  const locale = options.locale;
11
12
  const searchConfig = options.searchConfig;
12
13
  const ignoreExt = options.ignoreExt;
@@ -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.1",
3
+ "version": "4.9.3",
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.2",
29
- "@markuplint/file-resolver": "4.8.1",
30
- "@markuplint/html-parser": "4.6.4",
31
- "@markuplint/html-spec": "4.8.1",
32
- "@markuplint/i18n": "4.5.0",
33
- "@markuplint/ml-ast": "4.4.1",
34
- "@markuplint/ml-config": "4.7.1",
35
- "@markuplint/ml-core": "4.8.1",
36
- "@markuplint/ml-spec": "4.6.2",
37
- "@markuplint/rules": "4.9.2",
38
- "@markuplint/shared": "4.4.2",
28
+ "@markuplint/cli-utils": "4.4.4",
29
+ "@markuplint/file-resolver": "4.9.1",
30
+ "@markuplint/html-parser": "4.6.6",
31
+ "@markuplint/html-spec": "4.9.0",
32
+ "@markuplint/i18n": "4.5.2",
33
+ "@markuplint/ml-ast": "4.4.3",
34
+ "@markuplint/ml-config": "4.7.3",
35
+ "@markuplint/ml-core": "4.8.3",
36
+ "@markuplint/ml-spec": "4.6.4",
37
+ "@markuplint/rules": "4.9.4",
38
+ "@markuplint/shared": "4.4.4",
39
39
  "@types/debug": "4.1.12",
40
40
  "chokidar": "3.6.0",
41
- "debug": "4.3.5",
41
+ "debug": "4.3.6",
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.0"
47
+ "type-fest": "4.26.0"
48
48
  },
49
- "gitHead": "0200dc1f7b1ffa7455b889696153e25dbae8241f"
49
+ "gitHead": "77cd5a25d5cf28c83253b7bfe02cd25b54e236b0"
50
50
  }