diff --git a/.eslintrc.js b/.eslintrc.js index 928455ddea90..52aeaf62c47c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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, diff --git a/e2e/coverage-remapping/covered.ts b/e2e/coverage-remapping/covered.ts index 793f81620e1e..36ba129fd3b2 100644 --- a/e2e/coverage-remapping/covered.ts +++ b/e2e/coverage-remapping/covered.ts @@ -15,5 +15,3 @@ export = function difference(a: number, b: number): number { return a - b; }; - -/* eslint-enable */ diff --git a/e2e/focused-tests/__tests__/tests.js b/e2e/focused-tests/__tests__/tests.js index 908cff7ed915..9d0f4a0374f4 100644 --- a/e2e/focused-tests/__tests__/tests.js +++ b/e2e/focused-tests/__tests__/tests.js @@ -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); @@ -23,5 +24,3 @@ describe.only('describe only', () => { expect(1).toBe(1); }); }); - -/* eslint-enable */ diff --git a/e2e/jasmine-async/__tests__/promiseFit.test.js b/e2e/jasmine-async/__tests__/promiseFit.test.js index e1c25dc49a09..6faff09c4951 100644 --- a/e2e/jasmine-async/__tests__/promiseFit.test.js +++ b/e2e/jasmine-async/__tests__/promiseFit.test.js @@ -18,5 +18,3 @@ describe('promise fit', () => { fit('will run and fail', () => Promise.reject()); }); - -/* eslint-enable */ diff --git a/packages/jest-cli/src/init/__tests__/init.test.js b/packages/jest-cli/src/init/__tests__/init.test.js index 0824c70f43a1..e8b1b2fe1265 100644 --- a/packages/jest-cli/src/init/__tests__/init.test.js +++ b/packages/jest-cli/src/init/__tests__/init.test.js @@ -221,5 +221,3 @@ describe('init', () => { }); }); }); - -/* eslint-enable */ diff --git a/packages/test-utils/src/ConditionalTest.ts b/packages/test-utils/src/ConditionalTest.ts index a422d79860f0..b56aca5d18cc 100644 --- a/packages/test-utils/src/ConditionalTest.ts +++ b/packages/test-utils/src/ConditionalTest.ts @@ -44,5 +44,3 @@ export function onNodeVersions( }); } } - -/* eslint-enable */