boolean-style = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
define-flow-type = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
delimiter-dangle = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
generic-spacing = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
no-dupe-keys = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
no-types-missing-file-annotation = function (context) { // Skip flow files if ((0, _utilities.isFlowFile)(context, false)) { return {}; } var reporter = function reporter(node, type) { context.report({ data: { type }, message: 'Type {{type}} require valid Flow declaration.', node }); }; return { ImportDeclaration(node) { if (node.importKind === 'type') { reporter(node, 'imports'); } if (node.importKind === 'value' && node.specifiers.some(function (specifier) { return specifier.importKind === 'type'; })) { reporter(node, 'imports'); } }, TypeAlias(node) { reporter(node, 'aliases'); }, TypeAnnotation(node) { reporter(node, 'annotations'); } }; }
n/a
no-weak-types = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
require-parameter-type = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
require-return-type = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
require-valid-file-annotation = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
require-variable-type = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
semi = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
sort-keys = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
space-after-type-colon = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
space-before-generic-bracket = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
space-before-type-colon = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
type-id-match = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
union-intersection-spacing = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
use-flow-type = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
create = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
create = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a
create = function (cb, context) {
/* [wrapped with _.partial] */
var checkThisFile = !_lodash2.default.get(context, 'settings.flowtype.onlyFilesWithFlowAnnotation') || (0, _isFlowFile2.default
)(context);
if (!checkThisFile) {
return function () {};
}
return cb(context);
}
n/a