diff --git a/index.js b/index.js index 7e45494..fe93f43 100644 --- a/index.js +++ b/index.js @@ -84,8 +84,8 @@ PathFormatter.prototype = Object.create({ var lineAndCharacter = failure.getStartPosition().getLineAndCharacter(); var item = { reason: failure.getFailure(), - line: lineAndCharacter.line() + 1, - character: lineAndCharacter.character() + 1, + line: lineAndCharacter.line, + character: lineAndCharacter.character + 1, code: (failure.getRuleName ? failure.getRuleName() : '') }; res.errors.push(item); diff --git a/package.json b/package.json index 00095e3..7946e03 100644 --- a/package.json +++ b/package.json @@ -23,16 +23,16 @@ }, "dependencies": {}, "devDependencies": { + "chai": "~1.8.1", + "grunt": "^0.4.5", "grunt-cli": "0.1.9", - "grunt": "~0.4.1", - "grunt-tslint": "~0.4.0", + "grunt-continue": "0.0.1", + "grunt-contrib-clean": "~0.5.0", "grunt-contrib-jshint": "0.6.4", - "jshint-path-reporter": "0.1.3", - "grunt-run-grunt": "~0.1.0", "grunt-mocha-test": "~0.7.0", - "grunt-contrib-clean": "~0.5.0", - "grunt-continue": "0.0.1", - "chai": "~1.8.1", + "grunt-run-grunt": "~0.1.0", + "grunt-tslint": "~0.4.0", + "jshint-path-reporter": "0.1.3", "mocha-unfunk-reporter": "~0.4.0" } }