check-flow-annotation
Advanced tools
Comparing version
{ | ||
"name": "check-flow-annotation", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A basic flow type annotation checker", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -46,25 +46,29 @@ [](https://travis-ci.org/DavidBabel/check-flow-annotation) | ||
By default it checks every ".js" and ".jsx" in your project, but you can filter it with exclude option | ||
By default it checks every ".js", ".jsx" and ".mjs" in your project, | ||
but you can filter it with exclude option | ||
Note that options are written "--option=value" but short version are written "-o value" | ||
Note that options are written "--option=value" | ||
but short versions are written "-o value" | ||
--help, -h | ||
Displays help information about this script | ||
'index.js -h' or 'index.js --help' | ||
--help, -h | ||
Displays help information about this script | ||
'index.js -h' or 'index.js --help' | ||
--version | ||
Displays version info | ||
index.js --version | ||
--version | ||
Displays version info | ||
index.js --version | ||
--strict, -s | ||
Force to check for "@flow strict" | ||
--strict, -s | ||
Force to check "@flow strict" | ||
--exclude, -x | ||
Allow to exclude certain paths or extensions, it‘s a comma separated value | ||
example: 'build*','.src/static/*' | ||
will be merged with default array: ['node_modules*', '.git*', 'flow-typed*', '.*', '!*.+(js|jsx|mjs)'] | ||
--exclude, -x | ||
Allow to exclude certain paths or extensions, it‘s a comma separated value | ||
example: 'build*','.src/static/*' | ||
will be merged with default array: | ||
['node_modules*', '.git*', 'flow-typed*', '.*', '!*.+(js|jsx|mjs)'] | ||
--check, -c | ||
Set a custom check | ||
'@flow weak' or '@no flow' | ||
--check, -c | ||
Set a custom check | ||
'@flow weak' or '@no flow' | ||
``` |
@@ -15,5 +15,7 @@ #!/usr/bin/env node | ||
By default it checks every ".js" and ".jsx" in your project, but you can filter it with exclude option | ||
By default it checks every ".js", ".jsx" and ".mjs" in your project, | ||
but you can filter it with exclude option | ||
Note that options are written "--option=value" but short versions are written "-o value"` | ||
Note that options are written "--option=value" | ||
but short versions are written "-o value"` | ||
) | ||
@@ -26,3 +28,3 @@ .version('v1.0') | ||
type: 'boolean', | ||
description: 'Force to check for "@flow strict"' | ||
description: 'Force to check "@flow strict"' | ||
}, | ||
@@ -36,3 +38,4 @@ { | ||
example: `example: 'build*','.src/static/*' | ||
will be merged with default array: ['node_modules*', '.git*', 'flow-typed*', '.*', '!*.+(js|jsx|mjs)']` | ||
will be merged with default array: | ||
['node_modules*', '.git*', 'flow-typed*', '.*', '!*.+(js|jsx|mjs)']` | ||
}, | ||
@@ -39,0 +42,0 @@ { |
7581
0.36%104
2.97%74
5.71%