Skip to content

Commit 97f712f

Browse files
mishushakovclaude
andcommitted
Use eslint-disable/enable block for ban-types on multiline type
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 53fdd42 commit 97f712f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/src/sandbox.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export interface CreateCodeContextOpts {
8888
*
8989
* @default python
9090
*/
91-
// eslint-disable-next-line @typescript-eslint/ban-types
91+
/* eslint-disable @typescript-eslint/ban-types */
9292
language?:
9393
| 'python'
9494
| 'javascript'
@@ -97,6 +97,7 @@ export interface CreateCodeContextOpts {
9797
| 'java'
9898
| 'bash'
9999
| (string & {})
100+
/* eslint-enable @typescript-eslint/ban-types */
100101
/**
101102
* Timeout for the request in **milliseconds**.
102103
*
@@ -157,7 +158,7 @@ export class Sandbox extends BaseSandbox {
157158
*
158159
* If not defined, the default Python context is used.
159160
*/
160-
// eslint-disable-next-line @typescript-eslint/ban-types
161+
/* eslint-disable @typescript-eslint/ban-types */
161162
language?:
162163
| 'python'
163164
| 'javascript'
@@ -166,6 +167,7 @@ export class Sandbox extends BaseSandbox {
166167
| 'java'
167168
| 'bash'
168169
| (string & {})
170+
/* eslint-enable @typescript-eslint/ban-types */
169171
}
170172
): Promise<Execution>
171173
/**

0 commit comments

Comments
 (0)