New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@ariestools/eslint-config-react-flat

Package Overview
Dependencies
Maintainers
1
Versions
50
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

Source
npmnpm
Version
8.6.12
Version published
Weekly downloads
1.7K
123.39%
Maintainers
1
Weekly downloads
 
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

Related posts