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

@net-os/eslint-plugin

v0.0.8

Published

Official ESLint plugin for NetOS, enforcing consistent coding standards across frontend projects.

Readme

@net-os/eslint-plugin

NPM Version NPM Downloads

Opinionated ESLint flat config plugin for NetOS frontend projects.

Provides eight composable configs that enforce consistent code style across JavaScript, TypeScript, React, Expo, Tailwind CSS, TanStack Query, Vitest, and Vue codebases.

Installation

npm install @net-os/eslint-plugin eslint --save-dev

You will also need to install the peer dependencies required by the configs you use. See the peer dependencies section for the full list.

Usage

This plugin requires ESLint v9+ with flat config (eslint.config.ts).

The default export is an async factory function. Pass an options object to enable the configs you need — only the selected configs (and their peer dependencies) are loaded.

Basic TypeScript project

import netos from '@net-os/eslint-plugin';

export default netos({ typescript: true });

Expo (React Native) project

import netos from '@net-os/eslint-plugin';

export default netos({ expo: true });

Vue + Vitest project

import netos from '@net-os/eslint-plugin';

export default netos({ vue: true, vitest: true });

Combining with custom config

Since netos() returns a promise, use await and spread the result into your own config array to add custom entries like global ignores or rule overrides:

import { defineConfig, globalIgnores } from 'eslint/config';
import netos from '@net-os/eslint-plugin';

export default defineConfig([
  globalIgnores(['dist/', 'coverage/']),
  ...await netos({ react: true, vitest: true }),
  {
    rules: {
      'no-console': 'warn',
    },
  },
]);

Configs

Enable configs by passing true in the options object. Only the selected configs and their plugins are loaded.

| Config | Files | Description | |---------------|------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------| | javascript | **/*.{js,jsx,mjs,cjs} | Core ESLint rules, import ordering, stylistic rules, unicorn | | typescript | **/*.{ts,tsx,mts,cts} | Extends JavaScript rules with TypeScript-specific rules, naming conventions, and type-checked linting | | react | **/*.tsx (components), **/*.{ts,tsx} (hooks), test files (testing) | React, JSX a11y, hooks, DOM, testing-library | | expo | **/*.{js,jsx,ts,tsx} | Expo / React Native specific rules | | vitest | test files (testing) | Vitest test rules (naming, structure, expectations, mocking) | | vue | **/*.vue, **/*.{ts,vue} | Vue component rules + all TypeScript rules applied to .vue files | | tailwindcss | all files | Tailwind class ordering, duplicate detection, deprecation checks | | tanstack | all files | TanStack Query exhaustive deps, property order, query function validation |

Configs that target all files (e.g. tailwindcss, tanstack) can be narrowed to specific file types by adding a files override after spreading:

import { defineConfig, globalIgnores } from 'eslint/config';
import netos from '@net-os/eslint-plugin';

const configs = await netos({ react: true, tailwindcss: true });

export default defineConfig([
  globalIgnores(['dist/']),
  ...configs.map((config) => {
    return config.name?.startsWith('@net-os/tailwindcss')
      ? { ...config, files: ['**/*.{ts,tsx}'] }
      : config;
  }),
]);

Config hierarchy and automatic dependency resolution

  • typescript includes all javascript rules — you do not need to enable both.
  • react and vue automatically include typescript (and thus javascript).
  • expo automatically includes react and typescript (and thus javascript).
  • You do not need to specify dependencies like typescript: true or react: true separately.
  • tailwindcss, tanstack, and vitest are independent add-ons.

React sub-configs

The react config is composed of three internal config entries:

| Name | Files | Plugins | |-------------------------|-----------------|--------------------------------------------------------------| | @net-os/react | **/*.tsx | react, jsx-a11y, react-dom, react-x, react-naming-convention | | @net-os/react/hooks | **/*.{ts,tsx} | react-hooks, react-web-api | | @net-os/react/testing | test files | testing-library |

Vue sub-configs

The vue config is composed of two internal config entries:

| Name | Files | Description | |--------------------------|-----------------|-----------------------------------------------------------------------------------------------------| | @net-os/vue/typescript | **/*.vue | Re-applies all JS + TS rules to .vue files (@stylistic/indent disabled for vue/script-indent) | | @net-os/vue | **/*.{ts,vue} | Vue template validation, directive ordering, component structure, parser setup |

Peer dependencies

Install only the peer dependencies required by the configs you use.

| Package | Version | Configs | |-----------------------------------------|---------|------------------------| | eslint | ^9.39.4 | all | | @stylistic/eslint-plugin | ^5.10.0 | javascript, typescript | | eslint-plugin-import | ^2.32.0 | javascript, typescript | | eslint-plugin-unicorn | ^63.0.0 | javascript, typescript | | @typescript-eslint/eslint-plugin | ^8.57.2 | typescript | | @typescript-eslint/parser | ^8.57.2 | typescript | | eslint-import-resolver-typescript | ^4.4.4 | typescript | | typescript | ^5.9.3 | typescript | | eslint-plugin-react | ^7.37.5 | react | | eslint-plugin-react-hooks | ^7.0.1 | react | | eslint-plugin-jsx-a11y | ^6.10.2 | react | | eslint-plugin-react-dom | ^2.13.0 | react | | eslint-plugin-react-naming-convention | ^2.13.0 | react | | eslint-plugin-react-web-api | ^2.13.0 | react | | eslint-plugin-react-x | ^2.13.0 | react | | eslint-plugin-testing-library | ^7.16.2 | react | | eslint-plugin-expo | ^1.0.0 | expo | | eslint-plugin-better-tailwindcss | ^4.3.2 | tailwindcss | | @tanstack/eslint-plugin-query | ^5.95.2 | tanstack | | @vitest/eslint-plugin | ^1.6.13 | vitest | | eslint-plugin-vue | ~10.8.0 | vue |

Development

This package is part of the NetOS-coding-standards monorepo.

npm run build        # Build with tsdown (ESM + CJS + .d.ts)
npm run watch        # Rebuild on file changes
npm run lint         # Lint src/ with ESLint
npm run lint:fix     # Auto-fix lint issues
npm run test         # Run tests with Vitest
npm run typecheck    # Type-check without emitting

License

MIT