eslint-plugin-ft-flow
Version:
Flowtype linting rules for ESLint by flow-typed
18 lines (15 loc) • 384 B
Flow
// 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,
};