Skip to content

Commit a976737

Browse files
committed
ts[biome]: Fix(ignore) lint/suspicious/noEmptyInterface
1 parent a06b8fb commit a976737

23 files changed

+42
-4
lines changed

codegen/templates/javascript/types/struct.ts.jinja

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import {
55
{{ c | to_upper_camel_case }}Serializer,
66
} from './{{ c | to_lower_camel_case }}';
77
{% endfor -%}
8-
98
{% set type_name = type.name | to_upper_camel_case %}
109

10+
{% if type.fields | length == 0 %}// biome-ignore-all lint/suspicious/noEmptyInterface: backwards compat{% endif %}
11+
1112
{{ doc_comment }}
1213
export interface {{ type_name }} {
1314
{% include "types/struct_fields.ts.jinja" -%}

codegen/templates/javascript/types/struct_enum.ts.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ interface _{{ type_name }}Fields {
1717
{# export the types for enum variants without a config -#}
1818
{% for variant in type.variants %}
1919
{% if variant.schema_ref is not defined %}
20+
// biome-ignore lint/suspicious/noEmptyInterface: backwards compat
2021
interface {{ type_name }}{{ variant.name | to_upper_camel_case }}{{ type.content_field | to_upper_camel_case }} {}
2122
{% endif %}
2223
{% endfor %}

javascript/biome.jsonc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
},
2727
"suspicious": {
2828
// needs codegen fix
29-
"noExplicitAny": "off",
30-
// needs codegen fix
31-
"noEmptyInterface": "off"
29+
"noExplicitAny": "off"
3230
}
3331
}
3432
},

javascript/src/models/adobeSignConfigOut.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// this file is @generated
22

3+
// biome-ignore-all lint/suspicious/noEmptyInterface: backwards compat
4+
35
export interface AdobeSignConfigOut {}
46

57
export const AdobeSignConfigOutSerializer = {

javascript/src/models/airwallexConfigOut.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// this file is @generated
22

3+
// biome-ignore-all lint/suspicious/noEmptyInterface: backwards compat
4+
35
export interface AirwallexConfigOut {}
46

57
export const AirwallexConfigOutSerializer = {

javascript/src/models/checkbookConfigOut.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// this file is @generated
22

3+
// biome-ignore-all lint/suspicious/noEmptyInterface: backwards compat
4+
35
export interface CheckbookConfigOut {}
46

57
export const CheckbookConfigOutSerializer = {

javascript/src/models/docusignConfigOut.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// this file is @generated
22

3+
// biome-ignore-all lint/suspicious/noEmptyInterface: backwards compat
4+
35
export interface DocusignConfigOut {}
46

57
export const DocusignConfigOutSerializer = {

javascript/src/models/easypostConfigOut.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// this file is @generated
22

3+
// biome-ignore-all lint/suspicious/noEmptyInterface: backwards compat
4+
35
export interface EasypostConfigOut {}
46

57
export const EasypostConfigOutSerializer = {

javascript/src/models/githubConfigOut.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// this file is @generated
22

3+
// biome-ignore-all lint/suspicious/noEmptyInterface: backwards compat
4+
35
export interface GithubConfigOut {}
46

57
export const GithubConfigOutSerializer = {

javascript/src/models/hubspotConfigOut.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// this file is @generated
22

3+
// biome-ignore-all lint/suspicious/noEmptyInterface: backwards compat
4+
35
export interface HubspotConfigOut {}
46

57
export const HubspotConfigOutSerializer = {

0 commit comments

Comments
 (0)