noMixed.js.flow 219 B

123456789101112131415
  1. const schema = [];
  2. const create = (context) => ({
  3. MixedTypeAnnotation(node) {
  4. context.report({
  5. message: 'Unexpected use of mixed type',
  6. node,
  7. });
  8. },
  9. });
  10. export default {
  11. create,
  12. schema,
  13. };