@losant/eslint-config-losant
Common eslint config for Losant
Last updated 4 months ago by spacetc62 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @losant/eslint-config-losant 
SYNC missed versions from official npm registry.

@Losant / Eslint Config Losant

ESLint config for all Losant projects.

Installation

npm install --save-dev @losant/eslint-config-losant
yarn add --dev @losant/eslint-config-losant

Requirements

  • Node.js >=8.0.0

Configuration

Browser

{
  "eslintConfig": {
    "extends": "@losant/eslint-config-losant/env/browser",
  }
}

Node

{
  "eslintConfig": {
    "extends": "@losant/eslint-config-losant/env/node",
  }
}

Usage

You should add an npm script to the package.json of the project that specifies the eslint command. lint is the barebones setup you'll need to then be able to do yarn run lint. It's recommended that you add the other commands as well.

{
  "scripts": {
    "lint": "esw *.js src test",
    "lint:fix": "ews --fix *.js src test",
    "lint:watch": "esw --watch *.js src test",
    "lint:staged": "lint-staged"
  },
  "lint-staged": {
    "*.js": "esw"
  }
}

Current Tags

  • 1.3.11                                ...           latest (4 months ago)

22 Versions

  • 1.3.11                                ...           4 months ago
  • 1.3.10                                ...           7 months ago
  • 1.3.9                                ...           10 months ago
  • 1.3.8                                ...           10 months ago
  • 1.3.6                                ...           a year ago
  • 1.3.5                                ...           a year ago
  • 1.3.4                                ...           2 years ago
  • 1.3.3                                ...           2 years ago
  • 1.3.2                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.8                                ...           2 years ago
  • 1.2.7                                ...           2 years ago
  • 1.2.6                                ...           2 years ago
  • 1.2.5                                ...           2 years ago
  • 1.2.4                                ...           2 years ago
  • 1.2.3                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.33                                ...           3 years ago
  • 1.1.32                                ...           3 years ago
Downloads
Today 1
This Week 24
This Month 29
Last Day 0
Last Week 2
Last Month 7
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |