This is an ESLint preprocessor to add Comment Types support to eslint-plugin-flowtype.
WARNING: THIS IS A DIRTY HACK
DO NOT USE IT IN PRODUCTION ENVIRONMENT
Install the package:
npm install eslint-plugin-flowtype-comment --save-dev
In .eslintrc.js
:
'parser': 'babel-eslint',
'plugins': [
'flowtype',
'flowtype-comment',
],
- Transform line and column numbers correctly
- Handle
flowtype/space-before-type-colon