@typespec/library-linter
TypeScript icon, indicating that this package has built-in type declarations

0.55.0 • Public • Published

TypeSpec Library Linter

Installation

Install the package as a dev dependency.

npm install -D @typespec/library-linter

Usage

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

TypeSpec Library Best rules and best practices

Rule name Description
missing-namespace Validate that every exported element from the library (models, JS functions, operations, etc.) is in a namespace.

Readme

Keywords

Package Sidebar

Install

npm i @typespec/library-linter

Homepage

typespec.io

Weekly Downloads

1,585

Version

0.55.0

License

MIT

Unpacked Size

13.6 kB

Total Files

19

Last publish

Collaborators

  • microsoft1es
  • azure-sdk