🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@ariestools/eslint-config-react-flat

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ariestools/eslint-config-react-flat

ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects

latest
Source
npmnpm
Version
8.6.12
Version published
Maintainers
1
Created
Source

logo

@ariestools/eslint-config-react-flat

npm license

ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects

Install

Using npm:

npm install -D {{name}}

Using yarn:

yarn add -D {{name}}

Using pnpm:

pnpm add -D {{name}}

Using bun:

bun add -D {{name}}

Usage

Use this config in your eslint.config.ts:

import {
  configReactStorybook,
  recommendedConfig,
} from '@ariestools/eslint-config-react-flat'

const xylabsConfig = recommendedConfig({ tier: 3, isTypeChecked: true })

export default [
  ...xylabsConfig,
  ...configReactStorybook,
]

recommendedConfig accepts tier (0–4, default 3) and isTypeChecked (default true). Named configReactTier* exports remain available but are deprecated.

Tiered presets

React layers are added at tier 2 (best practices) and above. Lower tiers match @ariestools/eslint-config-flat without React rules.

ExportDescription
configReactTier0Correctness / configReactTier0CorrectnessTypeCheckedBase tier 0 only
configReactTier1Consistency / configReactTier1ConsistencyTypeCheckedBase tier 1 only
configReactTier2BestPractices / configReactTier2BestPracticesTypeCheckedBase + React
configReactTier3OpinionatedTypeCheckedSonarJS + optional rules at error severity; preferred default
configReactTier4Experimental / configReactTier4ExperimentalTypeCheckedOpinionated + newly introduced unicorn rules as warnings

config is deprecated. Use configReactTier3OpinionatedTypeChecked instead, and add configReactStorybook explicitly if needed.

Extending with custom rules

import { configReactTier3OpinionatedTypeChecked } from '@ariestools/eslint-config-react-flat'

const eslintConfig = [
  ...configReactTier3OpinionatedTypeChecked,
  {
    rules: {
      // your overrides
    },
  },
]

export default eslintConfig

What's included

Everything from @ariestools/eslint-config-flat, plus:

  • React component and hooks linting via eslint-plugin-react-x
  • DOM API validation via eslint-plugin-react-dom
  • Enhanced hooks rules via eslint-plugin-react-hooks-extra
  • Naming convention enforcement via eslint-plugin-react-naming-convention
  • React Refresh validation via eslint-plugin-react-refresh
  • Web API best practices via eslint-plugin-react-web-api

License

See the LICENSE file for license rights and limitations (LGPL-3.0-only).

Credits

Made with 🔥 and ❄️ by XY Labs

Keywords

xylabs

FAQs

Package last updated on 08 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts