Skip to content

Commit c6a8a36

Browse files
committed
Ignore generated Sandpack lint bundle
1 parent 9e623f6 commit c6a8a36

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ const config = [
1212
'coverage/**',
1313
'dist/**',
1414
'out/**',
15+
'.private-investigation/**',
1516
'scripts/**',
1617
'plugins/**',
1718
'.claude/**',
1819
'worker-bundle.dist.js',
20+
'src/components/MDX/Sandpack/generatedHooksLint.ts',
1921
'src/components/MDX/Sandpack/sandpack-rsc/generatedSources.ts',
2022
'src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/**',
2123
'next-env.d.ts',

scripts/buildSandpackHooksLint.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ await esbuild.build({
9494
});
9595

9696
const generatedSource = fs.readFileSync(generatedHooksLintOutfile, 'utf8');
97-
const header = `// @ts-nocheck
97+
const header = `/* eslint-disable */
98+
// @ts-nocheck
9899
/**
99100
* Copyright (c) Meta Platforms, Inc. and affiliates.
100101
*

src/components/MDX/Sandpack/generatedHooksLint.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
// @ts-nocheck
23
/**
34
* Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -45557,9 +45558,11 @@ ${d}`;
4555745558
'Expected all "object" property names to be valid identifier, `*` to match any property, of `default` to define a module default export'
4555845559
),
4555945560
$U = W.z.object({kind: W.z.literal('object'), properties: OU.nullable()}),
45560-
Wt = W.z.string().refine((e) => e.startsWith('@'), {
45561-
message: "Placeholder names must start with '@'",
45562-
}),
45561+
Wt = W.z
45562+
.string()
45563+
.refine((e) => e.startsWith('@'), {
45564+
message: "Placeholder names must start with '@'",
45565+
}),
4556345566
jU = W.z.object({kind: W.z.literal('Freeze'), value: Wt, reason: X0}),
4556445567
CU = W.z.object({kind: W.z.literal('Mutate'), value: Wt}),
4556545568
DU = W.z.object({

0 commit comments

Comments
 (0)