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.7.1 to 2.7.2

6

dist/rules/spaceAfterTypeColon.js

@@ -35,7 +35,7 @@ 'use strict';

if (node.type === 'FunctionTypeParam') {
var colon = sourceCode.getTokenBefore(typeAnnotation);
var colon = sourceCode.getFirstToken(node, 1);
return {
colon: colon,
spaceAfter: typeAnnotation.start - colon.end
spaceAfter: sourceCode.getTokenAfter(colon).start - colon.end
};

@@ -172,3 +172,3 @@ } else {

var colon = getColon(objectTypeProperty);
var typeAnnotation = objectTypeProperty.value;
var typeAnnotation = sourceCode.getTokenAfter(colon);

@@ -175,0 +175,0 @@ var spaces = typeAnnotation.start - colon.end;

{
"name": "eslint-plugin-flowtype",
"description": "Flowtype linting rules for ESLint.",
"version": "2.7.1",
"version": "2.7.2",
"main": "./dist/index.js",

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

@@ -233,3 +233,3 @@ <h1 id="eslint-plugin-flowtype">eslint-plugin-flowtype</h1>

Alternatively, you can want to exclude only function expressions (e.g. `x => x * 2`). Provide `excludeArrowFunctions` with `expressionsOnly` for this.
Alternatively, you can want to exclude only concise arrow functions (e.g. `x => x * 2`). Provide `excludeArrowFunctions` with `expressionsOnly` for this.

@@ -333,3 +333,3 @@ ```js

Alternatively, you can want to exclude only function expressions (e.g. `() => 2`). Provide `excludeArrowFunctions` with `expressionsOnly` for this.
Alternatively, you can want to exclude only concise arrow function (e.g. `() => 2`). Provide `excludeArrowFunctions` with `expressionsOnly` for this.

@@ -336,0 +336,0 @@ ```js

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