Skip to content

Commit

Permalink
Fix: Correct typos in no-alert.md and lib/ast-utils.js (#7905)
Browse files Browse the repository at this point in the history
  • Loading branch information
stewx authored and kaicataldo committed Jan 12, 2017
1 parent d6150e3 commit 995554c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/rules/no-alert.md
@@ -1,6 +1,6 @@
# Disallow Use of Alert (no-alert) # 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 ```js
alert("here!"); alert("here!");
Expand Down
4 changes: 2 additions & 2 deletions lib/ast-utils.js
Expand Up @@ -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. * @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) { function isReflectApply(node) {
return ( return (
Expand Down

0 comments on commit 995554c

Please sign in to comment.