autolesshint
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -83,4 +83,4 @@ var del = require("del"); | ||
gulp.task("watch", ["default"], function () { | ||
gulp.watch("src/**/*.ts", ["default"]); | ||
gulp.task("watch", ["src"], function () { | ||
return gulp.watch("src/**/*.ts", ["src"]); | ||
}); | ||
@@ -87,0 +87,0 @@ |
@@ -19,4 +19,4 @@ "use strict"; | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t; | ||
return { next: verb(0), "throw": verb(1), "return": verb(2) }; | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -51,3 +51,3 @@ function step(op) { | ||
*/ | ||
var LesshintMutationsProvider = (function () { | ||
var LesshintMutationsProvider = /** @class */ (function () { | ||
/** | ||
@@ -59,3 +59,3 @@ * Initializes a new instance of the LesshintMutationsProvider class. | ||
function LesshintMutationsProvider(settings) { | ||
this.settings = __assign({ reporter: settings.reporter, suggestFixes: true }, settings); | ||
this.settings = __assign({ reporter: settings.reporter }, settings); | ||
} | ||
@@ -111,2 +111,2 @@ /** | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9sZXNzaGludE11dGF0aW9uc1Byb3ZpZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLElBQU0sUUFBUSxHQUFHLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO0FBa0I3Qz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3NcclxuICAgICAgICB9O1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICogQHJldHVybnMgQSBQcm9taXNlIGZvciBhIHdhdmUgb2YgZmlsZSBtdXRhdGlvbnMuXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBhc3luYyBwcm92aWRlKCk6IFByb21pc2U8SU11dGF0aW9uc1dhdmU+IHtcclxuICAgICAgICAvLyBMZXNzaGludCB0aHJvd3Mgb24gYW55IGVycm9ycyBvciB3YXJuaW5ncywgc28gaXQgbXVzdCBiZSBjYXVnaHQgaGVyZVxyXG4gICAgICAgIGF3YWl0IGxlc3NoaW50KHRoaXMuc2V0dGluZ3MpLmNhdGNoKCgpOiB2b2lkID0+IHt9KTtcclxuXHJcbiAgICAgICAgY29uc3QgY29tcGxhaW50cyA9IChhd2FpdCB0aGlzLnNldHRpbmdzLnJlcG9ydGVyLnB1bXAoKSlcclxuICAgICAgICAgICAgLmZpbHRlcigoY29tcGxhaW50OiBJTGVzc2hpbnRDb21wbGFpbnQpOiBib29sZWFuID0+ICEhY29tcGxhaW50LnN1Z2dlc3RlZEZpeCk7XHJcblxyXG4gICAgICAgIHJldHVybiB7XHJcbiAgICAgICAgICAgIGZpbGVNdXRhdGlvbnM6IHRoaXMuZ3JvdXBNdXRhdGlvbnNCeUZpbGVzKGNvbXBsYWludHMpXHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIEdyb3VwcyBsZXNzaGludCBjb21wbGFpbnRzIGludG8gZmlsZSBtdXRhdGlvbnMuXHJcbiAgICAgKiBcclxuICAgICAqIEBwYXJhbSBjb21wbGFpbnRzICAgQ29tcGxhaW50cyBmcm9tIGxlc3NoaW50LlxyXG4gICAgICogQHJldHVybnMgRmlsZS1ncm91cGVkIGNvbXBsYWludHMsIGlmIGFueS5cclxuICAgICAqL1xyXG4gICAgcHVibGljIGdyb3VwTXV0YXRpb25zQnlGaWxlcyhjb21wbGFpbnRzOiBJ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lKCk6IFByb21pc2U8SU11dGF0aW9uc1dhdmU+IHtcclxuICAgICAgICAvLyBMZXNzaGludCB0aHJvd3Mgb24gYW55IGVycm9ycyBvciB3YXJuaW5ncywgc28gaXQgbXVzdCBiZSBjYXVnaHQgaGVyZVxyXG4gICAgICAgIGF3YWl0IGxlc3NoaW50KHRoaXMuc2V0dGluZ3MpLmNhdGNoKCgpOiB2b2lkID0+IHt9KTtcclxuXHJcbiAgICAgICAgY29uc3QgY29tcGxhaW50cyA9IChhd2FpdCB0aGlzLnNldHRpbmdzLnJlcG9ydGVyLnB1bXAoKSlcclxuICAgICAgICAgICAgLmZpbHRlcigoY29tcGxhaW50OiBJTGVzc2hpbnRDb21wbGFpbnQpOiBib29sZWFuID0+ICEhY29tcGxhaW50LnN1Z2dlc3RlZEZpeCk7XHJcblxyXG4gICAgICAgIHJldHVybiB7XHJcbiAgICAgICAgICAgIGZpbGVNdXRhdGlvbnM6IHRoaXMuZ3JvdXBNdXRhdGlvbnNCeUZpbGVzKGNvbXBsYWludHMpXHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIEdyb3VwcyBsZXNzaGludCBjb21wbGFpbnRzIGludG8gZmlsZSBtdXRhdGlvbnMuXHJcbiAgICAgKiBcclxuICAgICAqIEBwYXJhbSBjb21wbGFpbnRzICAgQ29tcGxhaW50cyBmcm9tIGxlc3NoaW50LlxyXG4gICAgICogQHJldHVybnMgRmlsZS1ncm91cGVkIGNvbXBsYWludHMsIGlmIGFueS5cclxuICAgICAqL1xyXG4gICAgcHVibGljIGdyb3VwTXV0YXRpb25zQnlGaWxlcyhjb21wbGFpbnRzOiBJTGVzc2hpbnRDb21wbGFpbnRbXSk6IElGaWxlTXV0YXRpb25zIHwgdW5kZWZpbmVkIHtcclxuICAgICAgICBpZiAoIWNvbXBsYWludHMubGVuZ3RoKSB7XHJcbiAgICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBjb25zdCBmaWxlTXV0YXRpb25zOiBJRmlsZU11dGF0aW9ucyA9IHt9O1xyXG5cclxuICAgICAgICBmb3IgKGNvbnN0IGNvbXBsYWludCBvZiBjb21wbGFpbnRzKSB7XHJcbiAgICAgICAgICAgIGlmICghZmlsZU11dGF0aW9uc1tjb21wbGFpbnQuZnVsbFBhdGhdKSB7XHJcbiAgICAgICAgICAgICAgICBmaWxlTXV0YXRpb25zW2NvbXBsYWludC5mdWxsUGF0aF0gPSBbXTtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgZmlsZU11dGF0aW9uc1tjb21wbGFpbnQuZnVsbFBhdGhdLnB1c2goY29tcGxhaW50LnN1Z2dlc3RlZEZpeCEpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIGZpbGVNdXRhdGlvbnM7XHJcbiAgICB9XHJcbn1cclxuIl19 |
@@ -11,4 +11,4 @@ "use strict"; | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t; | ||
return { next: verb(0), "throw": verb(1), "return": verb(2) }; | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -43,3 +43,3 @@ function step(op) { | ||
*/ | ||
var LesshintWaveReporter = (function () { | ||
var LesshintWaveReporter = /** @class */ (function () { | ||
/** | ||
@@ -96,3 +96,3 @@ * Initializes a new instance of the LesshintWaveReporter class. | ||
linesRaw = fileContents.match(/[^\n]+(?:\r?\n|$)/g); | ||
return [4 /*yield*/, this.rootSuggester.suggestMutation(complaint, this.configs[complaint.linter], { | ||
return [4 /*yield*/, this.rootSuggester.suggestMutation(complaint, this.configs[complaint.linter] || {}, { | ||
linesRaw: linesRaw, | ||
@@ -121,2 +121,2 @@ text: fileContents | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9sZXNzaGludFdhdmVSZXBvcnRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQ0EsNERBQTJEO0FBRzNEOztHQUVHO0FBQ0g7SUFxQkk7Ozs7O09BS0c7SUFDSCw4QkFBbUIsT0FBd0IsRUFBRSxrQkFBdUM7UUExQnBGOztXQUVHO1FBQ2Msa0JBQWEsR0FBa0IsSUFBSSw2QkFBYSxFQUFFLENBQUM7UUFZcEU7O1dBRUc7UUFDSyxlQUFVLEdBQXlCLEVBQUUsQ0FBQztRQVMxQyxJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQztRQUN2QixJQUFJLENBQUMsa0JBQWtCLEdBQUcsa0JBQWtCLENBQUM7SUFDakQsQ0FBQztJQUVEOztPQUVHO0lBQ0kscUNBQU0sR0FBYixVQUFjLFVBQWdDO1FBQzFDLENBQUEsS0FBQSxJQUFJLENBQUMsVUFBVSxDQUFBLENBQUMsSUFBSSxXQUFJLFVBQVUsRUFBRTs7SUFDeEMsQ0FBQztJQUVEOzs7O09BSUc7SUFDVSxtQ0FBSSxHQUFqQjs7O2dCQUNVLGdCQUFnQjs7OzsyQ0FBeUIsSUFBSSxDQUFDLFVBQVU7d0JBRTlELElBQUksQ0FBQyxVQUFVLEdBQUcsRUFBRSxDQUFDO3dCQUVyQixxQkFBTSxPQUFPLENBQUMsR0FBRyxDQUNiLGdCQUFnQixDQUFDLEdBQUcsQ0FDaEIsVUFBTyxTQUE2QjtrREFNMUIsUUFBUTs7Ozs0Q0FMZCxFQUFFLENBQUMsQ0FBQyxTQUFTLENB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21pc2UuYWxsKFxyXG4gICAgICAgICAgICBwdW1wZWRDb21wbGFpbnRzLm1hcChcclxuICAgICAgICAgICAgICAgIGFzeW5jIChjb21wbGFpbnQ6IElMZXNzaGludENvbXBsYWludCk6IFByb21pc2U8dm9pZD4gPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIGlmIChjb21wbGFpbnQuc3VnZ2VzdGVkRml4KSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGZpbGVDb250ZW50czogc3RyaW5nID0gYXdhaXQgdGhpcy5maWxlQ29udGVudHNHZXR0ZXIoY29tcGxhaW50LmZ1bGxQYXRoKTtcclxuICAgICAgICAgICAgICAgICAgICBjb25zdCBsaW5lc1Jhdzogc3RyaW5nW10gPSBmaWxlQ29udGVudHMubWF0Y2goL1teXFxuXSsoPzpcXHI/XFxufCQpL2cpIGFzIHN0cmluZ1tdO1xyXG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHN1Z2dlc3RlZEZpeCA9IGF3YWl0IHRoaXMucm9vdFN1Z2dlc3Rlci5zdWdnZXN0TXV0YXRpb24oXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbXBsYWludCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5jb25maWdzW2NvbXBsYWludC5saW50ZXJdLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsaW5lc1JhdyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHQ6IGZpbGVDb250ZW50c1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHN1Z2dlc3RlZEZpeCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBjb21wbGFpbnQuc3VnZ2VzdGVkRml4ID0gc3Vn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XcgaW5zdGFuY2Ugb2YgdGhlIExlc3NoaW50V2F2ZVJlcG9ydGVyIGNsYXNzLlxyXG4gICAgICogXHJcbiAgICAgKiBAcGFyYW0gY29uZmlnICAgTGVzc2hpbnQgY29uZmlndXJhdGlvbiBvcHRpb25zLCBrZXllZCBieSBydWxlIG5hbWUuXHJcbiAgICAgKiBAcGFyYW0gZmlsZUNvbnRlbnRzR2V0dGVyICAgUmV0cmlldmVzIHRoZSBjb250ZW50cyBvZiBmaWxlcy5cclxuICAgICAqL1xyXG4gICAgcHVibGljIGNvbnN0cnVjdG9yKGNvbmZpZ3M6IElMZXNzaGludENvbmZpZywgZmlsZUNvbnRlbnRzR2V0dGVyOiBJRmlsZUNvbnRlbnRzR2V0dGVyKSB7XHJcbiAgICAgICAgdGhpcy5jb25maWdzID0gY29uZmlncztcclxuICAgICAgICB0aGlzLmZpbGVDb250ZW50c0dldHRlciA9IGZpbGVDb250ZW50c0dldHRlcjtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIFJlY2VpdmVzIGEgd2F2ZSBvZiBjb21wbGFpbnRzIGZyb20gTGVzc2hpbnQuXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyByZXBvcnQoY29tcGxhaW50czogSUxlc3NoaW50Q29tcGxhaW50W10pOiB2b2lkIHtcclxuICAgICAgICB0aGlzLmNvbXBsYWludHMucHVzaCguLi5jb21wbGFpbnRzKTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIFB1bXBzIGFuZCB3aXBlcyB0aGUgbW9zdCByZWNlbnQgY29tcGxhaW50cyB3YXZlLlxyXG4gICAgICogXHJcbiAgICAgKiBAcmV0dXJucyBUaGUgbW9zdCByZWNlbnQgY29tcGxhaW50cyB3YXZlLlxyXG4gICAgICovXHJcbiAgICBwdWJsaWMgYXN5bmMgcHVtcCgpOiBQcm9taXNlPElMZXNzaGludENvbXBsYWludFtdPiB7XHJcbiAgICAgICAgY29uc3QgcHVtcGVkQ29tcGxhaW50czogSUxlc3NoaW50Q29tcGxhaW50W10gPSB0aGlzLmNvbXBsYWludHM7XHJcblxyXG4gICAgICAgIHRoaXMuY29tcGxhaW50cyA9IFtdO1xyXG5cclxuICAgICAgICBhd2FpdCBQcm9taXNlLmFsbChcclxuICAgICAgICAgICAgcHVtcGVkQ29tcGxhaW50cy5tYXAoXHJcbiAgICAgICAgICAgICAgICBhc3luYyAoY29tcGxhaW50OiBJTGVzc2hpbnRDb21wbGFpbnQpOiBQcm9taXNlPHZvaWQ+ID0+IHtcclxuICAgICAgICAgICAgICAgICAgICBpZiAoY29tcGxhaW50LnN1Z2dlc3RlZEZpeCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgICAgICBjb25zdCBmaWxlQ29udGVudHM6IHN0cmluZyA9IGF3YWl0IHRoaXMuZmlsZUNvbnRlbnRzR2V0dGVyKGNvbXBsYWludC5mdWxsUGF0aCk7XHJcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgbGluZXNSYXc6IHN0cmluZ1tdID0gZmlsZUNvbnRlbnRzLm1hdGNoKC9bXlxcbl0rKD86XFxyP1xcbnwkKS9nKSBhcyBzdHJpbmdbXTtcclxuICAgICAgICAgICAgICAgICAgICBjb25zdCBzdWdnZXN0ZWRGaXggPSBhd2FpdCB0aGlzLnJvb3RTdWdnZXN0ZXIuc3VnZ2VzdE11dGF0aW9uKFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBjb21wbGFpbnQsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY29uZmlnc1tjb21wbGFpbnQubGludGVyXSB8fCB7fSxcclxuICAgICAgICAgICAgICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGluZXNSYXcsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0OiBmaWxlQ29udGVudHNcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIGlmIChzdWdnZXN0ZWRGaXgpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgY29tcGxhaW50LnN1Z2dlc3RlZEZpeCA9IHN1Z2dlc3RlZEZpeDtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9KSk7XHJcblxyXG4gICAgICAgIHJldHVybiBwdW1wZWRDb21wbGFpbnRzO1xyXG4gICAgfVxyXG59XHJcbiJdfQ== |
@@ -10,5 +10,5 @@ /** | ||
/** | ||
* Lesshint configuration options, keyed by rule name. | ||
* Path to a lesshint configuration file. | ||
*/ | ||
config: string; | ||
config?: string; | ||
/** | ||
@@ -37,2 +37,7 @@ * A minimatch glob pattern or a file to exclude from being linted. | ||
run(): Promise<void>; | ||
/** | ||
* @param configs Lesshint configuration settings. | ||
* @returns A Promise for running autolesshint. | ||
*/ | ||
private runWithConfigs(configs); | ||
} |
@@ -19,4 +19,4 @@ "use strict"; | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t; | ||
return { next: verb(0), "throw": verb(1), "return": verb(2) }; | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -46,2 +46,3 @@ function step(op) { | ||
}; | ||
var _this = this; | ||
exports.__esModule = true; | ||
@@ -54,5 +55,29 @@ var autoMutator_1 = require("automutate/lib/autoMutator"); | ||
/** | ||
* Parses config settings from a local file, if available. | ||
* | ||
* @param configFilePath Path to a settings file, if available. | ||
* @returns A Promise for configuration settings. | ||
*/ | ||
var getConfigSettings = function (configFilePath) { return __awaiter(_this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (configFilePath === undefined) { | ||
return [2 /*return*/, {}]; | ||
} | ||
return [4 /*yield*/, new Promise(function (resolve, reject) { | ||
fs.readFile(configFilePath, function (error, contents) { | ||
error | ||
? resolve({}) | ||
: resolve(JSON.parse(contents.toString())); | ||
}); | ||
})]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
} | ||
}); | ||
}); }; | ||
/** | ||
* Runs autolesshint. | ||
*/ | ||
var Runner = (function () { | ||
var Runner = /** @class */ (function () { | ||
/** | ||
@@ -71,13 +96,34 @@ * Initializes a new instance of the Runner class. | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
var configs, waveReporter, autoMutator; | ||
var configs, error_1; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, new Promise(function (resolve, reject) { | ||
fs.readFile(_this.settings.config, function (error, contents) { | ||
error ? reject(error) : resolve(JSON.parse(contents.toString())); | ||
}); | ||
})]; | ||
case 0: return [4 /*yield*/, getConfigSettings(this.settings.config)]; | ||
case 1: | ||
configs = _a.sent(); | ||
_a.label = 2; | ||
case 2: | ||
_a.trys.push([2, 4, , 5]); | ||
return [4 /*yield*/, this.runWithConfigs(configs)]; | ||
case 3: | ||
_a.sent(); | ||
return [3 /*break*/, 5]; | ||
case 4: | ||
error_1 = _a.sent(); | ||
console.error("Error in autolesshint:", error_1); | ||
return [3 /*break*/, 5]; | ||
case 5: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
* @param configs Lesshint configuration settings. | ||
* @returns A Promise for running autolesshint. | ||
*/ | ||
Runner.prototype.runWithConfigs = function (configs) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var waveReporter, autoMutator; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
waveReporter = new lesshintWaveReporter_1.LesshintWaveReporter(configs, fileContentsGetter_1.fileContentsGetter); | ||
@@ -87,4 +133,6 @@ autoMutator = new autoMutator_1.AutoMutator({ | ||
}); | ||
return [2 /*return*/, autoMutator | ||
.run()["catch"](function (error) { return console.error("Error in autolesshint:", error); })]; | ||
return [4 /*yield*/, autoMutator.run()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/]; | ||
} | ||
@@ -98,2 +146,2 @@ }); | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9ydW5uZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsMERBQXlEO0FBQ3pELHVCQUF5QjtBQUV6QiwyREFBMEQ7QUFFMUQseUVBQXdFO0FBQ3hFLCtEQUE4RDtBQXNCOUQ7O0dBRUc7QUFDSDtJQU1JOzs7O09BSUc7SUFDSCxnQkFBbUIsUUFBK0I7UUFDOUMsSUFBSSxDQUFDLFFBQVEsR0FBRyxRQUFRLENBQUM7SUFDN0IsQ0FBQztJQUVEOztPQUVHO0lBQ1Usb0JBQUcsR0FBaEI7Ozt5QkFNVSxZQUFZLEVBRVosV0FBVzs7OzRCQVBnQixxQkFBTSxJQUFJLE9BQU8sQ0FBa0IsVUFBQyxPQUFPLEVBQUUsTUFBTTs0QkFDaEYsRUFBRSxDQUFDLFFBQVEsQ0FBQyxLQUFJLENBQUMsUUFBUSxDQUFDLE1BQU0sRUFBRSxVQUFDLEtBQXdCLEVBQUUsUUFBeUI7Z0NBQ2xGLEtBQUssR0FBRyxNQUFNLENBQUMsS0FBSyxDQUFDLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxDQUFDLFFBQVEsRUFBRSxDQUFDLENBQUMsQ0FBQzs0QkFDckUsQ0FBQyxDQUFDLENBQ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nczogSUF1dG9MZXNzaGludFNldHRpbmdzKSB7XHJcbiAgICAgICAgdGhpcy5zZXR0aW5ncyA9IHNldHRpbmdzO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICogQHJldHVybnMgQSBQcm9taXNlIGZvciBydW5uaW5nIGF1dG9sZXNzaGludC5cclxuICAgICAqL1xyXG4gICAgcHVibGljIGFzeW5jIHJ1bigpOiBQcm9taXNlPHZvaWQ+IHtcclxuICAgICAgICBjb25zdCBjb25maWdzOiBJTGVzc2hpbnRDb25maWcgPSBhd2FpdCBuZXcgUHJvbWlzZTxJTGVzc2hpbnRDb25maWc+KChyZXNvbHZlLCByZWplY3QpID0+IHtcclxuICAgICAgICAgICAgZnMucmVhZEZpbGUodGhpcy5zZXR0aW5ncy5jb25maWcsIChlcnJvcjogRXJyb3IgfCB1bmRlZmluZWQsIGNvbnRlbnRzOiBzdHJpbmcgfCBCdWZmZXIpOiB2b2lkID0+IHtcclxuICAgICAgICAgICAgICAgIGVycm9yID8gcmVqZWN0KGVycm9yKSA6IHJlc29sdmUoSlNPTi5wYXJzZShjb250ZW50cy50b1N0cmluZygpKSk7XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0pO1xyXG4gICAgICAgIGNvbnN0IHdhdmVSZXBvcnRlcjogTGVzc2hpbnRXYXZlUmVwb3J0ZXIgPSBuZXcgTGVzc2hpbnRXYXZlUmVwb3J0ZXIoY29uZmlncywgZmlsZUNvbnRlbnRzR2V0dGVyKTtcclxuXHJcbiAgICAgICAgY29uc3QgYXV0b011dGF0b3I6IEF1dG9NdXRhdG9yID0gbmV3IEF1dG9NdXRhdG9yKHtcclxuICAgICAgICAgICAgbXV0YXRpb25zUHJvdmlkZXI6IG5ldyBMZXNzaGludE11dGF0aW9uc1Byb3ZpZGVyKHtcclxuICAgICAgICAgICAgICAgIHJlcG9ydGVyOiB3YXZlUmVwb3J0ZXIsXHJcbiAgICAgICAgICAgICAgICAuLi50aGlzLnNldH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hc3luYyBydW5XaXRoQ29uZmlncyhjb25maWdzOiBJTGVzc2hpbnRDb25maWcpOiBQcm9taXNlPHZvaWQ+IHtcclxuICAgICAgICBjb25zdCB3YXZlUmVwb3J0ZXI6IExlc3NoaW50V2F2ZVJlcG9ydGVyID0gbmV3IExlc3NoaW50V2F2ZVJlcG9ydGVyKGNvbmZpZ3MsIGZpbGVDb250ZW50c0dldHRlcik7XHJcblxyXG4gICAgICAgIGNvbnN0IGF1dG9NdXRhdG9yOiBBdXRvTXV0YXRvciA9IG5ldyBBdXRvTXV0YXRvcih7XHJcbiAgICAgICAgICAgIG11dGF0aW9uc1Byb3ZpZGVyOiBuZXcgTGVzc2hpbnRNdXRhdGlvbnNQcm92aWRlcih7XHJcbiAgICAgICAgICAgICAgICByZXBvcnRlcjogd2F2ZVJlcG9ydGVyLFxyXG4gICAgICAgICAgICAgICAgLi4udGhpcy5zZXR0aW5nc1xyXG4gICAgICAgICAgICB9KVxyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICBhd2FpdCBhdXRvTXV0YXRvci5ydW4oKTtcclxuICAgIH1cclxufVxyXG4iXX0= |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
var AttributeQuotesSuggester = (function () { | ||
var AttributeQuotesSuggester = /** @class */ (function () { | ||
function AttributeQuotesSuggester() { | ||
@@ -9,0 +9,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
var BorderZeroSuggester = (function () { | ||
var BorderZeroSuggester = /** @class */ (function () { | ||
function BorderZeroSuggester() { | ||
@@ -9,0 +9,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
var CommentSuggester = (function () { | ||
var CommentSuggester = /** @class */ (function () { | ||
function CommentSuggester() { | ||
@@ -9,0 +9,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
var EmptyRuleSuggester = (function () { | ||
var EmptyRuleSuggester = /** @class */ (function () { | ||
function EmptyRuleSuggester() { | ||
@@ -9,0 +9,0 @@ } |
@@ -7,3 +7,3 @@ "use strict"; | ||
*/ | ||
var FinalNewlineSuggester = (function () { | ||
var FinalNewlineSuggester = /** @class */ (function () { | ||
function FinalNewlineSuggester() { | ||
@@ -10,0 +10,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
var HexLengthSuggester = (function () { | ||
var HexLengthSuggester = /** @class */ (function () { | ||
function HexLengthSuggester() { | ||
@@ -9,0 +9,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
var HexNotationSuggester = (function () { | ||
var HexNotationSuggester = /** @class */ (function () { | ||
function HexNotationSuggester() { | ||
@@ -9,0 +9,0 @@ } |
@@ -7,3 +7,3 @@ "use strict"; | ||
*/ | ||
var NewlineAfterBlockSuggester = (function () { | ||
var NewlineAfterBlockSuggester = /** @class */ (function () { | ||
function NewlineAfterBlockSuggester() { | ||
@@ -10,0 +10,0 @@ } |
@@ -11,4 +11,4 @@ "use strict"; | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t; | ||
return { next: verb(0), "throw": verb(1), "return": verb(2) }; | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -43,3 +43,3 @@ function step(op) { | ||
*/ | ||
var RootSuggester = (function () { | ||
var RootSuggester = /** @class */ (function () { | ||
function RootSuggester() { | ||
@@ -79,2 +79,2 @@ /** | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zdWdnZXN0ZXJzL3Jvb3RTdWdnZXN0ZXIudHMiXSwibmF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cbiAgICAgKiBAcGFyYW0gY29uZmlnICAgQ29uZmlndXJhdGlvbiBvcHRpb25zIGZvciB0aGUgcnVsZS5cclxuICAgICAqIEBwYXJhbSBmaWxlSW5mbyAgIENvbnRlbnRzIG9mIHRoZSBzb3VyY2UgZmlsZSBpbiB2YXJpb3VzIGZvcm1zLlxyXG4gICAgICogQHJldHVybnMgQSBQcm9taXNlIGZvciBhIGZpeCBtdXRhdGlvbiwgaWYgcG9zc2libGUuXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBhc3luYyBzdWdnZXN0TXV0YXRpb24oY29tcGxhaW50OiBJTGVzc2hpbnRDb21wbGFpbnQsIGNvbmZpZzogYW55LCBmaWxlSW5mbzogSUZpbGVJbmZvKTogUHJvbWlzZTxJTXV0YXRpb24gfCB1bmRlZmluZWQ+IHtcclxuICAgICAgICBjb25zdCBzdWdnZXN0ZXI6IElTdWdnZXN0ZXI8YW55PiB8IHVuZGVmaW5lZCA9IGF3YWl0IHRoaXMuc3VnZ2VzdGVyc0ZhY3RvcnkucHJvdmlkZShjb21wbGFpbnQubGludGVyKTtcclxuICAgICAgICBpZiAoIXN1Z2dlc3Rlcikge1xyXG4gICAgICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIHN1Z2dlc3Rlci5zdWdnZXN0TXV0YXRpb24oY29tcGxhaW50LCBjb25maWcsIGZpbGVJbmZvKTtcclxuICAgIH1cclxufSJdfQ== |
@@ -7,3 +7,3 @@ "use strict"; | ||
*/ | ||
var SingleLinePerSelectorSuggester = (function () { | ||
var SingleLinePerSelectorSuggester = /** @class */ (function () { | ||
function SingleLinePerSelectorSuggester() { | ||
@@ -10,0 +10,0 @@ } |
@@ -7,3 +7,3 @@ "use strict"; | ||
*/ | ||
var SpaceBeforeBraceSuggester = (function () { | ||
var SpaceBeforeBraceSuggester = /** @class */ (function () { | ||
function SpaceBeforeBraceSuggester() { | ||
@@ -10,0 +10,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
var SpaceBetweenParensSuggester = (function () { | ||
var SpaceBetweenParensSuggester = /** @class */ (function () { | ||
function SpaceBetweenParensSuggester() { | ||
@@ -9,0 +9,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
var StringQuotesSuggester = (function () { | ||
var StringQuotesSuggester = /** @class */ (function () { | ||
function StringQuotesSuggester() { | ||
@@ -9,0 +9,0 @@ } |
@@ -11,4 +11,4 @@ "use strict"; | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t; | ||
return { next: verb(0), "throw": verb(1), "return": verb(2) }; | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -44,3 +44,3 @@ function step(op) { | ||
*/ | ||
var SuggestersFactory = (function () { | ||
var SuggestersFactory = /** @class */ (function () { | ||
function SuggestersFactory() { | ||
@@ -111,2 +111,2 @@ /** | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zdWdnZXN0ZXJzL3N1Z2dlc3RlcnNGYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSx1QkFBeUI7QUFDekIsMkJBQTZCO0FBVzdCOztHQUVHO0FBQ0g7SUFBQTtRQUNJOztXQUVHO1FBQ2MsZUFBVSxHQUFnQixFQUFFLENBQUM7UUFFOUM7O1dBRUc7UUFDYyxZQUFP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BsaW50ZXIgICBOYW1lIG9mIGEgTGVzc2hpbnQgbGludGVyLlxyXG4gICAgICogQHJldHVybnMgQSBQcm9taXNlIGZvciB0aGUgZXF1aXZhbGVudCBzdWdnZXN0ZXIsIGlmIHBvc3NpYmxlLlxyXG4gICAgICovXHJcbiAgICBwcml2YXRlIGFzeW5jIGNyZWF0ZVN1Z2dlc3RlcihsaW50ZXI6IHN0cmluZyk6IFByb21pc2U8SVN1Z2dlc3Rlcjxhbnk+IHwgdW5kZWZpbmVkPiB7XHJcbiAgICAgICAgY29uc3Qgc3VnZ2VzdGVyTmFtZTogc3RyaW5nID0gbGludGVyWzBdLnRvVXBwZXJDYXNlKCkgKyBsaW50ZXIuc3Vic3RyaW5nKDEpICsgXCJTdWdnZXN0ZXJcIjtcclxuICAgICAgICBjb25zdCBmaWxlTmFtZTogc3RyaW5nID0gcGF0aC5qb2luKHRoaXMuZGlyTmFtZSwgbGludGVyWzBdLnRvTG93ZXJDYXNlKCkgKyBsaW50ZXIuc3Vic3RyaW5nKDEpICsgXCJTdWdnZXN0ZXIuanNcIik7XHJcbiAgICAgICAgY29uc3QgZXhpc3RzOiBib29sZWFuID0gYXdhaXQgbmV3IFByb21pc2U8Ym9vbGVhbj4oKHJlc29sdmUpID0+IHtcclxuICAgICAgICAgICAgZnMuZXhpc3RzKGZpbGVOYW1lLCAoZXhpc3RzOiBib29sZWFuKTogdm9pZCA9PiByZXNvbHZlKGV4aXN0cykpO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICBpZiAoIWV4aXN0cykge1xyXG4gICAgICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIG5ldyAocmVxdWlyZShmaWxlTmFtZSlbc3VnZ2VzdGVyTmFtZV0pKCk7XHJcbiAgICB9XHJcbn1cclxuIl19 |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
var TrailingSemicolonSuggester = (function () { | ||
var TrailingSemicolonSuggester = /** @class */ (function () { | ||
function TrailingSemicolonSuggester() { | ||
@@ -9,0 +9,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
var TrailingWhitespaceSuggester = (function () { | ||
var TrailingWhitespaceSuggester = /** @class */ (function () { | ||
function TrailingWhitespaceSuggester() { | ||
@@ -9,0 +9,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
var UrlQuotesSuggester = (function () { | ||
var UrlQuotesSuggester = /** @class */ (function () { | ||
function UrlQuotesSuggester() { | ||
@@ -9,0 +9,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
var ZeroUnitSuggester = (function () { | ||
var ZeroUnitSuggester = /** @class */ (function () { | ||
function ZeroUnitSuggester() { | ||
@@ -9,0 +9,0 @@ } |
{ | ||
"name": "autolesshint", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Automagically fixes lesshint errors in .less files.", | ||
@@ -5,0 +5,0 @@ "index": "bin/autolesshint", |
@@ -36,3 +36,2 @@ const lesshint = require("lesshint/lib/cli"); | ||
reporter: settings.reporter, | ||
suggestFixes: true, | ||
...settings | ||
@@ -39,0 +38,0 @@ }; |
@@ -68,3 +68,3 @@ import { ILesshintComplaint, ILesshintConfig } from "./lesshint"; | ||
complaint, | ||
this.configs[complaint.linter], | ||
this.configs[complaint.linter] || {}, | ||
{ | ||
@@ -71,0 +71,0 @@ linesRaw, |
@@ -19,5 +19,5 @@ import { AutoMutator } from "automutate/lib/autoMutator"; | ||
/** | ||
* Lesshint configuration options, keyed by rule name. | ||
* Path to a lesshint configuration file. | ||
*/ | ||
config: string; | ||
config?: string; | ||
@@ -31,2 +31,22 @@ /** | ||
/** | ||
* Parses config settings from a local file, if available. | ||
* | ||
* @param configFilePath Path to a settings file, if available. | ||
* @returns A Promise for configuration settings. | ||
*/ | ||
const getConfigSettings = async (configFilePath?: string) => { | ||
if (configFilePath === undefined) { | ||
return {}; | ||
} | ||
return await new Promise<ILesshintConfig>((resolve, reject) => { | ||
fs.readFile(configFilePath, (error: Error | undefined, contents: string | Buffer): void => { | ||
error | ||
? resolve({}) | ||
: resolve(JSON.parse(contents.toString())); | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Runs autolesshint. | ||
@@ -53,7 +73,16 @@ */ | ||
public async run(): Promise<void> { | ||
const configs: ILesshintConfig = await new Promise<ILesshintConfig>((resolve, reject) => { | ||
fs.readFile(this.settings.config, (error: Error | undefined, contents: string | Buffer): void => { | ||
error ? reject(error) : resolve(JSON.parse(contents.toString())); | ||
}); | ||
}); | ||
const configs: ILesshintConfig = await getConfigSettings(this.settings.config); | ||
try { | ||
await this.runWithConfigs(configs); | ||
} catch (error) { | ||
console.error("Error in autolesshint:", error); | ||
} | ||
} | ||
/** | ||
* @param configs Lesshint configuration settings. | ||
* @returns A Promise for running autolesshint. | ||
*/ | ||
private async runWithConfigs(configs: ILesshintConfig): Promise<void> { | ||
const waveReporter: LesshintWaveReporter = new LesshintWaveReporter(configs, fileContentsGetter); | ||
@@ -68,6 +97,4 @@ | ||
return autoMutator | ||
.run() | ||
.catch(error => console.error("Error in autolesshint:", error)); | ||
await autoMutator.run(); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
240918
3324
188