hczhcz / eslint-plugin-flowtype-comment

Comment type preprocessor of Flowtype

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-plugin-flowtype-comment

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

Usage

Install the package:

npm install eslint-plugin-flowtype-comment --save-dev

In .eslintrc.js:

'parser': 'babel-eslint',
'plugins': [
    'flowtype',
    'flowtype-comment',
],

TODO

  • Transform line and column numbers correctly
  • Handle flowtype/space-before-type-colon

About

Comment type preprocessor of Flowtype

License:MIT License


Languages

Language:JavaScript 100.0%