mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Update eslint dependency to 1.5.1, update code for new rules.
This commit is contained in:
parent
bf07e3b845
commit
7af794bb21
5 changed files with 46 additions and 39 deletions
|
@ -29,10 +29,10 @@ rules.forEach(function forRule(rule) {
|
|||
// Class for results with toString for pretty display
|
||||
function Results() { }
|
||||
Results.prototype.toString = function resultsToString() {
|
||||
var self = this;
|
||||
var that = this;
|
||||
var results = [];
|
||||
Object.keys(self).forEach(function forFile(file) {
|
||||
var fileResults = self[file];
|
||||
Object.keys(that).forEach(function forFile(file) {
|
||||
var fileResults = that[file];
|
||||
Object.keys(fileResults).forEach(function forRule(rule) {
|
||||
var ruleResults = fileResults[rule];
|
||||
ruleResults.forEach(function forLine(lineNumber) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue