Skip to content

Commit

Permalink
docs: no-primitive-constructor-types
Browse files Browse the repository at this point in the history
  • Loading branch information
danharper committed Nov 27, 2016
1 parent 0d37f03 commit 0d2e10f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .README/README.md
Expand Up @@ -50,6 +50,7 @@ npm install eslint-plugin-flowtype
2,
"never"
],
"flowtype/no-primitive-constructor-types": 2,
"flowtype/no-weak-types": 2,
"flowtype/object-type-delimiter": [
2,
Expand Down Expand Up @@ -145,6 +146,7 @@ When `true`, only checks files with a [`@flow` annotation](http://flowtype.org/d
{"gitdown": "include", "file": "./rules/delimiter-dangle.md"}
{"gitdown": "include", "file": "./rules/generic-spacing.md"}
{"gitdown": "include", "file": "./rules/no-dupe-keys.md"}
{"gitdown": "include", "file": "./rules/no-primitive-constructor-types.md"}
{"gitdown": "include", "file": "./rules/no-weak-types.md"}
{"gitdown": "include", "file": "./rules/object-type-delimiter.md"}
{"gitdown": "include", "file": "./rules/require-parameter-type.md"}
Expand Down
13 changes: 13 additions & 0 deletions .README/rules/no-primitive-constructor-types.md
@@ -0,0 +1,13 @@
### `no-primitive-constructor-types`

Disallows use of primitive constructors as types, such as `Boolean`, `Number` and `String`. [See more](https://flowtype.org/docs/builtins.html).

```js
{
"rules": {
"flowtype/no-primitive-constructor-types": 2
}
}
```

<!-- assertions noPrimitiveConstructorTypes -->

0 comments on commit 0d2e10f

Please sign in to comment.