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-sungl

v0.0.3

Published

Easy start with ESLint, Prettier, and TypeScript

Downloads

5

Readme

Easy start with ESLint, Prettier, and TypeScript

These are the common settings for ESLint and Prettier to support JavaScript, React, and TypeScript.

Installation

You can install this lint rules globally. However, installing per project is recommended so your projects have the same settings within team members and machines.

  1. If you don't already have a package.json file, create one with npm init -y.
  2. Then we need to install this:
npx install-peerdeps --dev eslint-config-sungl
  1. Check your package.json to see the list of devDependencies.
  2. Create a .eslintrc file in the root of your project's directory. And add this:
{
    "extends": ["sungl"],
    // add files or folders to be ignored per your project
    "ignorePatterns": [".next/*", "node_modules/*", "out/*", "public/*", "temp.js", "**/vendor/*.js"]
}
  1. (The steps after this are optional and not recommended. Let your editor do the work!) You can add two scripts to your package.json to lint and/or fix:
"scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
},
  1. Now you can manullay lint your code by running npm run lint and fix issues with npm run lint:fix.

Your Own Settings

If you'd like to overwrite eslint or prettier settngs, you can add rules in your .eslintrc file. ESLint rules go directly under "rules", and Prettier options go under "prettier/prettier".

{
  "extends": [
    "sungl"
  ],
  "rules": {
    "no-console": 2,
    "prettier/prettier": [
      "error",
      {
        "trailingComma": "es5",
        "singleQuote": true,
        "printWidth": 120,
        "tabWidth": 8,
      }
    ]
  }
}

VS Code Settings

Once you've done all your installation and settings above, you can make VS Code to lint and fix for your.

  1. Install the ESLint package.
  2. Open VS Code Preferences and edit settings.json.
"editor.formatOnSave": true,
"tslint.enable": false,
"eslint.enable": true,
"eslint.run": "onType",
"eslint.format.enable": true,
// turn it off for JS and JSX, we will do this via eslint
"[javascript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascriptreact]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescriptreact]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
// tell the ESLint plugin to run on save
"editor.codeActionsOnSave": {
    "source.fixAll": true
},
// Optional BUT IMPORTANT: If you have the prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already
"prettier.disableLanguages": ["javascript", "javascriptreact", "typescript", "typescriptreact"],