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

@tuomashatakka/eslint-config

v4.0.1

Published

Default eslint configuration

Readme

@tuomashatakka/eslint-config

Opinionated ESLint flat config for TypeScript, React, and JSX projects. Bundles four in-house plugins (whitespaced, omit, no-inline-types, react-strict) on top of @eslint-react, @stylistic, and typescript-eslint.

Requires ESLint 10+.

Installation

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

Usage

Create eslint.config.mjs in your project root.

Use the full config

import config from '@tuomashatakka/eslint-config'

export default config

Extend or override

import { baseConfig, rules } from '@tuomashatakka/eslint-config'

export default [
  ...baseConfig,
  {
    rules: {
      ...rules,
      'no-console': 'off',
    },
  },
]

Use only the rules

import { rules } from '@tuomashatakka/eslint-config'

export default [{ rules }]

Rules configuration

The config bundles four local plugins. Override any rule the same way you would override a standard ESLint rule.

whitespaced/*

| Rule | Description | | --- | --- | | whitespaced/aligned-assignments | Vertically aligns = in adjacent declaration and member-assignment blocks. | | whitespaced/block-padding | Enforces blank-line padding inside blocks, with docstring exceptions. | | whitespaced/class-property-grouping | Groups class properties by visibility and kind. | | whitespaced/consistent-line-spacing | Enforces consistent blank lines before and after statements. | | whitespaced/multiline-format | Enforces consistent formatting for multiline objects and arrays. |

Options for whitespaced/aligned-assignments:

| Option | Type | Default | Effect | | --- | --- | --- | --- | | blockSize | integer | 2 | Minimum number of adjacent assignments before alignment applies. | | ignoreAdjacent | boolean | true | Only align rows on consecutive lines. | | ignoreIfAssignmentsNotInBlock | boolean | true | Split a group at every declaration-kind transition (constlet). Member assignments are wildcards and join any sub-block. | | alignTypes | boolean | false | Also align type-annotation colons. | | ignoreTypesMismatch | boolean | true | Skip colon alignment when only some rows have type annotations. | | alignMemberAssignments | boolean | true | Include obj.prop = … lines in alignment blocks alongside const/let/var. |

omit/omit-unnecessary-parens-brackets

Removes unnecessary parentheses, brackets, and braces. No options.

no-inline-types/no-inline-multiline-types

Disallows inline multi-line TSTypeLiteral annotations; requires extraction to a named type or interface. No options.

react-strict/*

| Rule | Description | | --- | --- | | react-strict/jsx-prop-layout | Enforces JSX prop ordering: key/ref, then className/style, then data-/aria-, then regular props, callbacks last. | | react-strict/no-complex-jsx-map | Disallows complex .map() callbacks with inline logic inside JSX. | | react-strict/no-jsx-value-calculations | Disallows value calculations and assignments inside JSX return blocks. | | react-strict/no-nested-divs | Disallows nested <div> elements in favor of semantic HTML5 tags. | | react-strict/no-style-prop | Disallows the inline style prop except in drag/drop interactions. | | react-strict/prefer-no-use-effect | Discourages useEffect in favor of context, custom hooks, or event-driven patterns. |

Package structure

  • index.mjs — exports config (default), baseConfig, and rules.
  • rules.mjs — the rule map.
  • plugins/ — local plugin sources.
  • test/ — fixtures and runner.

Scripts

npm run lint        # lint the config itself
npm run test        # run all fixture tests
npm run test:format # run formatting-only fixtures

License

ISC