Fix config validation message typo (#13515)
* Fix config validation message typo * Fix `checkNoUnwrappedItemOptionPairs` type param
This commit is contained in:
parent
e6068cd9a5
commit
6df0b7c25f
@ -455,7 +455,7 @@ export function checkNoUnwrappedItemOptionPairs(
|
|||||||
) {
|
) {
|
||||||
e.message +=
|
e.message +=
|
||||||
`\n- Maybe you meant to use\n` +
|
`\n- Maybe you meant to use\n` +
|
||||||
`"${type}": [\n ["${lastItem.file.request}", ${JSON.stringify(
|
`"${type}s": [\n ["${lastItem.file.request}", ${JSON.stringify(
|
||||||
thisItem.value,
|
thisItem.value,
|
||||||
undefined,
|
undefined,
|
||||||
2,
|
2,
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
exports[`option-manager config plugin/preset flattening and overriding should throw when an option is following a preset 1`] = `
|
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.
|
"[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
|
- Maybe you meant to use
|
||||||
\\"preset\\": [
|
\\"presets\\": [
|
||||||
[\\"./fixtures/option-manager/babel-preset-bar\\", {
|
[\\"./fixtures/option-manager/babel-preset-bar\\", {
|
||||||
\\"useSpread\\": true
|
\\"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`] = `
|
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
|
"[BABEL] unknown: .useSpread is not a valid Plugin property
|
||||||
- Maybe you meant to use
|
- Maybe you meant to use
|
||||||
\\"plugin\\": [
|
\\"plugins\\": [
|
||||||
[\\"./fixtures/option-manager/babel-plugin-foo\\", {
|
[\\"./fixtures/option-manager/babel-plugin-foo\\", {
|
||||||
\\"useSpread\\": true
|
\\"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`] = `
|
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.
|
"[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
|
- Maybe you meant to use
|
||||||
\\"preset\\": [
|
\\"presets\\": [
|
||||||
[\\"./fixtures/option-manager/babel-preset-bar\\", {
|
[\\"./fixtures/option-manager/babel-preset-bar\\", {
|
||||||
\\"useBuiltIns\\": \\"entry\\"
|
\\"useBuiltIns\\": \\"entry\\"
|
||||||
}]
|
}]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user