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

eslint-config-vtex-react

Package Overview
Dependencies
Maintainers
55
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-vtex-react

VTEX's eslint config for React

  • 6.8.3-alpha.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
55
Created
Source

eslint-config-vtex-react

This package provides VTEX's .eslintrc for React projects as an extensible shared config.

Not all React applications live in the same context, different rules are needed for different scenarios. To solve this, three presets are provided:

  • vtex-react - Base react configuration. Can be used in any React project.
  • vtex-react/io - To be used in VTEX IO React applications.
  • vtex-react/native - To be used in react-native applications.

Installation

Assuming you already have ESLint installed, run:

yarn add -D eslint-config-vtex-react typescript prettier

Usage

After installing the module, just add it to your extends array inside your .eslintrc.

// .eslintrc
{
  "extends": ["vtex-react"]
}

As any other eslint preset, it's possible to override some rules and configurations. We encourage trying to keep the closest possible to the preset rules, but every project is different and sometimes overriding is needed, use it carefully.

References

  • eslint-config-vtex documentation
  • eslint-plugin-jsx-a11y documentation
  • eslint-plugin-react documentation
  • eslint-plugin-react-hooks documentation

Keywords

FAQs

Package last updated on 23 Nov 2020

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