Install the package as a dev dependency.
npm install -D @typespec/library-linter
Compile your library package. Any errors or warnings will be reported as typespec diagnostics.
# At the root of your typespec library.
tsp compile . --import @typespec/library-linter
Rule name | Description |
---|---|
missing-namespace |
Validate that every exported element from the library(Models, JS functions, operations, etc.) is in a namespace. |