npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

coc-tslint-plugin

v1.2.0

Published

TSLint extension for coc.nvim as tsserver plugin

Downloads

852

Readme

coc-tslint-plugin

WARNING this extension is deprecated since tslint is deprecated in favor of eslint.

Adds tslint to coc.nvim using the TypeScript TSLint language service plugin.

This is a fork of vscode-typescript-tslint-plugin.

Please refer to the tslint documentation for how to configure the linting rules.

Install

Important: If you also have the coc-tslint extension installed, please disable it to avoid linting files twice.*

In your vim/neovim, run command:

:CocInstall coc-tsserver coc-tslint-plugin

Configuration

You can either configure the TSLint extension using a tsconfig or jsconfig as described here, or configure it with coc.nvim settings.

Note the coc.nvim based configuration override the tsconfig or jsconfig configuration.

  • tslint.configFile - The configuration file that tslint should use instead of the default tslint.json. A relative file path is resolved relative to the project root.

  • tslint.jsEnable - Enable/disable tslint for .js files. Default is false.

  • tslint.ignoreDefinitionFiles - Control if TypeScript definition files should be ignored. Default is true.

  • tslint.exclude - A glob or an array of globs. Any file matching these globs will not be linted.

  • tslint.alwaysShowRuleFailuresAsWarnings - Always show rule failures as warnings, ignoring the severity configuration in the tslint.json configuration.

  • tslint.suppressWhileTypeErrorsPresent - Suppress tslint errors from being reported while other errors are present.

  • tslint.autoFixOnSave - fix autofixable issues on save.

Differences with the coc-tslint extension

  • The implementation as a TypeScript server plugin enables to shares the program representation with TypeScript. This is more efficient than the current coc-tslint implementation. The current TSLint implementation needs to reanalyze a document that has already been analyzed by the TypeScript language server.

  • coc-tslint can only lint one file a time. It therefore cannot support semantic tslint rules that require the type checker. The language service plugin doesn't have this limitation. To overcome this limitation is a key motivation for reimplementing the extension.

License

MIT