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

@kununu/eslint-config

v7.3.4

Published

kununu's ESLint config

Readme

@kununu/eslint-config

kununu's shared ESLint config (ESLint v9 — flat config)

Shared linting rules for consistent JS, JSX, TS, and TSX across kununu's frontend apps, BFFs, and shared libraries. It bundles the parsers and plugins it needs, so consumers only install this one package.

Flat config only. This package targets ESLint v9's flat config (eslint.config.*). There is no legacy .eslintrc export. (v6.0.0+ is flat config; v4/v5 were the legacy format.)

📦 Installation

npm install --save-dev @kununu/eslint-config

typescript is an optional peer dependency (>=5.0.0) — only needed for the type-aware TypeScript rules (see below).

💻 Usage

Create an eslint.config.mjs (ESM — the config is published as an ES module):

import kununuConfig from '@kununu/eslint-config';

export default [
  ...kununuConfig,
  // your project-specific overrides here
];

Add a lint script to package.json:

{
  "scripts": {
    "lint": "eslint ."
  }
}

See the ESLint docs for more on configuration and usage.

TypeScript (type-aware rules)

The TS rules use @typescript-eslint's projectService, which auto-discovers your tsconfig.json. Make sure one exists at the project root, otherwise the type-aware rules will error.

Project-specific overrides

Append your own flat-config objects after the spread. Scope them with files, and remember last match wins:

import kununuConfig from '@kununu/eslint-config';

export default [
  ...kununuConfig,
  {
    rules: {
      'no-console': 'off',
    },
  },
  {
    files: ['**/*.spec.*'],
    rules: {
      // test-only tweaks
    },
  },
];

🎨 What's included

Built on @eslint/js, typescript-eslint, and the React ecosystem, plus kununu conventions. Parsers are wired up automatically: .ts/.tsx use @typescript-eslint/parser (with projectService), .js/.jsx use @babel/eslint-parser.

| Area | Plugins | | --- | --- | | Base | @eslint/js, typescript-eslint | | React | eslint-plugin-react, eslint-plugin-react-hooks (incl. React Compiler rules) | | Accessibility | eslint-plugin-jsx-a11y | | Style / formatting | @stylistic/eslint-plugin | | Code smells | eslint-plugin-sonarjs | | Imports / ordering | eslint-plugin-perfectionist | | Tests (*.spec.*) | eslint-plugin-jest, eslint-plugin-jest-dom, eslint-plugin-testing-library | | kununu-specific | eslint-plugin-lodash, eslint-plugin-granular-selectors, @babel/eslint-plugin |

Notable conventions

  • No default React importimport React from 'react' is disallowed; import named hooks/types instead (import {useState} from 'react').
  • Per-method lodash importsimport debounce from 'lodash/debounce', not import {debounce} from 'lodash'.
  • Import ordering (perfectionist/sort-imports): react → types → builtins/externals → @kununu/* internals → aliases → relatives.
  • Granular Redux selectors for use*Selector* / use*Store* hooks.
  • Formatting via @stylistic (120-char lines ignoring comments/strings/URLs, semicolons, single quotes, …).
  • React Compiler rules (react-hooks/refs, set-state-in-effect, …) are warnings, not errors.
  • Test files (**/*.spec.*) automatically get Jest globals plus the jest / jest-dom / testing-library rule sets; some source-only rules (e.g. react/prop-types, sonarjs/no-hardcoded-passwords) are relaxed there.

⚡️ Editor integration

Linting runs in CI / pre-commit, but catching errors in your editor is faster. We recommend the ESLint VS Code extension.

Recent versions auto-detect flat config. If your editor still defaults to the legacy format, enable it in .vscode/settings.json:

{
  "eslint.useFlatConfig": true
}