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

@anedomansky/eslint-config

v2.3.0

Published

Opinionated ESLint configuration for quality code

Readme

eslint-config

npm version

ESLint configuration that helps to write quality code.

Features

ESLint v9.0.0+ is required.

Since v1.5.0 this package requires typescript-eslint in ^8.39.1 or higher in order to work.

Since v2.0.0 this package no longer makes use of eslint-plugin-prettier. Instead, it is recommended to use Prettier directly for formatting.

Installation

npm i -D @anedomansky/eslint-config

Usage

Create a eslint.config.mjs in the project root with the following content:

// @ts-check

import tseslint from 'typescript-eslint';
import { anStandardTS } from '@anedomansky/eslint-config';

export default tseslint.config(...anStandardTS, {
  languageOptions: {
    parserOptions: {
      projectService: true,
      tsconfigRootDir: import.meta.dirname,
    },
  },
});

Now you can add scripts to the package.json in order to manually lint your project:

{
  "scripts": {
    "lint": "eslint",
    "lint:fix": "eslint --fix"
  }
}

In order to activate linting while you're actively editing files install the VS Code ESLint extension

Add the following settings to your .vscode/settings.json:

{
  // Auto fix on explicit save
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit",
  },
  // Activates Prettier as default formatter
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  // Enable format on save
  "editor.formatOnSave": true,
  // Enable ESLint
  "eslint.enable": true,
  // Activate ESLint for all available languages
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "vue",
    "html",
    "markdown",
    "json",
    "jsonc",
    "yaml",
    "toml",
    "xml",
    "gql",
    "graphql",
    "astro",
    "svelte",
    "css",
    "less",
    "scss",
    "pcss",
    "postcss",
  ],
}

Customization

There are multiple preconfigured configuration packs that you can use:

Includes configs and rules for the following file types:

  • **/*.ts: Config and rules specific to TypeScript (including formatter rules)
  • **/.spec.ts|**/*.test.ts: Config and rules specific to Jest and @testing-library/*
  • **/*.e2e.spec.ts|**/*.e2e.test.ts: Config and rules specific to Playwright

Includes configs and rules for the following file types:

  • **/*.ts: Config and rules specific to TypeScript (including formatter rules and Angular specific rules)
  • **/.spec.ts|**/*.test.ts: Config and rules specific to Jest and @testing-library/*
  • **/*.e2e.spec.ts|**/*.e2e.test.ts: Config and rules specific to Playwright
  • **/*.html: Config and rules specific to Angular template files (including formatter rules)

Includes configs and rules for the following file types:

  • **/*.html: Config and rules specific to HTML (including formatter rules)

Includes configs and rules for the following file types:

  • **/*.json: Config and rules specific to JSON
  • **/*.jsonc: Config and rules specific to JSONC
  • **/*.json5: Config and rules specific to JSON5

Add a rules section to your eslint.config.mjs file to customize rules:

{
  // ... other config
  rules: {
    // Disable a rule
    "no-console": "off",
    // Enable a rule with a specific severity
    "no-unused-vars": "warn",
    // Enable a rule with options and a specific severity
    "@typescript-eslint/no-explicit-any": ["warn", { "ignoreRestArgs": true }]
  }
}

Since v2.0.0 this package no longer makes use of eslint-plugin-prettier. Instead, it is recommended to use Prettier directly for formatting. In order to do so, you can add a .prettierrc file to your project root with the following content:

{
  "singleQuote": true,
  "useTabs": false,
  "tabWidth": 2,
  "semi": true,
  "bracketSpacing": true,
  "bracketSameLine": true,
  "endOfLine": "auto",
  "overrides": [
    {
      "files": "*.html",
      "options": {
        "parser": "angular"
      }
    }
  ]
}

Aside from that you can compose your own configuration with the following configurations:

| Name | Description | Since | | ------------------------------- | ------------------------------------------------------------------------------------------- | ----- | | an.configs.ts | Relevant config and rules for TS files | 1.0.0 | | an.configs.html | Relevant config and rules for HTML files. Do not use together with an.configs.htmlAngular | 1.1.0 | | an.configs.htmlAngular | Relevant config and rules for Angular templates. Do not use together with an.configs.html | 1.0.0 | | an.configs.json | Relevant config and rules for JSON files | 1.2.0 | | an.configs.jsonc | Relevant config and rules for JSONC files | 1.2.0 | | an.configs.json5 | Relevant config and rules for JSON5 files | 1.2.0 | | an.configs.unit | Relevant config and rules for Jest test files | 1.0.0 | | an.configs.unitTestingLibrary | Relevant config and rules for test files that use @testing-library/* | 1.0.0 | | an.configs.ui | Relevant config and rules for Playwright test files | 1.0.0 |

Roadmap

Configurations/Formatters for:

  • JavaScript
  • SCSS
  • CSS
  • Markdown