UNPKG

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