Skip to content

Commit 5bbd8f8

Browse files
committed
rename catogories, and reorder options
1 parent efa3093 commit 5bbd8f8

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

src/compiler/commandLineParser.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -238,68 +238,70 @@ namespace ts {
238238
description: Diagnostics.Unconditionally_emit_imports_for_unresolved_files
239239
},
240240

241-
// Strict Checks
241+
// Strict Type Checks
242242
{
243243
name: "strict",
244244
type: "boolean",
245245
showInSimplifiedHelpView: true,
246-
category: Diagnostics.Strict_Checks,
246+
category: Diagnostics.Strict_Type_Checks,
247247
description: Diagnostics.Enable_all_strict_type_checks
248248
},
249249
{
250250
name: "noImplicitAny",
251251
type: "boolean",
252252
showInSimplifiedHelpView: true,
253-
category: Diagnostics.Strict_Checks,
253+
category: Diagnostics.Strict_Type_Checks,
254254
description: Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type,
255255
},
256256
{
257257
name: "strictNullChecks",
258258
type: "boolean",
259259
showInSimplifiedHelpView: true,
260-
category: Diagnostics.Strict_Checks,
260+
category: Diagnostics.Strict_Type_Checks,
261261
description: Diagnostics.Enable_strict_null_checks
262262
},
263263
{
264264
name: "noImplicitThis",
265265
type: "boolean",
266266
showInSimplifiedHelpView: true,
267-
category: Diagnostics.Strict_Checks,
267+
category: Diagnostics.Strict_Type_Checks,
268268
description: Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type,
269269
},
270270
{
271-
name: "noUnusedLocals",
271+
name: "alwaysStrict",
272272
type: "boolean",
273273
showInSimplifiedHelpView: true,
274-
category: Diagnostics.Strict_Checks,
275-
description: Diagnostics.Report_errors_on_unused_locals,
274+
category: Diagnostics.Strict_Type_Checks,
275+
description: Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file
276276
},
277+
278+
// Additional Checks
277279
{
278-
name: "noUnusedParameters",
280+
name: "noUnusedLocals",
279281
type: "boolean",
280282
showInSimplifiedHelpView: true,
281-
category: Diagnostics.Strict_Checks,
282-
description: Diagnostics.Report_errors_on_unused_parameters,
283+
category: Diagnostics.Additional_Checks,
284+
description: Diagnostics.Report_errors_on_unused_locals,
283285
},
284286
{
285-
name: "alwaysStrict",
287+
name: "noUnusedParameters",
286288
type: "boolean",
287289
showInSimplifiedHelpView: true,
288-
category: Diagnostics.Strict_Checks,
289-
description: Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file
290+
category: Diagnostics.Additional_Checks,
291+
description: Diagnostics.Report_errors_on_unused_parameters,
290292
},
291293
{
292294
name: "noImplicitReturns",
293295
type: "boolean",
294296
showInSimplifiedHelpView: true,
295-
category: Diagnostics.Strict_Checks,
297+
category: Diagnostics.Additional_Checks,
296298
description: Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value
297299
},
298300
{
299301
name: "noFallthroughCasesInSwitch",
300302
type: "boolean",
301303
showInSimplifiedHelpView: true,
302-
category: Diagnostics.Strict_Checks,
304+
category: Diagnostics.Additional_Checks,
303305
description: Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement
304306
},
305307

@@ -404,14 +406,6 @@ namespace ts {
404406
description: Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set
405407
},
406408

407-
// JSX
408-
{
409-
name: "jsxFactory",
410-
type: "string",
411-
category: Diagnostics.JSX_Options,
412-
description: Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h
413-
},
414-
415409
// Experimental
416410
{
417411
name: "experimentalDecorators",
@@ -427,6 +421,12 @@ namespace ts {
427421
},
428422

429423
// Advanced
424+
{
425+
name: "jsxFactory",
426+
type: "string",
427+
category: Diagnostics.Advanced_Options,
428+
description: Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h
429+
},
430430
{
431431
name: "diagnostics",
432432
type: "boolean",

src/compiler/diagnosticMessages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,7 +3137,7 @@
31373137
"category": "Message",
31383138
"code": 6172
31393139
},
3140-
"Strict Checks": {
3140+
"Strict Type Checks": {
31413141
"category": "Message",
31423142
"code": 6173
31433143
},
@@ -3149,7 +3149,7 @@
31493149
"category": "Message",
31503150
"code": 6175
31513151
},
3152-
"JSX Options": {
3152+
"Additional Checks": {
31533153
"category": "Message",
31543154
"code": 6176
31553155
},

0 commit comments

Comments
 (0)