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

eslint-plugin-comment-annotations

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-comment-annotations - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

lib/rules/no-extra-space.js

3

index.js
module.exports = {
rules: {
"all-caps": require("./lib/rules/all-caps"),
"single-colon": require("./lib/rules/single-colon")
"single-colon": require("./lib/rules/single-colon"),
"no-extra-space": require("./lib/rules/no-extra-space")
},

@@ -6,0 +7,0 @@ configs: {

module.exports = {
"comment-annotations/all-caps": 2,
"comment-annotations/single-colon": 2
"comment-annotations/single-colon": 2,
"comment-annotations/no-extra-space": 2
};

@@ -24,3 +24,3 @@ const utils = require("../utils");

// comment do not contain any annotations
// comment does not contain any annotations
if (!match) {

@@ -27,0 +27,0 @@ return;

@@ -26,3 +26,3 @@ const utils = require("../utils");

// comment do not contain any annotations
// comment does not contain any annotations
if (!match) {

@@ -29,0 +29,0 @@ return;

{
"name": "eslint-plugin-comment-annotations",
"version": "0.3.0",
"version": "0.4.0",
"description": "",

@@ -13,3 +13,3 @@ "main": "index.js",

"devDependencies": {
"eslint": "^6.8.0",
"eslint": "^7.2.0",
"eslint-config-airbnb-base": "^14.0.0",

@@ -19,3 +19,3 @@ "eslint-config-prettier": "^6.7.0",

"eslint-plugin-prettier": "^3.0.0",
"mocha": "^6.2.2",
"mocha": "^8.0.1",
"prettier": "^1.15.3"

@@ -22,0 +22,0 @@ },

@@ -37,1 +37,15 @@ # eslint-plugin-comment-annotations

```
- `no-extra-space` disables extra space in comment annotations (TODO and FIXME)
```js
// These comments will fail
// to do
// fix me
// fix me
// These comments will not fail
// todo
// fixme
// fixme
```
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