Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored and dependabot-preview[bot] committed Jul 20, 2019
1 parent a5ed2eb commit 1ac8079
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"rules": {
"prettier/prettier": "error",
"jsx-a11y/no-autofocus": "off",
"mocha/no-mocha-arrows": "off"
}
}
1 change: 1 addition & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"react/no-multi-comp": 0,
"react/prop-types": 0,
"mocha/no-exclusive-tests": 2,
"mocha/no-mocha-arrows": 0,
"no-unused-vars": [2, { "varsIgnorePattern": "^_$" }]
}
}
3 changes: 3 additions & 0 deletions test/useRootCloseSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ describe('RootCloseWrapper', () => {
});

describe('using default event', () => {
// eslint-disable-next-line mocha/no-setup-in-describe
shouldCloseOn(undefined, 'click');
});

describe('using click event', () => {
// eslint-disable-next-line mocha/no-setup-in-describe
shouldCloseOn('click', 'click');
});

describe('using mousedown event', () => {
// eslint-disable-next-line mocha/no-setup-in-describe
shouldCloseOn('mousedown', 'mousedown');
});

Expand Down

0 comments on commit 1ac8079

Please sign in to comment.