@lendoab/eslint-config-lendo

2.1.6 • Public • Published

eslint-config-lendo

This package includes the common eslint config used by front end projects at Lendo.

Usage

Install the package

yarn add --dev @lendoab/eslint-config-lendo

Create a .eslintrc with following content in the root folder of your project.

{
  "extends": "@lendoab/eslint-config-lendo"
}

For eslint to work correctly some settings needs to be configured.

You need to specify what globals should be available

{
    "env": {
        // es6 features, e.g promises
        "es6": true,
        // Node features, e.g process.env.NODE_ENV
        "node": true,
        // jest feature, e.g describe, test and it
        "jest": true,
        // allow commonjs module system, e.g require()
        "commonjs": true,
        // allow browser api, e.g window
        "browser": true
    }
}

If you use react, then you need to specify what react version to use

{
    "settings": {
        "react": {
            "version": "detect"
        }
    }
}

/@lendoab/eslint-config-lendo/

    Package Sidebar

    Install

    npm i @lendoab/eslint-config-lendo

    Weekly Downloads

    316

    Version

    2.1.6

    License

    ISC

    Unpacked Size

    12.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • johanna-koberg
    • hesham-elmasry
    • blake.kokeny
    • joacimastrom
    • pedro.salomao.schibsted
    • matinzd
    • val_schibsted
    • jakob-edeus
    • kristoffer-ingemansson
    • dorio.cioran
    • ilnur-ibragimov
    • timur.dolgopolov
    • wei-sch
    • crazefan
    • peyman.davoodi
    • federico.naveira
    • lendo-ci
    • danielschibsted
    • mauroavellaneda
    • mikael.kristiansson
    • lendo_ci
    • conjoh
    • stormsteffe
    • mladen-se
    • martinseller