UNPKG

696 BJavaScriptView Raw
1"use strict";
2
3var isWarnedForDeprecation = false;
4module.exports = {
5 meta: {
6 deprecated: true,
7 schema: []
8 },
9 create: function() {
10 return {
11 Program: function() {
12 if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) {
13 return;
14 }
15
16 /* eslint-disable no-console */
17 console.log('The babel/no-await-in-loop rule is deprecated. Please ' +
18 'use the built in no-await-in-loop rule instead.');
19 /* eslint-enable no-console */
20 isWarnedForDeprecation = true;
21 }
22 };
23 }
24};