markuplint 3.10.0 → 3.12.0
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/api/ml-engine.js +21 -8
- package/package.json +17 -17
package/lib/api/ml-engine.js
CHANGED
|
@@ -151,7 +151,23 @@ class MLEngine extends strict_event_emitter_1.Emitter {
|
|
|
151
151
|
}
|
|
152
152
|
async provide(cache = true) {
|
|
153
153
|
var _a, _b, _c, _d;
|
|
154
|
-
|
|
154
|
+
let configSet;
|
|
155
|
+
try {
|
|
156
|
+
configSet = await this.resolveConfig(cache);
|
|
157
|
+
}
|
|
158
|
+
catch (error) {
|
|
159
|
+
if (error instanceof Error) {
|
|
160
|
+
configSet = {
|
|
161
|
+
config: {},
|
|
162
|
+
plugins: [],
|
|
163
|
+
files: new Set(),
|
|
164
|
+
errs: [error],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
throw error;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
155
171
|
fileLog('Fetched Config files: %O', configSet.files);
|
|
156
172
|
fileLog('Resolved Config: %O', configSet.config);
|
|
157
173
|
fileLog('Resolved Plugins: %O', configSet.plugins);
|
|
@@ -163,12 +179,9 @@ class MLEngine extends strict_event_emitter_1.Emitter {
|
|
|
163
179
|
}
|
|
164
180
|
// Exclude
|
|
165
181
|
const excludeFiles = (_a = configSet.config.excludeFiles) !== null && _a !== void 0 ? _a : [];
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
fileLog('Excludes the file: %s', tslib_1.__classPrivateFieldGet(this, _MLEngine_file, "f").path);
|
|
170
|
-
return null;
|
|
171
|
-
}
|
|
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;
|
|
172
185
|
}
|
|
173
186
|
const { parser, parserOptions, matched } = await this.resolveParser(configSet);
|
|
174
187
|
const checkingExt = !((_b = tslib_1.__classPrivateFieldGet(this, _MLEngine_options, "f")) === null || _b === void 0 ? void 0 : _b.ignoreExt);
|
|
@@ -283,5 +296,5 @@ class MLEngine extends strict_event_emitter_1.Emitter {
|
|
|
283
296
|
return this.createCore(fabric);
|
|
284
297
|
}
|
|
285
298
|
}
|
|
286
|
-
exports.default = MLEngine;
|
|
287
299
|
_MLEngine_configProvider = new WeakMap(), _MLEngine_core = new WeakMap(), _MLEngine_file = new WeakMap(), _MLEngine_options = new WeakMap(), _MLEngine_watcher = new WeakMap();
|
|
300
|
+
exports.default = MLEngine;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markuplint",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "An HTML linter for all markup developers",
|
|
5
5
|
"author": "Yusuke Hirao",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,22 +20,22 @@
|
|
|
20
20
|
"clean": "tsc --build --clean"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@markuplint/create-rule-helper": "3.
|
|
24
|
-
"@markuplint/file-resolver": "3.
|
|
25
|
-
"@markuplint/html-parser": "3.
|
|
26
|
-
"@markuplint/html-spec": "3.
|
|
27
|
-
"@markuplint/i18n": "3.
|
|
28
|
-
"@markuplint/ml-ast": "3.
|
|
29
|
-
"@markuplint/ml-config": "3.
|
|
30
|
-
"@markuplint/ml-core": "3.
|
|
31
|
-
"@markuplint/ml-spec": "3.
|
|
32
|
-
"@markuplint/rules": "3.
|
|
33
|
-
"@markuplint/shared": "3.
|
|
23
|
+
"@markuplint/create-rule-helper": "3.12.0",
|
|
24
|
+
"@markuplint/file-resolver": "3.12.0",
|
|
25
|
+
"@markuplint/html-parser": "3.10.0",
|
|
26
|
+
"@markuplint/html-spec": "3.11.0",
|
|
27
|
+
"@markuplint/i18n": "3.9.0",
|
|
28
|
+
"@markuplint/ml-ast": "3.2.0",
|
|
29
|
+
"@markuplint/ml-config": "3.11.0",
|
|
30
|
+
"@markuplint/ml-core": "3.12.0",
|
|
31
|
+
"@markuplint/ml-spec": "3.11.0",
|
|
32
|
+
"@markuplint/rules": "3.12.0",
|
|
33
|
+
"@markuplint/shared": "3.8.0",
|
|
34
34
|
"@types/cli-color": "^2.0.2",
|
|
35
|
-
"@types/debug": "^4.1.
|
|
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.
|
|
38
|
+
"@types/uuid": "^9.0.2",
|
|
39
39
|
"chokidar": "^3.5.3",
|
|
40
40
|
"cli-color": "^2.0.3",
|
|
41
41
|
"debug": "^4.3.4",
|
|
@@ -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.
|
|
54
|
-
"type-fest": "^3.
|
|
53
|
+
"tslib": "^2.6.0",
|
|
54
|
+
"type-fest": "^3.12.0",
|
|
55
55
|
"uuid": "^9.0.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "4ab20276db48a6acb29a923ea8666890ca853442"
|
|
58
58
|
}
|