Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-ucweb

ucweb42.1.0

Node Style Guide for UCWEB

readme

eslint-config-ucweb

Node Style Guide for UCWEB.

Install

npm install eslint-config-ucweb eslint --save-dev

Usage

Edit .eslintrc.yml

---
extends: ucweb

Edit package.json

{
  "scripts": {
    "lint": "eslint app config lib test index.js"
  }
}

For legacy project

extends: ucweb/legacy

Run

npm run lint

changelog

2.1.0 / 2016-08-10

  • docs: 更新文档
  • deps: 升级 eslint3

2.0.0 / 2016-07-20

Breaking Change:

规则改为继承 eslint-config-egg

1.1.1 / 2016-05-04

  • fix: revert due to plugin import

1.1.0 / 2016-05-04

  • deps: update eslint-config-airbnb to 8.0.0

1.0.5 / 2016-04-25

  • no-use-before-define allow fn

1.0.4 / 2016-03-29

1.0.3 / 2016-03-16

  • feat: test spaced-comment due to webstorm

1.0.2 / 2016-03-11

  • feat: consistent-return: 0

1.0.1 / 2016-03-11

  • fix: deps

1.0.0 / 2016-03-11

  • init project, copy from nut