Skip to content

Commit

Permalink
feat: add no-types-missing-flow-annotation to the recommended preset (#…
Browse files Browse the repository at this point in the history
…223)

* chore: add rule no-types-missing-flow-annotation to the recommended rules

* docs: Add no-types-missing-flow-annotation to the README
  • Loading branch information
micaste authored and gajus committed Apr 19, 2017
1 parent 4e191b7 commit a0a6d0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .README/README.md
Expand Up @@ -51,6 +51,7 @@ npm install eslint-plugin-flowtype --save-dev
"never"
],
"flowtype/no-primitive-constructor-types": 2,
"flowtype/no-types-missing-file-annotation": 2,
"flowtype/no-weak-types": 2,
"flowtype/object-type-delimiter": [
2,
Expand Down Expand Up @@ -147,6 +148,7 @@ When `true`, only checks files with a [`@flow` annotation](http://flowtype.org/d
{"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-types-missing-file-annotation.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
1 change: 1 addition & 0 deletions src/configs/recommended.json
Expand Up @@ -11,6 +11,7 @@
2,
"never"
],
"flowtype/no-types-missing-file-annotation": 2,
"flowtype/no-weak-types": 0,
"flowtype/require-parameter-type": 0,
"flowtype/require-return-type": 0,
Expand Down

0 comments on commit a0a6d0e

Please sign in to comment.