Skip to content

Commit 0646c73

Browse files
authored
chore: add allowWholeFile to disable-enable-pair eslint rule (#10506)
1 parent 7f10a9d commit 0646c73

File tree

6 files changed

+3
-11
lines changed

6 files changed

+3
-11
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ module.exports = {
146146
plugins: ['markdown', 'import', 'prettier', 'eslint-comments'],
147147
rules: {
148148
'arrow-body-style': 2,
149+
'eslint-comments/disable-enable-pair': [2, {allowWholeFile: true}],
149150
'eslint-comments/no-unused-disable': 2,
150151
'flowtype/boolean-style': 2,
151152
'flowtype/no-primitive-constructor-types': 2,

e2e/coverage-remapping/covered.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ export = function difference(a: number, b: number): number {
1515

1616
return a - b;
1717
};
18-
19-
/* eslint-enable */

e2e/focused-tests/__tests__/tests.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
7-
'use strict';
87

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

10+
'use strict';
11+
1112
describe('describe', () => {
1213
it('it', () => {
1314
expect(1).toBe(1);
@@ -23,5 +24,3 @@ describe.only('describe only', () => {
2324
expect(1).toBe(1);
2425
});
2526
});
26-
27-
/* eslint-enable */

e2e/jasmine-async/__tests__/promiseFit.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ describe('promise fit', () => {
1818

1919
fit('will run and fail', () => Promise.reject());
2020
});
21-
22-
/* eslint-enable */

packages/jest-cli/src/init/__tests__/init.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,3 @@ describe('init', () => {
221221
});
222222
});
223223
});
224-
225-
/* eslint-enable */

packages/test-utils/src/ConditionalTest.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,3 @@ export function onNodeVersions(
4444
});
4545
}
4646
}
47-
48-
/* eslint-enable */

0 commit comments

Comments
 (0)