1 | "use strict";
|
2 |
|
3 | var isWarnedForDeprecation = false;
|
4 | module.exports = function() {
|
5 | return {
|
6 | Program() {
|
7 | if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) {
|
8 | return;
|
9 | }
|
10 |
|
11 |
|
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 |
|
16 | isWarnedForDeprecation = true;
|
17 | }
|
18 | };
|
19 | };
|
20 |
|
21 | module.exports.schema = [
|
22 | {
|
23 | 'enum': ['semicolon', 'comma'],
|
24 | }
|
25 | ];
|