Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@astral/eslint-config-react-vitest

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astral/eslint-config-react-vitest

Единый eslint config для компонентного тестирования react с использованием ```@testing-library/react```.

  • 2.5.0-rc.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
45
decreased by-22.41%
Maintainers
0
Weekly downloads
 
Created
Source

@astral/eslint-config-react-vitest

Единый eslint config для компонентного тестирования react с использованием @testing-library/react.

Расширяет @astral/eslint-config-vitest.

Installation

Npm

npm i @astral/eslint-config-react-vitest @astral/eslint-config-vitest --save-dev

Yarn

yarn add @astral/eslint-config-react-vitest @astral/eslint-config-vitest -D

Usage

Для оптимизации необходимо отдельно определять конфиг через overrides для ts и tsx файлов.

.eslintrc

{
  "extends": "@astral/eslint-config-react-ts",
  "overrides": [
    {
      "files": "**/*.test.tsx",
      "extends": ["@astral/eslint-config-react-vitest"]
    },
    {
      "files": "**/*.test.ts",
      "extends": ["@astral/eslint-config-vitest"]
    }
  ]
}

Rules

Список правил доступен в исходниках.

FAQs

Package last updated on 05 Nov 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc