Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Update atom-linter to the latest version 🚀 (#50)
Browse files Browse the repository at this point in the history
* fix(package): update atom-linter to version 9.0.0

https://greenkeeper.io/

* Rename rangeFromLineNumber to generateRange
  • Loading branch information
greenkeeper[bot] authored and Arcanemagus committed Feb 16, 2017
1 parent b5bce98 commit f421675
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,17 @@ export default {
// Valid end column, and it isn't the same as the start
range = [[line, colStart], [line, colEnd]];
} else {
// No valid end column, let rangeFromLineNumber highlight a word
range = Helpers.rangeFromLineNumber(textEditor, line, colStart);
// No valid end column, let generateRange highlight a word
range = Helpers.generateRange(textEditor, line, colStart);
}
} else {
// No valid starting column, just treat it as a line number
range = Helpers.rangeFromLineNumber(textEditor, line);
range = Helpers.generateRange(textEditor, line);
}
} else {
// Issue only has a line number
const line = issue.location.lines.begin - 1;
range = Helpers.rangeFromLineNumber(textEditor, line);
range = Helpers.generateRange(textEditor, line);
}

linterResults.push({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
},
"dependencies": {
"atom-linter": "^8.0.0",
"atom-linter": "^9.0.0",
"js-yaml": "^3.5.3",
"fs-plus": "^2.8.2"
},
Expand Down

0 comments on commit f421675

Please sign in to comment.