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

@viclafouch/eslint-config-viclafouch

v5.3.0

Published

ESLint and Prettier Config from Victor de la Fouchardiere

Readme

@viclafouch/eslint-config-viclafouch

ESLint and Prettier configuration for modern TypeScript projects.

Installation

npm i -D @viclafouch/eslint-config-viclafouch eslint prettier typescript

Quick Init (recommended)

npx @viclafouch/eslint-config-viclafouch

This will prompt you to select your stack and create the eslint.config.js file automatically.

Available templates:

  1. TypeScript + React
  2. TypeScript + Next.js
  3. TypeScript + React Native
  4. Pure TypeScript

Manual Setup (React Web)

// eslint.config.js
import {
  hooksConfig,
  importsConfig,
  jsxA11yConfig,
  prettierConfig,
  reactConfig,
  testingLibraryConfig,
  typescriptConfig
} from '@viclafouch/eslint-config-viclafouch'

/**
 * @type {import("eslint").Linter.Config}
 */
export default [
  {
    ignores: [
      '**/node_modules/**',
      '**/.output/**',
      '**/.tanstack/**'
    ]
  },
  ...typescriptConfig,
  ...reactConfig,
  ...hooksConfig,
  ...jsxA11yConfig,
  {
    files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
    ...testingLibraryConfig[0]
  },
  ...importsConfig,
  ...prettierConfig
]

Stack Examples

React + Vite

// eslint.config.js
import {
  hooksConfig,
  importsConfig,
  jsxA11yConfig,
  prettierConfig,
  reactConfig,
  testingLibraryConfig,
  typescriptConfig
} from '@viclafouch/eslint-config-viclafouch'

/**
 * @type {import("eslint").Linter.Config}
 */
export default [
  { ignores: ['**/node_modules/**', '**/dist/**'] },
  ...typescriptConfig,
  ...reactConfig,
  ...hooksConfig,
  ...jsxA11yConfig,
  {
    files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
    ...testingLibraryConfig[0]
  },
  ...importsConfig,
  ...prettierConfig
]

Pure TypeScript (Node.js, lib)

// eslint.config.js
import {
  importsConfig,
  prettierConfig,
  typescriptConfig
} from '@viclafouch/eslint-config-viclafouch'

/**
 * @type {import("eslint").Linter.Config}
 */
export default [
  { ignores: ['**/node_modules/**', '**/dist/**'] },
  ...typescriptConfig,
  ...importsConfig,
  ...prettierConfig
]

Next.js

// eslint.config.js
import {
  importsConfig,
  nextConfig,
  prettierConfig,
  typescriptConfig
} from '@viclafouch/eslint-config-viclafouch'

/**
 * @type {import("eslint").Linter.Config}
 */
export default [
  { ignores: ['**/node_modules/**', '**/.next/**'] },
  ...typescriptConfig,
  ...nextConfig,
  ...importsConfig,
  ...prettierConfig
]

React Native (Expo)

// eslint.config.js
import {
  hooksConfig,
  importsConfig,
  prettierConfig,
  reactConfig,
  reactNativeConfig,
  typescriptConfig
} from '@viclafouch/eslint-config-viclafouch'

/**
 * @type {import("eslint").Linter.Config}
 */
export default [
  { ignores: ['**/node_modules/**', '**/.expo/**', '**/ios/**', '**/android/**'] },
  ...typescriptConfig,
  ...reactConfig,
  ...hooksConfig,
  ...reactNativeConfig,
  ...importsConfig,
  ...prettierConfig
]

Available Configurations

| Config | Description | |--------|-------------| | typescriptConfig | Required base. TypeScript, ES6+, best practices, unicorn, promise | | reactConfig | React rules | | testingLibraryConfig | Testing Library rules (scope to your test files) | | hooksConfig | React Hooks | | jsxA11yConfig | Web accessibility (jsx-a11y) - for web projects | | reactNativeConfig | React Native specific rules | | nextConfig | Next.js (includes React + Hooks + jsx-a11y) | | playwrightConfig | Playwright e2e testing rules | | importsConfig | Automatic import sorting | | prettierConfig | Prettier with prettier-plugin-curly (always last) |

TypeScript

Extend tsconfig.json

{
  "extends": "@viclafouch/eslint-config-viclafouch/tsconfig.json",
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}

Better Typing with reset.d.ts

Improves native types (.filter(Boolean), JSON.parse, Array.includes(), etc.):

import '@viclafouch/eslint-config-viclafouch/reset.d'

Scripts

{
  "type": "module",
  "scripts": {
    "lint": "tsc --noEmit && eslint .",
    "lint:fix": "npm run lint -- --fix"
  }
}

VS Code

  1. Install the ESLint extension
  2. Create a .vscode folder at your root project, and create a settings.json file:
{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  }
}

Playwright E2E Testing

Add playwrightConfig scoped to your e2e test files:

// eslint.config.js
import {
  importsConfig,
  playwrightConfig,
  prettierConfig,
  reactConfig,
  typescriptConfig
} from '@viclafouch/eslint-config-viclafouch'

export default [
  { ignores: ['**/node_modules/**'] },
  ...typescriptConfig,
  ...reactConfig,
  ...importsConfig,
  {
    files: ['**/e2e/**/*.spec.ts'],
    ...playwrightConfig[0]
  },
  ...prettierConfig
]

Configuration Order

  1. ignores (always first)
  2. typescriptConfig (base)
  3. reactConfig / nextConfig / hooksConfig
  4. jsxA11yConfig (web) or reactNativeConfig (mobile)
  5. testingLibraryConfig / playwrightConfig (scoped to test files)
  6. importsConfig
  7. prettierConfig (always last)