Socket
Socket
Sign inDemoInstall

eslint-config-crowdlab

Package Overview
Dependencies
324
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-crowdlab

ESLint configuration used by CrowdLab


Version published
Weekly downloads
15
decreased by-6.25%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

eslint-config-crowdlab

ESLint configuration used by CrowdLab

Currently based on eslint-config-airbnb with some additions:

Supports the following:

  • Jest
  • Mocha (for webdriverio E2E tests)
  • webdriverio
  • ES6
  • CommonJS
  • Browser
  • Node
  • JSDoc

JSDoc rules

The following rules are used for setting types for @param and @returns:

WrongPreferred
Booleanboolean
Numbernumber
Stringstring
arrayArray
functionFunction
objectObject
promisePromise

Usage in CrowdLab UI

You don't need to install this separately in CrowdLab UI projects.

Usage Outside of CrowdLab UI

If you want to use this package outside of the CrowdLab UI project, you can install and use it with the following steps.

Install

In order to install all peer dependencies, we need to run the following:

yarn add -D eslint-config-crowdlab

Usage

Create a file named .eslintrc.js with following contents in the root folder of your project:

{
  extends: 'crowdlab',
  rules: {
    // Add overrides and additional rules here
  }
}

That's it! You can override the settings from eslint-config-crowdlab by editing the .eslintrc.js file. Learn more about configuring ESLint on the ESLint website.

FAQs

Last updated on 09 Feb 2022

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc