Socket
Socket
Sign inDemoInstall

eslint-config-beepyo

Package Overview
Dependencies
288
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-beepyo

JavaScript Coding Standards


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Install size
41.1 MB
Created
Weekly downloads
 

Readme

Source

Beepyo's JavaScript Linting Rules

Welcome to Beepyo's JavaScript Lint configuration. Here you will find lint rules for the following types of projects:

  • Jest
  • React projects
  • React Native projects
  • Node.js projects

Prettier

We are actively integrating Prettier into our lint rules. Currently, Prettier is ready for use in all frontend projects (i.e. React or React Native). Prettier support for Node projects is still underway. See examples below.

How to Use

This project treats all dependencies as first-class citizens. What this means is that, for simplicity's sake, eslint installs all peer dependencies as regular dependencies. For now, the only dependency you'll need to install other than eslint-config-beepyo is eslint itself. This will probably change in the future as it's not a best practice.

Install Packages

yarn add eslint eslint-config-beepyo

Add it to your .eslintrc

Node.js project example:

{
  "extends": [
    "beepyo",
    "beepyo/rules/node"
  ]
}

Node.js with Jest example:

{
  "extends": [
    "beepyo/rules/node",
    "beepyo/rules/jest"
  ]
}

React with Jest example:

{
  "extends": [
    "beepyo/rules/react",
    "beepyo/rules/jest",
    "beepyo/rules/prettier"
  ]
}

Add "lint" and "format" Scripts to package.json

{
  "scripts": {
    "lint": "eslint ./",
    "format": "eslint --fix ./"
  }
}

Credit Where Credit is Due

These lint rules are heavily inspired by Airbnb's JavaScript style guide.

FAQs

Last updated on 18 Nov 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc