UNPKG

eslint-plugin-babel

Version:

an eslint rule plugin companion to babel-eslint

30 lines (27 loc) 929 B
"use strict"; var isWarnedForDeprecation = false; module.exports = { meta: { deprecated: true, schema: [ { "enum": ["semicolon", "comma"], } ] }, create: function() { return { Program: function() { if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { return; } /* eslint-disable no-console */ console.log('The babel/flow-object-type rule is deprecated. Please ' + 'use the flowtype/object-type-delimiter rule instead.\n' + 'Check out https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-object-type-delimiter'); /* eslint-enable no-console */ isWarnedForDeprecation = true; } }; } };