Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
eslint-plugin-couchdb
Advanced tools
Readme
Adds basic support for CouchDB design document JavaScript files.
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.
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"]
}
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,
}
}
FAQs
Adds support for CouchDB design document JavaScript files
The npm package eslint-plugin-couchdb receives a total of 1,990 weekly downloads. As such, eslint-plugin-couchdb popularity was classified as popular.
We found that eslint-plugin-couchdb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.