diff options
Diffstat (limited to 'node_modules/tslint/lib/rules/eoflineRule.js')
-rw-r--r-- | node_modules/tslint/lib/rules/eoflineRule.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/node_modules/tslint/lib/rules/eoflineRule.js b/node_modules/tslint/lib/rules/eoflineRule.js index 92497bbdd..c41ad92b0 100644 --- a/node_modules/tslint/lib/rules/eoflineRule.js +++ b/node_modules/tslint/lib/rules/eoflineRule.js @@ -36,21 +36,21 @@ var Rule = (function (_super) { } return [new Lint.RuleFailure(sourceFile, length, length, Rule.FAILURE_STRING, this.ruleName, fix)]; }; + /* tslint:disable:object-literal-sort-keys */ + Rule.metadata = { + ruleName: "eofline", + description: "Ensures the file ends with a newline.", + descriptionDetails: "Fix for single-line files is not supported.", + rationale: "It is a [standard convention](http://stackoverflow.com/q/729692/3124288) to end files with a newline.", + optionsDescription: "Not configurable.", + options: null, + optionExamples: [true], + hasFix: true, + type: "maintainability", + typescriptOnly: false, + }; + /* tslint:enable:object-literal-sort-keys */ + Rule.FAILURE_STRING = "file should end with a newline"; return Rule; }(Lint.Rules.AbstractRule)); -/* tslint:disable:object-literal-sort-keys */ -Rule.metadata = { - ruleName: "eofline", - description: "Ensures the file ends with a newline.", - descriptionDetails: "Fix for single-line files is not supported.", - rationale: "It is a [standard convention](http://stackoverflow.com/q/729692/3124288) to end files with a newline.", - optionsDescription: "Not configurable.", - options: null, - optionExamples: [true], - hasFix: true, - type: "maintainability", - typescriptOnly: false, -}; -/* tslint:enable:object-literal-sort-keys */ -Rule.FAILURE_STRING = "file should end with a newline"; exports.Rule = Rule; |