eslint-config-mailonline

2018-10-11 admin

eslint-config-mailonline是什么

什么是eslint-config-mailonline,MailOnline ESLint config.

eslint-config-mailonline使用教程帮助文档

eslint-config-mailonline

Greenkeeper badge

NPM version Travis build status

MailOnline ESLint configuration.

Usage

Add eslint-config-mailonline as a development dependency:

npm install eslint-config-mailonline --save-dev

Create ESLint configuration file (.eslintrc) that extends eslint-config-mailonline:

{
  "extends": "mailonline"
}

Extended configs

The package also has separate entry points for some environments. Simply extend from the entry point as described below, either in a folder-specific eslint config, or additionally to the root config, e.g.:

{
  "extends": [
    "mailonline",
    "mailonline/jest",
    "mailonline/react"
  ]
}

jest

{
  "extends": "mailonline/jest"
}

mocha

{
  "extends": "mailonline/mocha"
}

react

{
  "extends": "mailonline/react"
}

flowtype

{
  "extends": "mailonline/flowtype"
}

lodash

{
  "extends": "mailonline/lodash"
}

webpack

{
  "extends": "mailonline/webpack"
}

Breaking changes

Any changes to this package that might cause code using it to not validate anymore, will be a semver-major change.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-42427.html

文章标题:eslint-config-mailonline

回到顶部