Skip to content

Commit dbea9ce

Browse files
committed
Remove some unnecessary eslint ignores
1 parent bc08f0e commit dbea9ce

File tree

15 files changed

+13
-16
lines changed

15 files changed

+13
-16
lines changed

packages/@aws-cdk/custom-resource-handlers/scripts/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable import/no-extraneous-dependencies */
1+
22
import * as fs from 'fs';
33
import * as path from 'path';
44
import * as esbuild from 'esbuild';

packages/@aws-cdk/integ-tests-alpha/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@
137137
"assert/assert-dependency"
138138
]
139139
}
140-
}
140+
}

packages/aws-cdk-lib/core/test/aspect.prop.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @cdklabs/no-throw-default-error */
1+
22
import { Construct, IConstruct } from 'constructs';
33
import * as fc from 'fast-check';
44
import * as fs from 'fs-extra';

packages/aws-cdk-lib/core/test/custom-resource-provider/custom-resource-provider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @cdklabs/no-throw-default-error */
1+
22
import * as fs from 'fs';
33
import * as path from 'path';
44
import { Construct } from 'constructs';

packages/aws-cdk-lib/core/test/metadata.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ describe('addMethodMetadata & addConstructMetadata', () => {
188188
it('addMethodMetadata should trigger addWarningV2 when addMetadata throws an error', () => {
189189
// Mock addMetadata to throw an error
190190
jest.spyOn(metadata, 'addMetadata').mockImplementation(() => {
191-
// eslint-disable-next-line @cdklabs/no-throw-default-error
192191
throw new Error('Test Error');
193192
});
194193

@@ -207,7 +206,6 @@ describe('addMethodMetadata & addConstructMetadata', () => {
207206
it('addConstructMetadata should trigger addWarningV2 when addMetadata throws an error', () => {
208207
// Mock addMetadata to throw an error
209208
jest.spyOn(metadata, 'addMetadata').mockImplementation(() => {
210-
// eslint-disable-next-line @cdklabs/no-throw-default-error
211209
throw new Error('Test Error');
212210
});
213211

packages/aws-cdk-lib/core/test/prop-injectors.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @cdklabs/no-throw-default-error */
1+
22
import { Construct } from 'constructs';
33
import { Annotations, Resource, Stack, Stage } from '../lib';
44
import { App } from '../lib/app';

packages/aws-cdk-lib/core/test/staging.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @cdklabs/no-throw-default-error */
1+
22
import { spawnSync, execSync } from 'child_process';
33
import * as os from 'os';
44
import * as path from 'path';

packages/aws-cdk-lib/custom-resources/lib/provider-framework/runtime/framework.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @cdklabs/no-throw-default-error */
1+
22
/* eslint-disable max-len */
33

44
import * as cfnResponse from './cfn-response';

packages/aws-cdk-lib/custom-resources/lib/provider-framework/runtime/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @cdklabs/no-throw-default-error */
1+
22
/* eslint-disable no-console */
33

44
export function getEnv(name: string): string {

packages/aws-cdk-lib/custom-resources/test/provider-framework/mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @cdklabs/no-throw-default-error */
1+
22
import { OutgoingHttpHeaders } from 'http';
33
import * as https from 'https';
44
import { parse as urlparse } from 'url';

0 commit comments

Comments
 (0)