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 🙏

© 2025 – Pkg Stats / Ryan Hefner

eslint-plugin-nextfriday

v1.5.3

Published

A comprehensive ESLint plugin providing custom rules and configurations for Next Friday development workflows.

Readme

eslint-plugin-nextfriday

A comprehensive ESLint plugin providing custom rules and configurations for Next Friday development workflows.

Installation

npm install --save-dev eslint-plugin-nextfriday
# or
yarn add --dev eslint-plugin-nextfriday
# or
pnpm add -D eslint-plugin-nextfriday

Usage

Flat Config (ESLint 9+)

Base Configuration (for pure JS/TS projects)

import nextfriday from "eslint-plugin-nextfriday";

export default [nextfriday.configs.base];
// or use the recommended preset
export default [nextfriday.configs["base/recommended"]];

React Configuration

import nextfriday from "eslint-plugin-nextfriday";

export default [nextfriday.configs.react];
// or use the recommended preset
export default [nextfriday.configs["react/recommended"]];

Next.js Configuration

import nextfriday from "eslint-plugin-nextfriday";

export default [nextfriday.configs.nextjs];
// or use the recommended preset
export default [nextfriday.configs["nextjs/recommended"]];

Manual Configuration

If you prefer to configure rules manually:

import nextfriday from "eslint-plugin-nextfriday";

export default [
  {
    plugins: {
      nextfriday,
    },
    rules: {
      "nextfriday/no-emoji": "error",
      "nextfriday/file-kebab-case": "error",
      "nextfriday/md-filename-case-restriction": "error",
      "nextfriday/prefer-destructuring-params": "error",
      "nextfriday/no-explicit-return-type": "error",
      "nextfriday/prefer-import-type": "error",
      "nextfriday/prefer-named-param-types": "error",
      "nextfriday/prefer-react-import-types": "error",
      "nextfriday/no-complex-inline-return": "error",
      "nextfriday/no-logic-in-params": "error",
      "nextfriday/no-env-fallback": "error",
      "nextfriday/jsx-pascal-case": "error",
      "nextfriday/prefer-interface-over-inline-types": "error",
      "nextfriday/react-props-destructure": "error",
      "nextfriday/enforce-readonly-component-props": "error",
    },
  },
];

Legacy Config (ESLint 8 and below)

Base Legacy Configuration

module.exports = {
  plugins: ["nextfriday"],
  extends: ["plugin:nextfriday/base"], // or "plugin:nextfriday/base/recommended"
};

React Legacy Configuration

module.exports = {
  plugins: ["nextfriday"],
  extends: ["plugin:nextfriday/react"], // or "plugin:nextfriday/react/recommended"
};

Next.js Legacy Configuration

module.exports = {
  plugins: ["nextfriday"],
  extends: ["plugin:nextfriday/nextjs"], // or "plugin:nextfriday/nextjs/recommended"
};

Rules

| Rule | Description | Fixable | | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ------- | | no-emoji | Disallow emojis in code | ❌ | | file-kebab-case | Enforce kebab-case filenames for .ts and .js files | ❌ | | jsx-pascal-case | Enforce PascalCase filenames for .jsx and .tsx files | ❌ | | md-filename-case-restriction | Enforce SNAKE_CASE filenames for .md files | ❌ | | prefer-destructuring-params | Enforce destructuring for functions with multiple parameters | ❌ | | no-explicit-return-type | Disallow explicit return types on functions | ✅ | | prefer-import-type | Enforce using 'import type' for type-only imports | ✅ | | prefer-named-param-types | Enforce named types for function parameters with object types | ❌ | | prefer-interface-over-inline-types | Enforce interface declarations over inline types for React props | ❌ | | prefer-react-import-types | Enforce direct imports from 'react' instead of React.X | ✅ | | react-props-destructure | Enforce destructuring props inside React component body | ❌ | | enforce-readonly-component-props | Enforce Readonly wrapper for React component props | ✅ | | no-complex-inline-return | Disallow complex inline expressions in return statements - prefer const first | ❌ | | no-logic-in-params | Disallow logic or conditions in function parameters - extract to const first | ❌ | | no-env-fallback | Disallow fallback values for environment variables as they can be dangerous | ❌ |

Configurations

Base Configurations (for pure JS/TS projects)

base

Basic configuration without JSX-specific rules:

  • nextfriday/no-emoji: "error"
  • nextfriday/file-kebab-case: "error"
  • nextfriday/md-filename-case-restriction: "error"
  • nextfriday/prefer-destructuring-params: "error"
  • nextfriday/no-explicit-return-type: "error"
  • nextfriday/prefer-import-type: "error"
  • nextfriday/prefer-named-param-types: "error"
  • nextfriday/prefer-react-import-types: "error"
  • nextfriday/no-complex-inline-return: "error"
  • nextfriday/no-logic-in-params: "error"
  • nextfriday/no-env-fallback: "error"

base/recommended

Same as base configuration (recommended preset for pure JS/TS projects).

React Configurations

react

Includes all base rules plus React-specific rules:

  • All base rules above
  • nextfriday/jsx-pascal-case: "error"
  • nextfriday/prefer-interface-over-inline-types: "error"
  • nextfriday/react-props-destructure: "error"
  • nextfriday/enforce-readonly-component-props: "error"

react/recommended

Same as react configuration (recommended preset for React projects).

Next.js Configurations

nextjs

Includes all rules suitable for Next.js projects:

  • All base rules
  • nextfriday/jsx-pascal-case: "error"
  • nextfriday/prefer-interface-over-inline-types: "error"
  • nextfriday/react-props-destructure: "error"
  • nextfriday/enforce-readonly-component-props: "error"

nextjs/recommended

Same as nextjs configuration (recommended preset for Next.js projects).

Features

  • File naming enforcement: Ensure consistent file naming conventions across your project
  • Import optimization: Automatically suggests better import patterns for TypeScript
  • Code cleanup: Helps remove unnecessary explicit type annotations
  • React component conventions: Enforces naming standards for JSX/TSX files
  • Clean code practices: Prevents emoji usage and enforces parameter destructuring

Need Help?

If you encounter any issues or have questions:

License

MIT - feel free to use this plugin in your projects!