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.1 to 2.2.2

2

dist/rules/typeIdMatch.js

@@ -11,3 +11,3 @@ 'use strict';

exports.default = function (context) {
var pattern = new RegExp(context.options[0] || '^([A-Z][a-z0-9]+)+Type$');
var pattern = new RegExp(context.options[0] || '^Type([A-Z][a-z0-9]+)+$');

@@ -14,0 +14,0 @@ return {

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

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

@@ -96,2 +96,5 @@ <h1 id="eslint-plugin-flowtype">eslint-plugin-flowtype</h1>

// Message: Missing "[foo]" parameter type annotation.
({foo = 1} = {}) => {}
// Message: Missing "{foo = 1}" parameter type annotation.
```

@@ -285,7 +288,7 @@

type foo = {};
// Message: Type identifier 'foo' does not match pattern '/^([A-Z][a-z0-9]+)+Type$/'.
// Message: Type identifier 'foo' does not match pattern '/^Type([A-Z][a-z0-9]+)+$/'.
// Options: ["^foo$"]
type FooType = {};
// Message: Type identifier 'FooType' does not match pattern '/^foo$/'.
type TypeFoo = {};
// Message: Type identifier 'TypeFoo' does not match pattern '/^foo$/'.
```

@@ -296,3 +299,3 @@

```js
type FooType = {};
type TypeFoo = {};

@@ -299,0 +302,0 @@ // Options: ["^foo$"]

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