Skip to content

Linter usage

Add the following in tspconfig.yaml:

linter:
extends:
- "@azure-tools/typespec-client-generator-core/all"

Available ruleSets:

  • @azure-tools/typespec-client-generator-core/all
  • @azure-tools/typespec-client-generator-core/best-practices:csharp
NameDescription
@azure-tools/typespec-client-generator-core/require-client-suffixClient names should end with ‘Client’.
@azure-tools/typespec-client-generator-core/property-name-conflictAvoid naming conflicts between a property and a model of the same name.
@azure-tools/typespec-client-generator-core/no-unnamed-typesRequires types to be named rather than defined anonymously or inline.