prismatic-io / spectral

Prismatic's typescript library for custom components
https://prismatic.io/docs/spectral/custom-component-library
35 stars 2 forks source link

Add no-unused-vars rule to eslint #183

Closed taylorreece closed 6 months ago

taylorreece commented 6 months ago

When generating a component from an OpenAPI spec, some action files will include an import of util from @prismatic-io/spectral, but will not use util in inputs. Running a subsequent npm run format of the generated project, then, yields @typescript-eslint/no-unused-vars errors. This downgrades those errors to warnings so the format can continue to run.