Skip to content

Commit

Permalink
Use non-deprecated vfile.message method
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 13, 2019
1 parent 1784ba9 commit 2e2eb86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ function messageControl(options) {
var result = known ? known.indexOf(ruleId) !== -1 : true

if (!result) {
file.warn('Unknown rule: cannot ' + verb + " `'" + ruleId + "'`", pos)
file.message(
'Unknown rule: cannot ' + verb + " `'" + ruleId + "'`",
pos
)
}

return result
Expand Down

0 comments on commit 2e2eb86

Please sign in to comment.