Skip to content

Commit

Permalink
Enable no-closed-literal rule (#505)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Cowlishaw <[email protected]>
  • Loading branch information
timotheeguerin and markcowl authored Apr 1, 2024
1 parent fdf303e commit b58a8e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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-core"
---

Enable `no-closed-literal` linter rule by default in `all` ruleset
1 change: 1 addition & 0 deletions packages/typespec-azure-core/src/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export const $linter = defineLinter({
[`@azure-tools/typespec-azure-core/${useStandardNames.name}`]: true,
[`@azure-tools/typespec-azure-core/${friendlyNameRule.name}`]: true,
[`@azure-tools/typespec-azure-core/${noEnumRule.name}`]: true,
[`@azure-tools/typespec-azure-core/${noClosedLiteralUnionRule.name}`]: true,
},
extends: ["@typespec/http/all"],
},
Expand Down

0 comments on commit b58a8e8

Please sign in to comment.