Skip to content

Commit

Permalink
Fix missing canonical-versioning ruleset in arm lib (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin authored Mar 1, 2024
1 parent 8b79de7 commit 54f5a32
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: feature
packages:
- "@azure-tools/typespec-azure-resource-manager"
---

Add ruleset `canonical-versioning` to Azure Resource Manager library.
5 changes: 4 additions & 1 deletion packages/typespec-azure-resource-manager/src/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export const $linter = defineLinter({
rules,
ruleSets: {
all: {
extends: [
"@azure-tools/typespec-azure-core/all",
"@azure-tools/typespec-azure-core/canonical-versioning",
],
enable: {
...allRulesEnabled,
// TODO: Enable this rule once azure-rest-api-specs repo is ready (issue #3839)
Expand All @@ -70,7 +74,6 @@ export const $linter = defineLinter({
[`@azure-tools/typespec-azure-core/bad-record-type`]:
"This clashes with the ARM `no-record` rule.",
},
extends: ["@azure-tools/typespec-azure-core/all"],
},
},
});

0 comments on commit 54f5a32

Please sign in to comment.