UNPKG

986 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/generator-star-spacing rule is deprecated. Please ' +
13 'use the built in generator-star-spacing rule instead.');
14 /* eslint-enable no-console */
15 isWarnedForDeprecation = true;
16 }
17 };
18};
19
20module.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];