You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3e042b9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: npm/oxlint/configuration_schema.json
+98-1Lines changed: 98 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -891,6 +891,58 @@
891
891
},
892
892
"additionalProperties": false
893
893
},
894
+
"ChecksVoidReturn": {
895
+
"anyOf": [
896
+
{
897
+
"type": "boolean"
898
+
},
899
+
{
900
+
"$ref": "#/definitions/ChecksVoidReturnOptions"
901
+
}
902
+
]
903
+
},
904
+
"ChecksVoidReturnOptions": {
905
+
"type": "object",
906
+
"properties": {
907
+
"arguments": {
908
+
"description": "Whether to check Promise-returning functions passed as arguments to void-returning functions.",
909
+
"default": true,
910
+
"type": "boolean",
911
+
"markdownDescription": "Whether to check Promise-returning functions passed as arguments to void-returning functions."
912
+
},
913
+
"attributes": {
914
+
"description": "Whether to check Promise-returning functions in JSX attributes expecting void.",
915
+
"default": true,
916
+
"type": "boolean",
917
+
"markdownDescription": "Whether to check Promise-returning functions in JSX attributes expecting void."
918
+
},
919
+
"inheritedMethods": {
920
+
"description": "Whether to check Promise-returning methods that override void-returning inherited methods.",
921
+
"default": true,
922
+
"type": "boolean",
923
+
"markdownDescription": "Whether to check Promise-returning methods that override void-returning inherited methods."
924
+
},
925
+
"properties": {
926
+
"description": "Whether to check Promise-returning functions assigned to object properties expecting void.",
927
+
"default": true,
928
+
"type": "boolean",
929
+
"markdownDescription": "Whether to check Promise-returning functions assigned to object properties expecting void."
930
+
},
931
+
"returns": {
932
+
"description": "Whether to check Promise values returned from void-returning functions.",
933
+
"default": true,
934
+
"type": "boolean",
935
+
"markdownDescription": "Whether to check Promise values returned from void-returning functions."
936
+
},
937
+
"variables": {
938
+
"description": "Whether to check Promise-returning functions assigned to variables typed as void-returning.",
939
+
"default": true,
940
+
"type": "boolean",
941
+
"markdownDescription": "Whether to check Promise-returning functions assigned to variables typed as void-returning."
942
+
}
943
+
},
944
+
"additionalProperties": false
945
+
},
894
946
"ClassLiteralPropertyStyleOption": {
895
947
"oneOf": [
896
948
{
@@ -6484,7 +6536,24 @@
6484
6536
"$ref": "#/definitions/RuleNoConfig"
6485
6537
},
6486
6538
"typescript/no-misused-promises": {
6487
-
"$ref": "#/definitions/DummyRule"
6539
+
"anyOf": [
6540
+
{
6541
+
"$ref": "#/definitions/AllowWarnDeny"
6542
+
},
6543
+
{
6544
+
"type": "array",
6545
+
"items": [
6546
+
{
6547
+
"$ref": "#/definitions/AllowWarnDeny"
6548
+
},
6549
+
{
6550
+
"$ref": "#/definitions/NoMisusedPromisesConfig"
6551
+
}
6552
+
],
6553
+
"maxItems": 2,
6554
+
"minItems": 1
6555
+
}
6556
+
]
6488
6557
},
6489
6558
"typescript/no-misused-spread": {
6490
6559
"anyOf": [
@@ -12049,6 +12118,34 @@
12049
12118
},
12050
12119
"additionalProperties": false
12051
12120
},
12121
+
"NoMisusedPromisesConfig": {
12122
+
"type": "object",
12123
+
"properties": {
12124
+
"checksConditionals": {
12125
+
"description": "Whether to check if Promises are used in conditionals.\nWhen true, disallows using Promises in conditions where a boolean is expected.",
12126
+
"default": true,
12127
+
"type": "boolean",
12128
+
"markdownDescription": "Whether to check if Promises are used in conditionals.\nWhen true, disallows using Promises in conditions where a boolean is expected."
12129
+
},
12130
+
"checksSpreads": {
12131
+
"description": "Whether to check if Promises are used in spread syntax.\nWhen true, disallows spreading Promise values.",
12132
+
"default": true,
12133
+
"type": "boolean",
12134
+
"markdownDescription": "Whether to check if Promises are used in spread syntax.\nWhen true, disallows spreading Promise values."
12135
+
},
12136
+
"checksVoidReturn": {
12137
+
"description": "Configuration for checking if Promises are returned in contexts expecting void.\nCan be a boolean to enable/disable all checks, or an object for granular control.",
12138
+
"default": true,
12139
+
"allOf": [
12140
+
{
12141
+
"$ref": "#/definitions/ChecksVoidReturn"
12142
+
}
12143
+
],
12144
+
"markdownDescription": "Configuration for checking if Promises are returned in contexts expecting void.\nCan be a boolean to enable/disable all checks, or an object for granular control."
Copy file name to clipboardExpand all lines: tasks/website_linter/src/snapshots/schema_json.snap
+98-1Lines changed: 98 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -895,6 +895,58 @@ expression: json
895
895
},
896
896
"additionalProperties": false
897
897
},
898
+
"ChecksVoidReturn": {
899
+
"anyOf": [
900
+
{
901
+
"type": "boolean"
902
+
},
903
+
{
904
+
"$ref": "#/definitions/ChecksVoidReturnOptions"
905
+
}
906
+
]
907
+
},
908
+
"ChecksVoidReturnOptions": {
909
+
"type": "object",
910
+
"properties": {
911
+
"arguments": {
912
+
"description": "Whether to check Promise-returning functions passed as arguments to void-returning functions.",
913
+
"default": true,
914
+
"type": "boolean",
915
+
"markdownDescription": "Whether to check Promise-returning functions passed as arguments to void-returning functions."
916
+
},
917
+
"attributes": {
918
+
"description": "Whether to check Promise-returning functions in JSX attributes expecting void.",
919
+
"default": true,
920
+
"type": "boolean",
921
+
"markdownDescription": "Whether to check Promise-returning functions in JSX attributes expecting void."
922
+
},
923
+
"inheritedMethods": {
924
+
"description": "Whether to check Promise-returning methods that override void-returning inherited methods.",
925
+
"default": true,
926
+
"type": "boolean",
927
+
"markdownDescription": "Whether to check Promise-returning methods that override void-returning inherited methods."
928
+
},
929
+
"properties": {
930
+
"description": "Whether to check Promise-returning functions assigned to object properties expecting void.",
931
+
"default": true,
932
+
"type": "boolean",
933
+
"markdownDescription": "Whether to check Promise-returning functions assigned to object properties expecting void."
934
+
},
935
+
"returns": {
936
+
"description": "Whether to check Promise values returned from void-returning functions.",
937
+
"default": true,
938
+
"type": "boolean",
939
+
"markdownDescription": "Whether to check Promise values returned from void-returning functions."
940
+
},
941
+
"variables": {
942
+
"description": "Whether to check Promise-returning functions assigned to variables typed as void-returning.",
943
+
"default": true,
944
+
"type": "boolean",
945
+
"markdownDescription": "Whether to check Promise-returning functions assigned to variables typed as void-returning."
946
+
}
947
+
},
948
+
"additionalProperties": false
949
+
},
898
950
"ClassLiteralPropertyStyleOption": {
899
951
"oneOf": [
900
952
{
@@ -6488,7 +6540,24 @@ expression: json
6488
6540
"$ref": "#/definitions/RuleNoConfig"
6489
6541
},
6490
6542
"typescript/no-misused-promises": {
6491
-
"$ref": "#/definitions/DummyRule"
6543
+
"anyOf": [
6544
+
{
6545
+
"$ref": "#/definitions/AllowWarnDeny"
6546
+
},
6547
+
{
6548
+
"type": "array",
6549
+
"items": [
6550
+
{
6551
+
"$ref": "#/definitions/AllowWarnDeny"
6552
+
},
6553
+
{
6554
+
"$ref": "#/definitions/NoMisusedPromisesConfig"
6555
+
}
6556
+
],
6557
+
"maxItems": 2,
6558
+
"minItems": 1
6559
+
}
6560
+
]
6492
6561
},
6493
6562
"typescript/no-misused-spread": {
6494
6563
"anyOf": [
@@ -12053,6 +12122,34 @@ expression: json
12053
12122
},
12054
12123
"additionalProperties": false
12055
12124
},
12125
+
"NoMisusedPromisesConfig": {
12126
+
"type": "object",
12127
+
"properties": {
12128
+
"checksConditionals": {
12129
+
"description": "Whether to check if Promises are used in conditionals.\nWhen true, disallows using Promises in conditions where a boolean is expected.",
12130
+
"default": true,
12131
+
"type": "boolean",
12132
+
"markdownDescription": "Whether to check if Promises are used in conditionals.\nWhen true, disallows using Promises in conditions where a boolean is expected."
12133
+
},
12134
+
"checksSpreads": {
12135
+
"description": "Whether to check if Promises are used in spread syntax.\nWhen true, disallows spreading Promise values.",
12136
+
"default": true,
12137
+
"type": "boolean",
12138
+
"markdownDescription": "Whether to check if Promises are used in spread syntax.\nWhen true, disallows spreading Promise values."
12139
+
},
12140
+
"checksVoidReturn": {
12141
+
"description": "Configuration for checking if Promises are returned in contexts expecting void.\nCan be a boolean to enable/disable all checks, or an object for granular control.",
12142
+
"default": true,
12143
+
"allOf": [
12144
+
{
12145
+
"$ref": "#/definitions/ChecksVoidReturn"
12146
+
}
12147
+
],
12148
+
"markdownDescription": "Configuration for checking if Promises are returned in contexts expecting void.\nCan be a boolean to enable/disable all checks, or an object for granular control."
0 commit comments