项目作者: selfpub-org

项目描述 :
Selfpub's base JS ESLint config.
高级语言: JavaScript
项目地址: git://github.com/selfpub-org/eslint-config.git
创建时间: 2018-10-10T07:36:37Z
项目社区:https://github.com/selfpub-org/eslint-config

开源协议:MIT License

下载


@selfpub/eslint-config

@selfpub/eslint-config"">NpmLicense
@selfpub/eslint-config"">NPM version

Selfpub’s config for eslint.

Install

Install this package, as well as the parts of Babel you wish to use:

With Yarn

  1. $ yarn add --dev --exact eslint @selfpub/eslint-config

With npm

  1. npm install eslint @selfpub/eslint-config --save-dev --save-exact

Usage

Then, in your Eslint configuration, extend your eslint config you’d like:

  1. {
  2. "extends": "@selfpub/eslint-config"
  3. }

A few ESLint plugins are supported as well:

  • [eslint-plugin-flowtype]
  • [eslint-plugin-react]
  • [eslint-plugin-standard]
  • [eslint-plugin-unicorn]

Add extra exclusions for the plugins you use like so:

  1. {
  2. "extends": [
  3. "@selfpub/eslint-config",
  4. "prettier/flowtype",
  5. "prettier/react",
  6. "prettier/standard",
  7. "prettier/unicorn"
  8. ]
  9. }