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 🙏

© 2026 – Pkg Stats / Ryan Hefner

eslint-config-techsmith

v4.1.0

Published

ESLint rules for JavaScript and TypeScript

Readme

ESLint

ESLint rules for JavaScript and TypeScript

Use

  • Install this package, e.g. npm install --save-dev eslint-config-techsmith eslint
  • You may also want to install globals - npm install --save-dev globals
  • Create a file called eslint.config.js in your project root. It should have contents similar to this:
const getTscLintingConfig = require('./index');
const globals = require('globals');

module.exports = getTscLintingConfig(['node_modules/*'], globals.browser);
  • The first arg is what files to ignore - think carefully about this. You almost certainly want to ignore node_modules, but you may want to ignore others like auto-gen'd code or dist. You can run eslint with --debug to see what it thinks it needs to lint.
  • The second arg is an object (Record<string, false>) of globals for eslint to be aware of. You may use the globals package (not included) to make this easier.
  • This package should automatically handle JS, TS, and React with no further configuration
  • While this package has sensible default rules, you may want to tweak some rules. You can do so fairly easily, e.g.:
module.exports = [
   ...getTscLintingConfig(['node_modules/*'], globals.browser),
   {
      rules: {
         'no-console': [
            'error',
            {allow: ['debug', 'info', 'warn', 'error', 'time', 'timeEnd']}
         ]
      }
   },
   {
      files: ['**/*.ts', '**/*.tsx'],
      rules: {
         '@typescript-eslint/restrict-plus-operands': 'off',
         '@typescript-eslint/no-unsafe-member-access': 'off',
         '@typescript-eslint/no-unsafe-call': 'off',
         '@typescript-eslint/no-unsafe-assignment': 'off',
         '@typescript-eslint/no-unsafe-argument': 'off',
         '@typescript-eslint/prefer-nullish-coalescing': 'off',
         'prefer-arrow/prefer-arrow-functions': ['error', {classPropertiesAllowed: true}],
         '@typescript-eslint/consistent-type-imports': ['error', {fixStyle: 'inline-type-imports'}]
      }
   }
];

Integrating into your build

  • Run eslint as part of your build to ensure your JavaScript is up to snuff!
  • As an example, add the following to your package.json file
"scripts": {
    "lint": "eslint --cache --color",
}
  • This example will lint all JS and TS files in your project.
  • Run the script as a "custom script" build step: npm run lint or yarn lint

Releasing

This is a public npm package. These are the steps for releasing

  1. Merge PR / update version number in package.json
  2. Get 'TSC NPM Publish Token' frmo the usual place credentials are stored (leaving this deliberately vague since this is a public repo)
  3. In your command window: npm set //registry.npmjs.org/:_authToken ##THEPUBLISHTOKENRETRIEVEDINSTEP2##
    • In command window so it only persists for the duration of your local terminal session
  4. npm publish

Testing

This project lints itself and also contains some files in __tests__ and example-files which should currently have various linting failures. However, you will likely need to publish a pre-release package and try it in a current repo to validate any tweaks.