* Deprecate built-in rules * fix update to babel-eslint 7 with awaitexpression * deprecate flow-object-type
25 lines
663 B
JavaScript
25 lines
663 B
JavaScript
'use strict';
|
|
|
|
var isWarnedForDeprecation = false;
|
|
module.exports = function() {
|
|
return {
|
|
Program() {
|
|
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) {
|
|
return;
|
|
}
|
|
|
|
/* eslint-disable no-console */
|
|
console.log('The babel/func-params-comma-dangle rule is deprecated. Please ' +
|
|
'use the built in comma-dangle rule instead.');
|
|
/* eslint-enable no-console */
|
|
isWarnedForDeprecation = true;
|
|
}
|
|
};
|
|
};
|
|
|
|
module.exports.schema = [
|
|
{
|
|
enum: ['always', 'always-multiline', 'only-multiline', 'never']
|
|
}
|
|
];
|