refactor: adjust warning message
This commit is contained in:
1 parent
46a4cac617
commit
eaafbb77aa
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -468,7 +468,7 @@ function normalizeArgv(rawArgv, options) {
|
||||
? "without an argument"
|
||||
: `with value \`${rawValue}\``;
|
||||
consoleWarn(
|
||||
`\`--${option.name}\` ${warningDescription} is deprecated. Automatically redirect to \`--${option.name}=${choice.redirect}\`.`
|
||||
`\`--${option.name}\` ${warningDescription} is deprecated. Prettier now treats it as: \`--${option.name}=${choice.redirect}\`.`
|
||||
);
|
||||
return choice.redirect;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ exports[`deprecated option values are warned 1`] = `
|
||||
`;
|
||||
|
||||
exports[`deprecated option values are warned 2`] = `
|
||||
"\`--trailing-comma\` without an argument is deprecated. Automatically redirect to \`--trailing-comma=es5\`.
|
||||
"\`--trailing-comma\` without an argument is deprecated. Prettier now treats it as: \`--trailing-comma=es5\`.
|
||||
"
|
||||
`;
|
||||
|
||||
|
||||
Reference in new issue
Block a user