@lendoab/eslint-config-lendo
ESLint configuration used by Lendo front end projects.
Last updated 6 months ago by jacobjonsson .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @lendoab/eslint-config-lendo 
SYNC missed versions from official npm registry.

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"
        }
    }
}

Current Tags

  • 2.1.4                                ...           latest (6 months ago)

19 Versions

  • 2.1.4                                ...           6 months ago
  • 2.1.3                                ...           a year ago
  • 2.1.3-alpha.0                                ...           a year ago
  • 2.1.2-alpha.0                                ...           a year ago
  • 2.1.1-alpha.0                                ...           a year ago
  • 2.1.0-alpha.0                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 2.0.0-alpha.0                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |