You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
696 B
25 lines
696 B
"use strict";
|
|
|
|
var isWarnedForDeprecation = false;
|
|
module.exports = {
|
|
meta: {
|
|
deprecated: true,
|
|
schema: []
|
|
},
|
|
create: function() {
|
|
return {
|
|
Program: function() {
|
|
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) {
|
|
return;
|
|
}
|
|
|
|
/* eslint-disable no-console */
|
|
console.log('The babel/no-await-in-loop rule is deprecated. Please ' +
|
|
'use the built in no-await-in-loop rule instead.');
|
|
/* eslint-enable no-console */
|
|
isWarnedForDeprecation = true;
|
|
}
|
|
};
|
|
}
|
|
};
|