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

tslint-config-kam

v1.0.0

Published

KAM Typescript standards (TsLint)

Downloads

30

Readme

KAM Typescript standards (TsLint)

Package to unify TsLint version and rules across projects. No need to install tslint anymore in your projects and maintain them all separatly. This package will provide you with tslint itself and with the rules we follow at KAM

Install

npm install -D tslint-config-kam

or

yarn add -D tslint-config-kam

Usage

Create the file tslint.json in your root folder and extend kam rules

{
	"extends": "tslint-config-kam"
}

You will need to provide your tsconfig.json

  • For just linting and showing the report, run:
kamtslint tsconfig.json tslint.json
  • For linting and autofix the problems (works either with -f or --fix), run:
kamtslint --fix tsconfig.json tslint.json

Note:

  • Change tsconfig.json with the location of your typescript config file
  • Change tslint.json with the location of your tslint config file

Recommended

  • Add to your package.json scripts section the two following scripts:
"tslint": "kamtslint tsconfig.json tslint.json",
"tslint:fix": "kamtslint -f tsconfig.json tslint.json",
  • Configure your IDE to use this rules so you don't need to be running the scripts while developing

KAM rules

Rules

Update the package

To update this package when a new version is ready, run:

npm update tslint-config-kam

or

yarn upgrade tslint-config-kam

Changelog

Changelog

Contributing

contributions welcome

Please remember to increment the version on package.json following the SemVer specification.

  1. Create a new branch from master following the next pattern:
feature/[TICKET-NUM-]short-description

Example: feature/KAM-123-add-rule-foobar

Note: If there is no ticket then just do feature/add-rule-foobar

  1. Create a PR agains master. You will need to have at least one approval and the inspection job from the pipeline needs to pass correctly.

  2. When merging PR to master, a Bitbucket pipeline will inspect the code and if everything is correct it will generate a new tag and push it. This tag number corresponds to the verison npm uses to install/update the package (version in package.json). If the tag is created correctly then it will be automatically publish on npm registry

License

This software is licensed under the terms of the MIT license. See LICENSE.md for the full license.