Commit 4d17a04a authored by Chris Rebert's avatar Chris Rebert
Browse files

Merge pull request #18148 from jontewks/patch-2

Adds linting error for undefined variables
parents 083ef3fd 2d87ec9a
Showing with 6 additions and 3 deletions
+6 -3
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
"root": true, "root": true,
"parser": "babel-eslint", "parser": "babel-eslint",
"env": { "env": {
"browser": true "browser": true,
"jquery": true
}, },
"rules": { "rules": {
...@@ -98,7 +99,7 @@ ...@@ -98,7 +99,7 @@
"no-label-var": 2, "no-label-var": 2,
"no-shadow": 0, "no-shadow": 0,
"no-shadow-restricted-names": 2, "no-shadow-restricted-names": 2,
"no-undef": 0, "no-undef": 2,
"no-undefined": 0, "no-undefined": 0,
"no-undef-init": 2, "no-undef-init": 2,
"no-unused-vars": 2, "no-unused-vars": 2,
......
...@@ -138,7 +138,7 @@ const Modal = (($) => { ...@@ -138,7 +138,7 @@ const Modal = (($) => {
$(this._dialog).on(Event.MOUSEDOWN_DISMISS, () => { $(this._dialog).on(Event.MOUSEDOWN_DISMISS, () => {
$(this._element).one(Event.MOUSEUP_DISMISS, (event) => { $(this._element).one(Event.MOUSEUP_DISMISS, (event) => {
if ($(event.target).is(this._element)) { if ($(event.target).is(this._element)) {
that._ignoreBackdropClick = true this._ignoreBackdropClick = true
} }
}) })
}) })
......
/* global Tether */
import Util from './util' import Util from './util'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment