Linter usage
Add the following in tspconfig.yaml:
linter: extends: - "@azure-tools/typespec-client-generator-core/all"RuleSets
Section titled “RuleSets”Available ruleSets:
@azure-tools/typespec-client-generator-core/all@azure-tools/typespec-client-generator-core/best-practices:csharp
| Name | Description |
|---|---|
@azure-tools/typespec-client-generator-core/require-client-suffix | Client names should end with ‘Client’. |
@azure-tools/typespec-client-generator-core/property-name-conflict | Avoid naming conflicts between a property and a model of the same name. |
@azure-tools/typespec-client-generator-core/no-unnamed-types | Requires types to be named rather than defined anonymously or inline. |