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

@bedrockstreaming/eslint-config-react

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bedrockstreaming/eslint-config-react

ESLint config used in Bedrock Streaming's React projects

  • 4.0.0-beta.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

@bedrockstreaming/eslint-config-react

The purpose of this package is simple, simplify the configuration of eslint and prettier in our projects.

It provides:

  • @bedrockstreaming/eslint-config which inherits from eslint-config-airbnb
  • eslint itself
  • prettier with all the plugins needed to work with eslint
  • eslint-plugin-react-hooks

With that come some little changes from the default config of eslint-config-airbnb and prettier that you can find in index.js file and [here].

Setup

npm install --dev @bedrockstreaming/eslint-config-react

or

yarn add --dev @bedrockstreaming/eslint-config-react

Then you need to add the config in the .eslintrc file of your project. For that create a .eslintrc and add the following lines:

{
  "extends": "@bedrockstreaming/eslint-config-react"
}

And that's all.

If you want to customize some rules, follow the eslint documentation.

Jest / Jasmine Support

If you want, you can add the jest support with the following lines:

{
  "env": {
    "browser": true,
    "jasmine": true
  }
}

Usage

Lint your code:

yarn eslint src/

Rewrite your code, the right way :smiling_imp::

yarn prettier-eslint -- --write 'src/**/*.js'

here

FAQs

Package last updated on 22 Oct 2021

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