Skip to content

Commit

Permalink
tools: add number-isnan rule
Browse files Browse the repository at this point in the history
  • Loading branch information
maclover7 committed Dec 14, 2017
1 parent 6c1a04b commit 4d7d595
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ rules:
}, {
selector: "ThrowStatement > CallExpression[callee.name=/Error$/]",
message: "Use new keyword when throwing an Error."
}, {
selector: "CallExpression[callee.name='isNaN']",
message: "Please use Number.isNaN instead of the global isNaN function"
}]
no-tabs: error
no-trailing-spaces: error
Expand Down

0 comments on commit 4d7d595

Please sign in to comment.