eslint-plugin-flowtype
Version:
Flowtype linting rules for ESLint.
30 lines (26 loc) • 585 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
// Support both node types for existential type
// https://github.com/babel/babylon/issues/319
const reporter = context => {
return node => {
context.report({
message: 'Unexpected use of existential type (*).',
node
});
};
};
const create = context => {
return {
ExistentialTypeParam: reporter(context),
ExistsTypeAnnotation: reporter(context)
};
};
var _default = {
create
};
exports.default = _default;
module.exports = exports.default;
;