Skip to content

Commit

Permalink
eslint: prevent the use of the alert global
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdesjardins committed Jul 24, 2016
1 parent 512f5f8 commit fbe6e37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@
"no-prototype-builtins": 0,
"no-redeclare": 2,
"no-regex-spaces": 2,
"no-restricted-globals": 0,
"no-restricted-globals": [2, "alert"],
"no-restricted-imports": [2, "jquery"], // import it from vendor/ instead
"no-restricted-modules": 0,
"no-restricted-modules": 0, // see import/no-nodejs-modules
"no-restricted-syntax": [2, "ForStatement"], // use for..of or Array.prototype methods
"no-return-assign": 2,
"no-script-url": 2,
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/commandLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ registerCommand('userinfo', false,
if (val.length <= 1) {
return 'No username specified.';
} else {
ajax({ url: string.encode`/user/${val}/about.json` }).then(alert);
ajax({ url: string.encode`/user/${val}/about.json` }).then(Alert.open);
}
}
);
Expand Down

0 comments on commit fbe6e37

Please sign in to comment.