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

@iwf-web/eslint-coding-standard

v1.1.0

Published

Standard eslint-coding-standard for IWF projects

Downloads

108

Readme

ESLint Coding Standard

A standardized ESLint configuration package for IWF projects. Built on top of @antfu/eslint-config, it provides an opinionated, pre-configured setup optimized for TypeScript and React applications.

License Version Downloads

Configurations

The package provides two configs:

  • Standard TypeScript (iwfWebStandardTs) — Full config with TypeScript strict checking, React, and all style rules. Use this for TypeScript projects.
  • Standard JavaScript (iwfWebStandardJs) — Base config with React and style rules, without TypeScript. Use this for JS-only projects.

The TypeScript config extends the JavaScript one, so all JS/React rules are included automatically.

Both configs build on @antfu/eslint-config with the following customizations:

Code Style

  • Semicolons: Required at statement ends
  • Curly braces: Required for all control statements
  • Arrow functions: Parentheses around single parameters
  • Max line length: 120 characters (exceptions for comments, strings, and URLs)
  • Object spacing: No spaces inside braces ({foo: bar})
  • Quote style: Single quotes, with object properties quoted only when required

TypeScript

  • Strict type checking enabled with project-based tsconfig detection
  • Allows promises in event handlers (e.g., onClick)
  • Relaxed any type restrictions for third-party library interoperability

React

  • Full React support with hooks linting
  • Allows common child manipulation patterns (cloneElement, children.map, etc.)
  • Const declarations allowed for components

Disabled Features

  • JSONC, YAML, and Markdown linting disabled

Getting Started

Prerequisites

  • Node.js 18 or higher
  • pnpm, npm, or yarn

Installation

pnpm add -D @iwf-web/eslint-coding-standard

Or with npm:

npm install -D @iwf-web/eslint-coding-standard

Usage

Create an eslint.config.js (or eslint.config.ts) file in your project root:

TypeScript projects

import { iwfWebStandardTs } from '@iwf-web/eslint-coding-standard';

export default iwfWebStandardTs();

JavaScript-only projects

import { iwfWebStandardJs } from '@iwf-web/eslint-coding-standard';

export default iwfWebStandardJs();

Subpath imports

Each config is also available as a direct subpath import:

import { iwfWebStandardTs } from '@iwf-web/eslint-coding-standard/standard-ts';
import { iwfWebStandardJs } from '@iwf-web/eslint-coding-standard/standard-js';

With Custom Options

You can pass options to override the default configuration:

import { iwfWebStandardTs } from '@iwf-web/eslint-coding-standard';

export default iwfWebStandardTs({
  typescript: {
    tsconfigPath: './tsconfig.app.json',
  },
});

With Additional ESLint Configs

You can append additional ESLint flat config objects:

import { iwfWebStandardTs } from '@iwf-web/eslint-coding-standard';

export default iwfWebStandardTs(
  {},
  {
    rules: {
      'no-console': 'warn',
    },
  },
);

Migration from v1

The function names have been updated to match the @iwf-web package scope:

  • iwfStandardTsiwfWebStandardTs
  • iwfStandardJsiwfWebStandardJs

The old names still work but are deprecated and will be removed in the next major version.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

This project uses Conventional Commits for automated releases and changelog generation.

Versioning

We use SemVer for versioning. For available versions, see the tags on this repository.

Authors

Special thanks for all the people who had helped this project so far

See also the full list of contributors who participated in this project.

I would like to join this list. How can I help the project?

We're currently looking for contributions for the following:

  • [ ] Bug fixes
  • [ ] Translations
  • [ ] etc...

For more information, please refer to our CONTRIBUTING.md guide.

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

Acknowledgments

This project currently uses no third-party libraries or copied code.