Skip to content

Commit 264aa28

Browse files
committed
fix(cli): remove no-any warning from model template
Disabling the no-any warning that happens when a model allows additional properties
1 parent fedb6a7 commit 264aa28

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/cli/generators/model/templates/model.ts.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export class <%= className %> extends <%= modelBaseClass %> {
2626
// Define well-known properties here
2727
2828
// Indexer property to allow additional data
29+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2930
[prop: string]: any;
3031
<% } -%>
3132

packages/cli/test/integration/generators/model.integration.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ describe('lb4 model integration', () => {
198198
expectedModelFile,
199199
/export class Test extends Entity {/,
200200
);
201+
assert.fileContent(
202+
expectedModelFile,
203+
/eslint-disable-next-line \@typescript-eslint\/no-explicit-any/,
204+
);
201205
assert.fileContent(expectedModelFile, /\[prop: string\]: any;/);
202206
});
203207

0 commit comments

Comments
 (0)