UNPKG

eclint

Version:

Validate or fix code that doesn't adhere to EditorConfig settings or infer settings from existing code.

45 lines 1.76 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var os = require("os"); var i18n = require("./i18n"); var EditorConfigError = /** @class */ (function (_super) { __extends(EditorConfigError, _super); /* istanbul ignore next */ function EditorConfigError(message) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } var _this = _super.call(this) || this; _this.columnNumber = 1; _this.fileName = '<anonymous>'; _this.lineNumber = 1; _this.message = ''; _this.rule = ''; _this.source = ''; _this.name = 'EditorConfigError'; _this.inspect = function () { return [ this.name + ": " + this.message + " (" + this.rule + ")", " at (" + this.fileName + ":" + this.lineNumber + ":" + this.columnNumber + ")", ].join(os.EOL); }; _this.message = i18n.apply(void 0, [message].concat(args)); return _this; } return EditorConfigError; }(Error)); module.exports = EditorConfigError; //# sourceMappingURL=editor-config-error.js.map