1 | "use strict";
|
2 |
|
3 | var isWarnedForDeprecation = false;
|
4 | module.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 |
|
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 |
|
25 | isWarnedForDeprecation = true;
|
26 | }
|
27 | };
|
28 | }
|
29 | };
|