1 | "use strict";
|
2 |
|
3 | var isWarnedForDeprecation = false;
|
4 | module.exports = {
|
5 | meta: {
|
6 | deprecated: true,
|
7 | schema: [
|
8 | {
|
9 | "enum": ["always", "as-needed"]
|
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/arrow-parens rule is deprecated. Please ' +
|
22 | 'use the built in arrow-parens rule instead.');
|
23 |
|
24 | isWarnedForDeprecation = true;
|
25 | }
|
26 | };
|
27 | }
|
28 | };
|