Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Docs: fix no-restricted-globals wrong config. (#9305)
  • Loading branch information
aladdin-add authored and not-an-aardvark committed Sep 14, 2017
1 parent fcfe91a commit 002e199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-restricted-globals.md
Expand Up @@ -77,7 +77,7 @@ Examples of **incorrect** code for a sample `"event"` global variable name, alon

```js
/*global event*/
/* eslint no-restricted-globals: [{ name: "error", message: "Use local parameter instead." }] */
/* eslint no-restricted-globals: ["error", { name: "error", message: "Use local parameter instead." }] */

function onClick() {
console.log(event); // Unexpected global variable 'event'. Use local parameter instead.
Expand Down

0 comments on commit 002e199

Please sign in to comment.