Socket
Socket
Sign inDemoInstall

eslint-plugin-flowtype

Package Overview
Dependencies
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-flowtype - npm Package Compare versions

Comparing version 2.2.4 to 2.2.5

12

dist/rules/spaceAfterTypeColon.js

@@ -39,2 +39,14 @@ 'use strict';

});
if (functionNode.returnType) {
var spaceAfter = functionNode.returnType.typeAnnotation.start - functionNode.returnType.start - 1;
if (always && spaceAfter > 1) {
context.report(functionNode, 'There must be 1 space after return type colon.');
} else if (always && spaceAfter === 0) {
context.report(functionNode, 'There must be a space after return type colon.');
} else if (!always && spaceAfter > 0) {
context.report(functionNode, 'There must be no space after return type colon.');
}
}
};

@@ -41,0 +53,0 @@ });

2

package.json
{
"name": "eslint-plugin-flowtype",
"description": "Flowtype linting rules for ESLint.",
"version": "2.2.4",
"version": "2.2.5",
"main": "./dist/index.js",

@@ -6,0 +6,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

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