UNPKG

770 BJavaScriptView Raw
1"use strict";
2
3var isWarnedForDeprecation = false;
4module.exports = function() {
5 return {
6 Program() {
7 if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) {
8 return;
9 }
10
11 /* eslint-disable no-console */
12 console.log('The babel/flow-object-type rule is deprecated. Please ' +
13 'use the flowtype/object-type-delimiter rule instead.\n' +
14 'Check out https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-object-type-delimiter');
15 /* eslint-enable no-console */
16 isWarnedForDeprecation = true;
17 }
18 };
19};
20
21module.exports.schema = [
22 {
23 'enum': ['semicolon', 'comma'],
24 }
25];