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

@inovatecjp/eslint-config

v1.3.1

Published

All-in-one ESLint 9 (flat) + Prettier with CLI for inovatecjp teams (react, react-native, node).

Downloads

46

Readme

@inovatecjp/eslint-config (all‑in‑one)

Um pacote só com ESLint 9 (flat) + Prettier 3 + plugins e um CLI inovatecjp.

Stacks: React (Next.js), React Native (Expo) e Node — com variante type‑aware.


Instalação

# Bun
bun add -D @inovatecjp/eslint-config

# npm	npm i -D @inovatecjp/eslint-config
# pnpm	pnpm add -D @inovatecjp/eslint-config
# yarn	yarn add -D @inovatecjp/eslint-config

✔️ Batteries‑included: você não precisa instalar ESLint/Prettier/plugins no projeto. Apenas typescript como peer (se usar TS).


Uso — scripts

Adicione ao seu package.json do projeto:

{
  "scripts": {
    "lint": "inovatecjp lint --stack=react",
    "lint:fix": "inovatecjp lint:fix --stack=react",
    "format": "inovatecjp format",
    "format:check": "inovatecjp format:check"
  }
}

Stacks suportadas: react, react-native, node (padrão: base).

Flags úteis:

  • --typeaware → ativa regras que usam tipos (requer tsconfig.json).
  • Em CI, warnings também falham o job (comportamento padrão do CLI).

Exemplos

# Next.js (rápido, sem type-aware)
bun run lint

# React Native
inovatecjp lint --stack=react-native

# Node.js com verificação de tipos
inovatecjp lint --stack=node --typeaware

# Prettier (write/check). Aceita padrões/globs adicionais.
inovatecjp format
inovatecjp format:check "src/**/*.{ts,tsx}"

Prettier — arquivo mínimo no projeto (necessário)

Para que o editor (VS Code) use exatamente o mesmo preset que o CLI usa, crie um arquivo mínimo na raiz do projeto:

// prettier.config.cjs
module.exports = require('@inovatecjp/eslint-config/prettier')

Se quiser customizar algo, você pode sobrescrever opções específicas:

const base = require('@inovatecjp/eslint-config/prettier')
module.exports = { ...base, singleQuote: true }

No VS Code, garanta que o Prettier será usado ao salvar:

{
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,
  "prettier.requireConfig": true
}

Você não precisa criar eslint.config.js no projeto (o CLI já aponta para os presets). Mas para que o editor aplique o mesmo estilo do CLI ao salvar, é necessário ter o prettier.config.cjs acima na raiz do projeto.

O que vem no pacote

  • ESLint 9 (flat) + Prettier 3;
  • TypeScript (@typescript-eslint), Import (eslint-plugin-import + eslint-import-resolver-typescript), Node (eslint-plugin-n), Unicorn, React, React Hooks, JSX A11y, React Native, React Native A11y, Vitest (eslint-plugin-vitest).

Presets exportados (para quem quiser importar programaticamente):

  • base, base-typeaware
  • react, react-typeaware
  • react-native, react-native-typeaware
  • node, node-typeaware
  • tests

Você não precisa criar eslint.config.js no projeto — o CLI já aponta para os presets corretos. Se preferir, pode importar os presets no seu eslint.config.js:

// eslint.config.js (opcional)
import { react, tests } from '@inovatecjp/eslint-config'
export default [
  ...react,
  ...tests,
]

Diferença: base × type‑aware

  • base: checagens baseadas só na sintaxe — mais rápido; não precisa de tsconfig.json.
  • type‑aware: ativa regras que usam informação de tipos (via parserOptions.project) — mais rigoroso; exige tsconfig.json.

Sugerido: usar base no dia a dia e type‑aware no CI ou em módulos críticos (API/SDK).


Requisitos

  • Node.js >= 18.18
  • (Opcional) typescript >= 5 para presets TS/type‑aware.

Dúvidas frequentes

Preciso instalar ESLint/Prettier e plugins no projeto? Não. O pacote já inclui tudo (batteries‑included). Você só precisa de typescript se usar TS.

E se meu projeto for só Node e eu não usar React? Sem problema: use --stack=node e o CLI só carrega os plugins do preset Node.


Licença

MIT © InovatecJP