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