Skip to content

Commit

Permalink
chore: add allowWholeFile to disable-enable-pair eslint rule (#10506
Browse files Browse the repository at this point in the history
)
  • Loading branch information
SimenB committed Sep 13, 2020
1 parent 7f10a9d commit 0646c73
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Expand Up @@ -146,6 +146,7 @@ module.exports = {
plugins: ['markdown', 'import', 'prettier', 'eslint-comments'],
rules: {
'arrow-body-style': 2,
'eslint-comments/disable-enable-pair': [2, {allowWholeFile: true}],
'eslint-comments/no-unused-disable': 2,
'flowtype/boolean-style': 2,
'flowtype/no-primitive-constructor-types': 2,
Expand Down
2 changes: 0 additions & 2 deletions e2e/coverage-remapping/covered.ts
Expand Up @@ -15,5 +15,3 @@ export = function difference(a: number, b: number): number {

return a - b;
};

/* eslint-enable */
5 changes: 2 additions & 3 deletions e2e/focused-tests/__tests__/tests.js
Expand Up @@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';

/* eslint-disable jest/no-focused-tests */

'use strict';

describe('describe', () => {
it('it', () => {
expect(1).toBe(1);
Expand All @@ -23,5 +24,3 @@ describe.only('describe only', () => {
expect(1).toBe(1);
});
});

/* eslint-enable */
2 changes: 0 additions & 2 deletions e2e/jasmine-async/__tests__/promiseFit.test.js
Expand Up @@ -18,5 +18,3 @@ describe('promise fit', () => {

fit('will run and fail', () => Promise.reject());
});

/* eslint-enable */
2 changes: 0 additions & 2 deletions packages/jest-cli/src/init/__tests__/init.test.js
Expand Up @@ -221,5 +221,3 @@ describe('init', () => {
});
});
});

/* eslint-enable */
2 changes: 0 additions & 2 deletions packages/test-utils/src/ConditionalTest.ts
Expand Up @@ -44,5 +44,3 @@ export function onNodeVersions(
});
}
}

/* eslint-enable */

0 comments on commit 0646c73

Please sign in to comment.