2017-01-24 00:33:58 +03:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const deprecated = {
|
|
|
|
useFlowParser: config =>
|
2017-01-28 18:50:22 +03:00
|
|
|
` The ${'"useFlowParser"'} option is deprecated. Use ${'"parser"'} instead.
|
2017-01-24 00:33:58 +03:00
|
|
|
|
|
|
|
Prettier now treats your configuration as:
|
|
|
|
{
|
2017-01-28 18:50:22 +03:00
|
|
|
${'"parser"'}: ${config.useFlowParser ? '"flow"' : '"babylon"'}
|
2017-01-24 00:33:58 +03:00
|
|
|
}`
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = deprecated;
|