This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improved validation error messages (#187)
- Loading branch information
1 parent
37c6acc
commit f3d4dd2
Showing
7 changed files
with
954 additions
and
606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
module.exports = { | ||
ignore: ['package-lock.json', 'CHANGELOG.md'], | ||
linters: { | ||
'*.js': ['prettier --write', 'eslint --fix', 'git add'], | ||
'*.{json,md,yml,css}': ['prettier --write', 'git add'], | ||
}, | ||
'*.js': ['prettier --write', 'eslint --fix', 'git add'], | ||
'*.{json,md,yml,css}': ['prettier --write', 'git add'], | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`validation 1`] = ` | ||
"URL Loader Invalid Options | ||
options.limit should be boolean,number,string | ||
" | ||
exports[`validate options 1`] = ` | ||
"Invalid options object. URL Loader has been initialised using an options object that does not match the API schema. | ||
- options.limit should be: | ||
boolean | number | string | ||
-> Enables/Disables transformation target file into base64 URIs (https://github.com/webpack-contrib/url-loader#limit)." | ||
`; | ||
|
||
exports[`validation 2`] = ` | ||
"URL Loader Invalid Options | ||
options.mimetype should be string | ||
" | ||
exports[`validate options 2`] = ` | ||
"Invalid options object. URL Loader has been initialised using an options object that does not match the API schema. | ||
- options.mimetype should be a string. | ||
-> The MIME type for the file to be transformed (https://github.com/webpack-contrib/url-loader#mimetype)." | ||
`; | ||
|
||
exports[`validation 3`] = ` | ||
"URL Loader Invalid Options | ||
options.fallback should be string | ||
options.fallback should be object | ||
options.fallback should match some schema in anyOf | ||
" | ||
exports[`validate options 3`] = ` | ||
"Invalid options object. URL Loader has been initialised using an options object that does not match the API schema. | ||
- options.fallback should be one of these: | ||
string | object { loader?, options? } | ||
-> An alternative loader to use when a target file's size exceeds the limit set in the limit option (https://github.com/webpack-contrib/url-loader#fallback). | ||
Details: | ||
* options.fallback should be a string. | ||
* options.fallback should be an object: | ||
object { loader?, options? }" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters