项目作者: grigorii-horos

项目描述 :
JavaScript Standard Style JSDoc support - ESLint Shareable Config
高级语言: JavaScript
项目地址: git://github.com/grigorii-horos/eslint-config-standard-jsdoc.git
创建时间: 2015-10-15T10:59:32Z
项目社区:https://github.com/grigorii-horos/eslint-config-standard-jsdoc

开源协议:MIT License

下载


Standard JSDoc - ESLint Shareable Config

npm
downloads

An ESLint Shareable Config for JSDoc support

Install

  1. npm install eslint-config-standard-jsdoc

Notice: This plugin doesn’t depend on standard style and can be used with any other style guide, like as Airbnb Style

Usage

Shareable configs are designed to work with the extends feature of .eslintrc files.
You can learn more about
Shareable Configs on the
official ESLint website.

This Shareable Config adds JSDoc to the baseline JavaScript Standard Style rules
provided in eslint-config-standard.

Here’s how to install everything you need:

  1. npm install eslint-config-standard-jsdoc eslint-plugin-jsdoc

Then, add this to your .eslintrc file, if you use vanila js or TypeScript with JSDOC :

  1. {
  2. "extends": [ "standard-jsdoc"]
  3. }

Or, if you use pure TypeScript

  1. {
  2. "extends": [ "standard-jsdoc/ts"]
  3. }

Note: We omitted the eslint-config- prefix since it is automatically assumed by ESLint.

You can override settings from the shareable config by adding them directly into your
.eslintrc file.

License

MIT