0dea649cd7
- Remove unused rollup-plugin-dts dep that had problematic license - Update dependencies to fix vulnerabilies |
||
---|---|---|
.. | ||
src | ||
test | ||
.eslintrc.cjs | ||
CHANGELOG.json | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
package.json | ||
tsconfig.config.json | ||
tsconfig.json | ||
vitest.config.ts |
README.md
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. |