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

@prdev-solutions/eslint-config

v2.6.3

Published

ESLint configuration used by pr.dev

Readme

Instalacao

Para instalar esta configuracao de ESLint em seu projeto, siga os passos abaixo:

  1. Instale o pacote via npm:
npm install --save-dev eslint prettier @prdev-solutions/eslint-config
  1. Crie ou atualize o arquivo eslint.config.mjs na raiz do seu projeto:

React (Vite)

import ReactConfig from "@prdev-solutions/eslint-config/react.mjs";

export default [...ReactConfig];

Next.js

import NextConfig from "@prdev-solutions/eslint-config/next.mjs";

export default [...NextConfig];

Node.js

import NodeConfig from "@prdev-solutions/eslint-config/node.mjs";

export default [...NodeConfig];

Voce pode extender a configuracao acima como bem entender.

  1. Crie ou atualize o arquivo prettier.config.cjs na raiz do seu projeto:
const { reactPrettier } = require("@prdev-solutions/eslint-config/prettier.cjs");
// ou nodePrettier para projetos Node.js

module.exports = {
  ...reactPrettier
};
  1. Adicione os scripts abaixo em seu package.json (opcional):
{
  "scripts": {
    "lint": "eslint . --report-unused-disable-directives --max-warnings 0",
    "prettier:check": "npx prettier --check .",
    "prettier:fix": "npx prettier --write ."
  }
}

Documentacao

Este pacote fornece configuracoes de ESLint prontas para uso em projetos JavaScript/TypeScript. Disponiveis para React, Next.js e Node.js.

Configuracoes Disponiveis

| Config | Uso | Plugins Inclusos | | ----------- | ------------ | --------------------------------------------------------------- | | react.mjs | React + Vite | react-hooks, react-refresh, jsx-a11y, import, promise, prettier | | next.mjs | Next.js | react-hooks, jsx-a11y, @next/next, import, promise, prettier | | node.mjs | Node.js | import, promise, prettier |

Arquivos Ignorados

Por padrao, os seguintes arquivos/pastas sao ignorados pelo ESLint:

ignores: [
  "dist",
  "__tests__",
  ".eslintrc.cjs",
  ".eslintrc.js",
  "node_modules",
  "settings*",
  "**/constants.*",
  "**/settings.*",
  "**/config.*",
  "*.config.*",
  "**/schema.ts"
];

Regras Principais

| Regra | Valor | Descricao | | ------------------------------------ | -------------- | ----------------------------------------------------------- | | @typescript-eslint/no-explicit-any | off | Permite uso de any | | @typescript-eslint/no-unused-vars | warn | Avisa sobre variaveis nao utilizadas (ignora _prefixadas) | | complexity | error (max 10) | Limita complexidade ciclomatica | | max-depth | error (max 3) | Limita profundidade de blocos aninhados | | camelcase | error | Exige camelCase | | eqeqeq | error (always) | Exige === e !== | | prefer-const | error | Prefere const quando possivel | | no-else-return | error | Evita else apos return | | no-fallthrough | error | Evita fallthrough em switch | | array-callback-return | error | Exige return em callbacks de array |

Prettier - Configuracao

{
  trailingComma: "none",
  tabWidth: 2,
  semi: true,
  singleQuote: false,
  arrowParens: "avoid",
  bracketSpacing: true,
  endOfLine: "lf",
  useTabs: false,
  proseWrap: "always",
  experimentalTernaries: true,
  printWidth: 120  // React/Next.js
  // printWidth: 80  // Node.js
}

Estrutura do Projeto

@prdev-solutions/eslint-config/
├── configs/
│   ├── base.mjs      # Configuracoes compartilhadas
│   ├── prettier.mjs  # Configuracao do Prettier (ESM)
│   ├── react.mjs     # Config React/Vite
│   ├── node.mjs      # Config Node.js
│   └── next.mjs      # Config Next.js
├── react.mjs         # Entry point React
├── node.mjs          # Entry point Node.js
├── next.mjs          # Entry point Next.js
└── prettier.cjs      # Export Prettier (CommonJS)

Links