eslint-plugin-flowtype
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40050
304