Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-couchdb

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-couchdb

Adds support for CouchDB design document JavaScript files

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.4K
increased by16.27%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-couchdb

Adds basic support for CouchDB design document JavaScript files.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-couchdb:

$ npm install eslint-plugin-couchdb --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-couchdb globally.

Usage

You should create an .eslintrc file in the root before your design documents, to make sure you don't compile it into your design documents by mistake:

ddocs/
  first-ddoc/
    views/
      ..
  second-ddoc/
    views/
      ..
    validate_doc_update.js
.eslintrc <-- goes here

Recommended .eslintrc file:

{
  "extends": "eslint:recommended",
  "plugins": ["couchdb"]
}

Extra rules

This plugin doesn't dictate much, for example ES5 vs ES6, as you may only be deploying against PouchDB, which can handle anything your browser can.

If you are deploying to CouchDB you should constrain yourself to ES5 only.

{
  "extends": "eslint:recommended",
  "plugins": ["couchdb"],
  "parserOptions": {
    "ecmaVersion": 5,
  }
}

Keywords

FAQs

Package last updated on 30 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc