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

@neos21/neos-eslint-plugin

v0.0.4

Published

Neo's ESLint Plugins

Readme

Neo's ESLint Plugin

NPM Version GPR Version

オレオレ ESLint プラグイン集。

使い方

$ npm install --save-dev @neos21/neos-eslint-plugin

ESLint v9 以降の Flat Config を前提としています。

  • eslint.config.ts (or ESM) : 使用したいルールだけを rules に記載し、warn または error を指定します
import neosEslintPlugin from '@neos21/neos-eslint-plugin';

export default [
  {
    files: ['src/**/*.{js,jsx,ts,tsx}'],
    plugins: {
      'neos-eslint-plugin': neosEslintPlugin
    },
    rules: {
      'neos-eslint-plugin/blank-line-indent'       : 'error',
      'neos-eslint-plugin/comment-colon-spacing'   : 'error',
      'neos-eslint-plugin/comment-paren-spacing'   : 'error',
      'neos-eslint-plugin/doc-comment-blank-lines' : 'error',
      'neos-eslint-plugin/doc-comment-format'      : 'error',
      'neos-eslint-plugin/newline-before-statement': 'error',
      'neos-eslint-plugin/no-space-before-paren'   : 'error'
    }
  }
];

全ルールを推奨設定を利用する場合は以下のように書けます。

import neosEslintPlugin from '@neos21/neos-eslint-plugin';

export default [
  { files: ['src/**/*.{js,jsx,ts,tsx}'] },
  neosEslintPlugin.configs.recommended
];

全ルールをエラーレベルではなくワーニングレベルで出力する場合は以下を使用できます。

import neosEslintPlugin from '@neos21/neos-eslint-plugin';

export default [
  { files: ['src/**/*.{js,jsx,ts,tsx}'] },
  neosEslintPlugin.configs.warn
];

CommonJS での利用時は .default を付けて require() してください。後の書き方は同じです。

const neosEslintPlugin = require('@neos21/neos-eslint-plugin').default;

module.exports = [...];

ルール一覧

  • blank-line-indent : 空行にその行が属するブロックのインデント深さに合わせたスペースを入れる … Auto Fix 対応
  • comment-colon-spacing : 全角コロンを禁止し、半角コロンの前後にスペースを付与する … Auto Fix 対応
  • comment-paren-spacing : 全角カッコを禁止し、半角カッコの前後にスペースを付与する … Auto Fix 対応
  • doc-comment-blank-lines : ドキュメンテーションコメントが1行で済む場合は1行で書き、複数行ある場合の2行目と @param などのかたまりの直前には空行を入れる … Auto Fix 対応
  • doc-comment-format : ドキュメンテーションコメントの空行の末尾にスペースを入れる … Auto Fix 対応
  • newline-before-statement : elseelse ifcatchfinallywhile の直前に改行を入れる … Auto Fix 対応
  • no-space-before-paren : ifelse ifcatchforswitchwhile の直後のカッコとの間にスペースを開けない … Auto Fix 対応

開発

  • package.json
    • main : CommonJS のエントリポイント
    • module : ESM のエントリポイント
    • types : TypeScript 向け型定義 .d.ts のエントリポイント
    • exports : Node.js v12 以降向けのエントリポイント定義
      • require : CommonJS
      • import : ESM
      • types : TypeScript
    • files : npm publish 時に同梱されるファイル・ディレクトリ
    • peerDependencies : Flat Config 前提のため ESLint v9 以降を対象とするよう指定した
  • .npmignore : package.jsonfiles と併せて除外するファイル・ディレクトリを定義する・ビルド後の資材だけ含まれる用に設定した

Links