markuplint 3.11.0 → 3.12.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/README.md CHANGED
@@ -77,6 +77,7 @@ Options
77
77
  --format, -f FORMAT Output format. Support "JSON", "Simple", "GitHub" and "Standard". Default: "Standard".
78
78
  --no-search-config No search a configure file automatically.
79
79
  --ignore-ext Evaluate files that are received even though the type of extension.
80
+ --allow-warnings Return status code 0 even if there are warnings.
80
81
  --no-import-preset-rules No import preset rules.
81
82
  --locale Locale of the message of violation. Default is an OS setting.
82
83
  --no-color, Output no color.
@@ -120,8 +121,10 @@ Need [Sponsors❤️‍🔥](https://github.com/sponsors/markuplint)
120
121
  ### Personal Supporters
121
122
 
122
123
  [<img width="36" src="https://avatars.githubusercontent.com/u/91733847" alt="Tokitake" />](https://github.com/Tokitake)
123
- [<img width="36" src="https://avatars.githubusercontent.com/u/1996642" alt="yamanoku" />](https://github.com/yamanoku)
124
+ [<img width="36" src="https://avatars.githubusercontent.com/u/1996642" alt="Okuto Oyama" />](https://github.com/yamanoku)
124
125
  [<img width="36" src="https://avatars.githubusercontent.com/u/6581173" alt="miita" />](https://github.com/mikimhk)
126
+ [<img width="36" src="https://avatars.githubusercontent.com/u/111797" alt="Yasuo Fukuda" />](https://github.com/sigwyg)
127
+ [<img width="36" src="https://avatars.githubusercontent.com/u/802921" alt="Hideyuki Saito" />](https://github.com/hideyukisaito)
125
128
 
126
129
  ## Thanks
127
130
 
@@ -179,12 +179,9 @@ class MLEngine extends strict_event_emitter_1.Emitter {
179
179
  }
180
180
  // Exclude
181
181
  const excludeFiles = (_a = configSet.config.excludeFiles) !== null && _a !== void 0 ? _a : [];
182
- for (const excludeFile of excludeFiles) {
183
- if (tslib_1.__classPrivateFieldGet(this, _MLEngine_file, "f").matches(excludeFile)) {
184
- this.emit('exclude', tslib_1.__classPrivateFieldGet(this, _MLEngine_file, "f").path, excludeFile);
185
- fileLog('Excludes the file: %s', tslib_1.__classPrivateFieldGet(this, _MLEngine_file, "f").path);
186
- return null;
187
- }
182
+ if (tslib_1.__classPrivateFieldGet(this, _MLEngine_file, "f").ignored(excludeFiles)) {
183
+ fileLog('Excludes the file: %s', tslib_1.__classPrivateFieldGet(this, _MLEngine_file, "f").path);
184
+ return null;
188
185
  }
189
186
  const { parser, parserOptions, matched } = await this.resolveParser(configSet);
190
187
  const checkingExt = !((_b = tslib_1.__classPrivateFieldGet(this, _MLEngine_options, "f")) === null || _b === void 0 ? void 0 : _b.ignoreExt);
@@ -0,0 +1 @@
1
+ export declare function getJsonModule<T extends {}>(modulePath: string): T | null;
@@ -0,0 +1,10 @@
1
+ import { createRequire } from 'node:module';
2
+ const require = createRequire(import.meta.url);
3
+ export function getJsonModule(modulePath) {
4
+ try {
5
+ return require(modulePath);
6
+ }
7
+ catch (_) {
8
+ return null;
9
+ }
10
+ }
@@ -0,0 +1 @@
1
+ export declare const version: string;
package/lib/version.js ADDED
@@ -0,0 +1,3 @@
1
+ // @ts-ignore
2
+ import pkg from '../package.json' assert { type: 'json' };
3
+ export const version = pkg.version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markuplint",
3
- "version": "3.11.0",
3
+ "version": "3.12.1",
4
4
  "description": "An HTML linter for all markup developers",
5
5
  "author": "Yusuke Hirao",
6
6
  "license": "MIT",
@@ -20,28 +20,28 @@
20
20
  "clean": "tsc --build --clean"
21
21
  },
22
22
  "dependencies": {
23
- "@markuplint/create-rule-helper": "3.11.0",
24
- "@markuplint/file-resolver": "3.11.0",
25
- "@markuplint/html-parser": "3.9.0",
26
- "@markuplint/html-spec": "3.10.0",
23
+ "@markuplint/create-rule-helper": "3.12.1",
24
+ "@markuplint/file-resolver": "3.12.1",
25
+ "@markuplint/html-parser": "3.10.1",
26
+ "@markuplint/html-spec": "3.11.1",
27
27
  "@markuplint/i18n": "3.9.0",
28
28
  "@markuplint/ml-ast": "3.2.0",
29
- "@markuplint/ml-config": "3.10.0",
30
- "@markuplint/ml-core": "3.11.0",
31
- "@markuplint/ml-spec": "3.10.0",
32
- "@markuplint/rules": "3.11.0",
33
- "@markuplint/shared": "3.7.0",
34
- "@types/cli-color": "^2.0.2",
29
+ "@markuplint/ml-config": "3.11.1",
30
+ "@markuplint/ml-core": "3.12.1",
31
+ "@markuplint/ml-spec": "3.11.1",
32
+ "@markuplint/rules": "3.12.1",
33
+ "@markuplint/shared": "3.8.0",
34
+ "@types/cli-color": "^2.0.3",
35
35
  "@types/debug": "^4.1.8",
36
36
  "@types/has-yarn": "^1.0.1",
37
37
  "@types/meow": "^6.0.0",
38
- "@types/uuid": "^9.0.2",
38
+ "@types/uuid": "^9.0.3",
39
39
  "chokidar": "^3.5.3",
40
40
  "cli-color": "^2.0.3",
41
41
  "debug": "^4.3.4",
42
42
  "detect-installed": "^2.0.4",
43
43
  "eastasianwidth": "^0.2.0",
44
- "enquirer": "^2.3.6",
44
+ "enquirer": "^2.4.1",
45
45
  "get-stdin": "8",
46
46
  "gray-matter": "^4.0.3",
47
47
  "has-yarn": "2",
@@ -50,9 +50,9 @@
50
50
  "os-locale": "5",
51
51
  "strict-event-emitter": "^0.5.0",
52
52
  "strip-ansi": "6",
53
- "tslib": "^2.5.3",
54
- "type-fest": "^3.11.1",
53
+ "tslib": "^2.6.2",
54
+ "type-fest": "^4.3.1",
55
55
  "uuid": "^9.0.0"
56
56
  },
57
- "gitHead": "9547b8dca20736a93e4d01af2d61bee314ba5718"
57
+ "gitHead": "09100b8baa14dd930602daa458197322197c79c2"
58
58
  }