eslint-plugin-flowtype
Version:
Flowtype linting rules for ESLint.
20 lines (17 loc) • 445 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = (context, report) => {
const sourceCode = context.getSourceCode();
return typeCastExpression => {
report({
colon: sourceCode.getFirstToken(typeCastExpression.typeAnnotation),
node: typeCastExpression,
type: 'type cast'
});
};
};
exports.default = _default;
module.exports = exports.default;
;