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

@jsimck/eslint-config

v3.1.0

Published

Opinionated ESLint 9 flat config with TypeScript, React, Prettier, Vitest, SonarJS, Unicorn, import sorting, unused imports, JSX a11y, and more.

Downloads

98

Readme

@jsimck/eslint-config

Opinionated shareable ESLint flat config for JavaScript/TypeScript projects, including React, import ordering, SonarJS, Unicorn, and Prettier.

Install

pnpm add -D eslint@9 @jsimck/eslint-config

Usage

Create eslint.config.js (or eslint.config.mjs) in your project root:

import baseConfig from '@jsimck/eslint-config';

export default [...baseConfig];

Lint Scripts

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

Available Configs

Default export already includes several presets. You can also import individual configs from @jsimck/eslint-config/configs.

| Config Name | Description | Included In Default | | ----------------------- | ----------------------------------------------------------------- | ------------------- | | base | Global ignores, browser/node globals, parser options | ✅ | | stylistic | @stylistic/eslint-plugin spacing and line rules | ✅ | | javascript | @eslint/js recommended + custom JS rules | ✅ | | typescript | TypeScript parser and non-typechecked TS rules | ✅ | | react | eslint-plugin-react, react-hooks, react-refresh, jsx-a11y | ✅ | | imprt | eslint-plugin-import-x rules and resolver setup | ✅ | | sonarjs | eslint-plugin-sonarjs recommended + overrides | ✅ | | unicorn | eslint-plugin-unicorn recommended + overrides | ✅ | | unusedImports | eslint-plugin-unused-imports | ✅ | | prettier | eslint-plugin-prettier/recommended + local prettier options | ✅ | | vitest | @vitest/eslint-plugin rules for tests | ❌ | | typescriptTypeChecked | Type-aware TypeScript rules (requires project service) | ❌ | | sortClassMembers | eslint-plugin-sort-class-members | ❌ |

Example with optional configs:

import baseConfig from '@jsimck/eslint-config';
import {
  vitest,
  typescriptTypeChecked,
  sortClassMembers,
} from '@jsimck/eslint-config/configs';

export default [
  ...baseConfig,
  ...typescriptTypeChecked,
  ...sortClassMembers,
  ...vitest,
];

Advanced Usage

All configs are individually importable from @jsimck/eslint-config/configs, so you can compose only what you need:

import {
  base,
  stylistic,
  typescript,
  react,
  imprt,
  unusedImports,
} from '@jsimck/eslint-config/configs';

export default [
  ...base,
  ...stylistic,
  ...typescript,
  ...react,
  ...imprt,
  ...unusedImports,
];

Note: The base config provides global ignores (node_modules, dist, build, etc.) and browser/node globals. It's recommended as a foundation for any custom composition.

Overriding Rules

You can override any rule by appending your own config object after the presets:

import baseConfig from '@jsimck/eslint-config';

export default [
  ...baseConfig,
  {
    rules: {
      'prettier/prettier': ['error', { singleQuote: false, semi: false }],
      '@typescript-eslint/no-explicit-any': 'off',
    },
  },
];

Adding Prettier Plugins

The prettierOptions object is exported separately, so you can extend it with plugins like Tailwind CSS class sorting:

import { createRequire } from 'node:module';
import baseConfig from '@jsimck/eslint-config';
import { prettierOptions } from '@jsimck/eslint-config/configs';

const require = createRequire(import.meta.url);

export default [
  ...baseConfig,
  {
    rules: {
      'prettier/prettier': [
        'error',
        {
          ...prettierOptions,
          plugins: [
            require.resolve('prettier-plugin-tailwindcss'),
          ],
        },
      ],
    },
  },
];

Replacing a Config

To use the defaults but swap out a specific config (e.g. use your own prettier setup), import configs individually and omit what you don't need:

import {
  base,
  stylistic,
  javascript,
  typescript,
  react,
  imprt,
  sonarjs,
  unicorn,
  unusedImports,
} from '@jsimck/eslint-config/configs';

export default [
  ...base,
  ...stylistic,
  ...javascript,
  ...typescript,
  ...react,
  ...imprt,
  ...sonarjs,
  ...unicorn,
  ...unusedImports,
  // your own prettier or formatting config here
];

Contributing

Include a changeset with user-facing changes:

pnpm changeset

Release

pnpm release