Skip to content

Commit

Permalink
fix(codegen): add eslint-disable banner
Browse files Browse the repository at this point in the history
  • Loading branch information
jonambas committed Apr 11, 2024
1 parent 9c873fd commit cd9316f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/__tests__/codegen.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ describe('codegen', () => {
"file": "ct.mjs",
},
{
"code": "type PluginCtMapType = {
"code": "/* eslint-disable */
type PluginCtMapType = {
'foo.100': '#fff';
'foo.200': {"base":"#000","lg":"#111"};
'bar.100': 'red';
Expand Down
2 changes: 1 addition & 1 deletion src/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const codegen = (

const ctDtsFile: ArtifactContent = {
file: `ct.d.${dtsExt}`,
code: `type PluginCtMapType = {${serializeMapTypes(map)}};
code: `/* eslint-disable */\ntype PluginCtMapType = {${serializeMapTypes(map)}};
export declare const ct: <T extends keyof PluginCtMapType>(alias: T) => PluginCtMapType[T];`,
};

Expand Down

0 comments on commit cd9316f

Please sign in to comment.