UNPKG

eslint-plugin-ft-flow

Version:
18 lines (15 loc) 384 B
// Support both node types for existential type // https://github.com/babel/babylon/issues/319 const reporter = (context) => (node) => { context.report({ message: 'Unexpected use of existential type (*).', node, }); }; const create = (context) => ({ ExistentialTypeParam: reporter(context), ExistsTypeAnnotation: reporter(context), }); export default { create, };