Permalink
Browse files

Fix: Correct typos in no-alert.md and lib/ast-utils.js (#7905)

  • Loading branch information...
1 parent d6150e3 commit 995554cfac870b82e64881a8b6ba2f1422c0bacc @stewx stewx committed with kaicataldo Jan 12, 2017
Showing with 3 additions and 3 deletions.
  1. +1 −1 docs/rules/no-alert.md
  2. +2 −2 lib/ast-utils.js
@@ -1,6 +1,6 @@
# Disallow Use of Alert (no-alert)
-JavaScripts' alert, confirm, and prompt functions are widely considered to be obtrusive as UI elements and should be replaced by a more appropriate custom UI implementation. Furthermore, alert is often used while debugging code, which should be removed before deployment to production.
+JavaScript's `alert`, `confirm`, and `prompt` functions are widely considered to be obtrusive as UI elements and should be replaced by a more appropriate custom UI implementation. Furthermore, `alert` is often used while debugging code, which should be removed before deployment to production.
```js
alert("here!");
View
@@ -158,9 +158,9 @@ function isCallee(node) {
}
/**
- * Checks whether or not a node is `Reclect.apply`.
+ * Checks whether or not a node is `Reflect.apply`.
* @param {ASTNode} node - A node to check.
- * @returns {boolean} Whether or not the node is a `Reclect.apply`.
+ * @returns {boolean} Whether or not the node is a `Reflect.apply`.
*/
function isReflectApply(node) {
return (

0 comments on commit 995554c

Please sign in to comment.