UNPKG

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