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

@geckou/eslint-config

v0.4.0

Published

Shared ESLint flat config for geckou projects (base / next / expo / vue / react)

Downloads

269

Readme

@geckou/eslint-config

geckou のプロジェクト共通の ESLint 設定(flat config)。各プロジェクトは参照 1 行だけを持ち、 ルール本体はこのパッケージが持つ。

インストール

yarn add -D @geckou/eslint-config eslint

eslint は peerDependency。プラグイン類はこのパッケージが依存として持つので、個別に入れる必要はない。

使い方

プリセットは 5 つ。重ねて使わない(それぞれ単独で完結する。重ねると同じプラグインを 別々の実体で登録することになり、ESLint が Cannot redefine plugin で落ちる)。

| サブパス | 対象 | | --- | --- | | . | TypeScript パッケージ(Cloud Functions・共有パッケージ等) | | ./next | Next.js アプリ | | ./expo | Expo アプリ | | ./vue | Vue 3 パッケージ | | ./react | React パッケージ(Next.js を使わないコンポーネントライブラリ等) |

// eslint.config.mjs(TypeScript パッケージ)
import geckou from '@geckou/eslint-config'

export default geckou
// apps/web/eslint.config.mjs
import next from '@geckou/eslint-config/next'

export default next
// apps/mobile/eslint.config.mjs
import expo from '@geckou/eslint-config/expo'

export default expo
// Vue パッケージの eslint.config.mjs
import vue from '@geckou/eslint-config/vue'

export default vue

Vue と React が同居するリポジトリでは、それぞれのディレクトリに絞って並べる。 対象が重なると同じファイルに 2 つのプリセットが当たる。

// リポジトリ直下の eslint.config.mjs
import react from '@geckou/eslint-config/react'
import vue from '@geckou/eslint-config/vue'

export default [
  ...vue.map((config) => ({ ...config, files: ['packages/vue/**/*.{vue,ts}'] })),
  ...react.map((config) => ({ ...config, files: ['packages/react/**/*.{ts,tsx}'] })),
]

方針

  • ESLint 本体の推奨(eslint:recommended)を含む。 typescript-eslint の recommended は これを含まないため、各プリセットで明示的に足している(no-useless-escape / no-empty / no-fallthrough など)。no-undef は TypeScript が見るので .ts / .tsx / .vue では無効
  • フォーマット系のルールは持たない。 Prettier に委譲する(eslint-config-prettier で無効化済み)。 フォーマットは @geckou/prettier-config を使う
  • 共通の値(無視するパス・共有ルール)は rules.js に置き、各プリセットから参照する。 rules.js はプラグインを読み込まないので、どのプリセットから参照しても多重定義にならない

ルールを変えるときは geckou/project-starter の packages/eslint-config/ を直す。