Fix config validation message typo (#13515)

* Fix config validation message typo

* Fix `checkNoUnwrappedItemOptionPairs` type param
This commit is contained in:
Jaeseok Kang 2021-06-29 15:54:47 +09:00 committed by GitHub
parent e6068cd9a5
commit 6df0b7c25f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -455,7 +455,7 @@ export function checkNoUnwrappedItemOptionPairs(
) {
e.message +=
`\n- Maybe you meant to use\n` +
`"${type}": [\n ["${lastItem.file.request}", ${JSON.stringify(
`"${type}s": [\n ["${lastItem.file.request}", ${JSON.stringify(
thisItem.value,
undefined,
2,

View File

@ -3,7 +3,7 @@
exports[`option-manager config plugin/preset flattening and overriding should throw when an option is following a preset 1`] = `
"[BABEL] unknown: Unknown option: .useSpread. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.
- Maybe you meant to use
\\"preset\\": [
\\"presets\\": [
[\\"./fixtures/option-manager/babel-preset-bar\\", {
\\"useSpread\\": true
}]
@ -14,7 +14,7 @@ To be a valid preset, its name and options should be wrapped in a pair of bracke
exports[`option-manager config plugin/preset flattening and overriding should throw when an option is provided as a plugin 1`] = `
"[BABEL] unknown: .useSpread is not a valid Plugin property
- Maybe you meant to use
\\"plugin\\": [
\\"plugins\\": [
[\\"./fixtures/option-manager/babel-plugin-foo\\", {
\\"useSpread\\": true
}]
@ -25,7 +25,7 @@ To be a valid plugin, its name and options should be wrapped in a pair of bracke
exports[`option-manager config plugin/preset flattening and overriding should throw when an option is provided as a preset 1`] = `
"[BABEL] unknown: Unknown option: .useBuiltIns. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.
- Maybe you meant to use
\\"preset\\": [
\\"presets\\": [
[\\"./fixtures/option-manager/babel-preset-bar\\", {
\\"useBuiltIns\\": \\"entry\\"
}]