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/generator-star-spacing rule is deprecated. Please ' +
|
13 | 'use the built in generator-star-spacing rule instead.');
|
14 |
|
15 | isWarnedForDeprecation = true;
|
16 | }
|
17 | };
|
18 | };
|
19 |
|
20 | module.exports.schema = [
|
21 | {
|
22 | "oneOf": [
|
23 | {
|
24 | "enum": ["before", "after", "both", "neither"]
|
25 | },
|
26 | {
|
27 | "type": "object",
|
28 | "properties": {
|
29 | "before": {"type": "boolean"},
|
30 | "after": {"type": "boolean"}
|
31 | },
|
32 | "additionalProperties": false
|
33 | }
|
34 | ]
|
35 | }
|
36 | ];
|