Napoleon's Pixelated Mugshot

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

    0.1.0 • Public • Published

    Cadl Library Linter

    Installation

    Install the package as a dev dependency.

    npm install -D @cadl-lang/library-linter
    

    Usage

    Compile your library package. Any errors or warnings will be reported as cadl diagnostics.

    # At the root of your cadl library.
    cadl compile . --import @cadl-lang/library-linter

    Cadl 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.

    Keywords

    Install

    npm i @cadl-lang/library-linter@0.1.0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    10.9 kB

    Total Files

    19

    Last publish

    Collaborators

    • azure-sdk