Skip to content

Commit

Permalink
style: disable eslint in lines vs entire file
Browse files Browse the repository at this point in the history
  • Loading branch information
rshen91 committed Dec 9, 2020
1 parent 55f1628 commit 02a06fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration/page_objects/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
* under the License.
*/

// eslint-disable-next-line eslint-comments/disable-enable-pair
/* eslint-disable no-await-in-loop */

import Url from 'url';

import { DRAG_DETECTION_TIMEOUT } from '../../src/state/reducers/interactions';
Expand Down Expand Up @@ -276,10 +273,13 @@ class CommonPage {
* @param count
* @param actionLabel
*/
// eslint-disable-next-line class-methods-use-this
async pressKey(actionLabel: string, count: number) {
if (actionLabel === 'tab') {
let i = 0;
while (i < count) {
// eslint-disable-next-line eslint-comments/disable-enable-pair
/* eslint-disable no-await-in-loop */
await page.keyboard.press('Tab');
i++;
}
Expand Down

0 comments on commit 02a06fe

Please sign in to comment.