eslint-config-interactivethings

2019-10-10 admin

eslint-config-interactivethings是什么

什么是eslint-config-interactivethings,The Interactive Things ESLint config

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

Interactive Things ESLint Config

We (mostly) structure and lint our JS code according to AirBnB’s JavaScript styleguide. Exceptions are noted below.

Usage

npm install eslint-config-interactivethings --save-dev

In your project’s .eslintrc:

{
  "extends": "interactivethings"
}

Override any rules which don’t fit your project.

Differences to AirBnB config

  • JSX single quotes
  • Capitalized functions don’t need to be used with new. E.g. const foo = Immutable.Map(); should be allowed.
  • Allows the __DEV__ global

Development

  • Create single commits for each rule change, and describe the reason for the change in the commit message (why not just what).
  • List any deviations from AirBnB’s style in this README
  • Create a new version using npm version x.x.x

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

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

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

文章标题:eslint-config-interactivethings

回到顶部