{"repo":"kawamataryo/suppress-ts-errors","free":true,"listed":false,"github":"https://github.com/kawamataryo/suppress-ts-errors","clone":"git clone https://github.com/kawamataryo/suppress-ts-errors.git","description":"CLI tool to add @ts-expect-errors to typescript type errors","language":"TypeScript","stars":157,"topics":["cli","nodejs","typescript"],"license":"MIT","category":"cli-tools","readme_excerpt":"suppress-ts-errors Cli tool to add comments to suppress typescript type errors. Add @ts-expect-error or @ts-ignore comments to all locations where errors are occurring. Support for .ts , .tsx , .vue . 🚀 Usage Running scripts to .ts and .tsx Run the script in the directory where tsconfig.json is located. Running scripts to .vue When targeting vue sfc, the path of the vue component must be specified with the glob pattern. Notice: It does not support commenting out type errors in the section of vue, only the section. options option default description ------------------- ----------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -t, --tsconfig-path ./tsconfig.json Path to tsconfig.json. -c, --comment-type 1 Choice of inserted comment type. 1 is @ts-expect-error, 2 is @ts-ignore. -e, --error-code true Add error code to comment. e.g. TS2345. -g, --glob undefined Add a specific glob for error suppression (prevents script from processing all files and their dependencies) -m, --message undefined Add a custom message to the comment. ✨ Contributing Contributions are welcome 🎉 We accept contributions via Pull Requests. See this guide on how to make a contribution. 📄 License suppress-ts-errors is availabl","default_branch":null,"files":null,"tree":[],"storefront":"/r/kawamataryo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kawamataryo/suppress-ts-errors/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}