4.0.2 • Published 2 years ago

eslint-config-crowdlab v4.0.2

Weekly downloads
158
License
UNLICENSED
Repository
github
Last release
2 years ago

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.

4.0.2

2 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.0.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.16.0

7 years ago

0.15.0

7 years ago

0.14.0

7 years ago

0.13.0

7 years ago

0.12.0

7 years ago

0.11.0

7 years ago

0.10.0

7 years ago

0.9.0

7 years ago

0.8.1

7 years ago

0.8.0

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.1

7 years ago

0.0.20

7 years ago

0.0.10

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago