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.6.3

Published

kununu's ESLint config

Readme

@kununu/eslint-config

npm

kununu's shared ESLint configuration (ESLint v9, flat config)

Shared linting rules that keep JavaScript, JSX, TypeScript and TSX consistent across kununu's frontend apps, BFFs and shared libraries. eslint, every plugin and the TypeScript parser are direct dependencies of this package, so consumers install a single package and never wire up parsers or plugins themselves.

Flat config only. Version 6.0.0 and later publish an eslint.config.mjs for ESLint v9's flat config. There is no legacy .eslintrc export; version 5 and earlier used that format.

📦 Installation

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

typescript is the only peer dependency (>=6.0.0), and it is optional: you need it for the type-aware TypeScript rules described below. The package pins Node 24.13.1 and npm 11.8.0 in engines, matching the toolchain kununu's repos run on.

💻 Usage

Create an eslint.config.mjs in the project root. The config is published as an ES module and exports an array of flat-config objects, so spread it:

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

export default [
  ...kununuConfig,
  // Project-specific overrides go here.
];

Then add a lint script to package.json:

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

The ESLint documentation covers the remaining command-line and configuration options.

TypeScript

The TypeScript rules are scoped to .ts and .tsx files and run through @typescript-eslint/parser with projectService enabled, which discovers your tsconfig.json automatically. The project therefore needs a tsconfig.json at its root; without one, the type-aware rules fail. .js and .jsx files are parsed by ESLint's default parser, Espree, with JSX support enabled.

Overrides

Add your own flat-config objects after the spread, and scope them with files when they should not apply everywhere. The last matching entry wins:

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

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

Flat config replaces a rule's options instead of merging them, so changing a single option of an already configured rule means restating that rule's full option object.

🎨 What's included

The config is built on @eslint/js, typescript-eslint and the React ecosystem, with kununu's own conventions layered on top.

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

Notable conventions

  • No default React import. import React from 'react' is disallowed; import the named hooks and types instead, as in import {useState} from 'react'.
  • Per-method lodash imports. Use import debounce from 'lodash/debounce' rather than import {debounce} from 'lodash'.
  • Import ordering (perfectionist/sort-imports): react, then types, then builtins and externals, then @kununu/* internals, then path aliases, then relative imports.
  • Granular Redux selectors are enforced for use*Selector* and use*Store* hooks.
  • Formatting comes from @stylistic: 120-character lines (ignoring comments, strings and URLs), semicolons and single quotes, among others.
  • React Compiler rules such as react-hooks/refs and react-hooks/set-state-in-effect report as warnings, not errors.
  • Test files matching **/*.spec.* get the Jest globals and the jest, jest-dom and testing-library rule sets automatically. A few source-only rules, such as react/prop-types and sonarjs/no-hardcoded-passwords, are relaxed there.

⚡️ Editor integration

Linting runs in CI, and in pre-commit hooks where they are configured, but catching problems in the editor is faster. We recommend the ESLint VS Code extension.

Recent versions detect flat config on their own. If your editor still falls back to the legacy format, enable it explicitly in .vscode/settings.json:

{
  "eslint.useFlatConfig": true
}