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

@tanqory/eslint-config

v1.0.0

Published

Tanqory's ESLint configuration with React support for modern web development

Downloads

1

Readme

@tanqory/eslint-config

npm version Downloads

This package provides Tanqory's ESLint configuration with React support as an extensible shared config.

Installation

npm install --save-dev @tanqory/eslint-config

Peer Dependencies

npm install --save-dev \
  eslint@^8.2.0 \
  eslint-plugin-import@^2.30.0 \
  eslint-plugin-jsx-a11y@^6.10.0 \
  eslint-plugin-react@^7.36.1 \
  eslint-plugin-react-hooks@^5.1.0

Usage

Add to your .eslintrc.json:

{
  "extends": "@tanqory/eslint-config"
}

Using with Next.js

{
  "extends": [
    "@tanqory/eslint-config",
    "next/core-web-vitals"
  ],
  "rules": {
    "react/react-in-jsx-scope": "off"
  }
}

Using with TypeScript

{
  "extends": [
    "@tanqory/eslint-config",
    "plugin:@typescript-eslint/recommended"
  ],
  "parser": "@typescript-eslint/parser",
  "plugins": ["@typescript-eslint"],
  "settings": {
    "import/resolver": {
      "typescript": {}
    }
  }
}

What's Included?

This configuration extends @tanqory/eslint-config-base and adds:

  • React Support: Best practices for React development
  • React Hooks: Rules for proper hooks usage
  • JSX Accessibility: Ensure accessible React components
  • Import Validation: React-specific import rules

React-Specific Rules

  1. React Best Practices (rules/react.js)

    • Enforce prop types validation
    • Prevent missing key props in iterators
    • Enforce JSX boolean value notation
    • Prevent direct state mutation
  2. React Hooks (rules/react-hooks.js)

    • Rules of Hooks enforcement
    • Exhaustive dependencies check
    • Custom hooks naming convention
  3. JSX Accessibility (rules/react-a11y.js)

    • Alt text for images
    • ARIA roles validation
    • Interactive element accessibility
    • Label associations for form controls

Alternative Configurations

Without React Hooks

For projects not using React Hooks:

{
  "extends": "@tanqory/eslint-config/base"
}

Hooks Only

For projects that only want React Hooks rules:

{
  "extends": "@tanqory/eslint-config/hooks"
}

Legacy

For legacy projects:

{
  "extends": "@tanqory/eslint-config/legacy"
}

Customizing Rules

You can override any rule in your .eslintrc.json:

{
  "extends": "@tanqory/eslint-config",
  "rules": {
    "react/prop-types": "off",
    "react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx", ".ts", ".tsx"] }]
  }
}

React Version

Specify your React version in .eslintrc.json:

{
  "extends": "@tanqory/eslint-config",
  "settings": {
    "react": {
      "version": "detect"
    }
  }
}

Example Configurations

Create React App

{
  "extends": "@tanqory/eslint-config",
  "env": {
    "browser": true,
    "es2022": true
  }
}

React Native

{
  "extends": "@tanqory/eslint-config",
  "env": {
    "react-native/react-native": true
  },
  "plugins": ["react-native"],
  "rules": {
    "react-native/no-unused-styles": "error",
    "react-native/no-inline-styles": "warn"
  }
}

Gatsby

{
  "extends": [
    "@tanqory/eslint-config",
    "plugin:gatsby/recommended"
  ]
}

Development

# Clone the repository
git clone https://github.com/tanqory/javascript.git
cd javascript/packages/eslint-config-airbnb

# Install dependencies
npm install

# Run tests
npm test

# Run linting
npm run lint

License

MIT © Tanqory

Links