JSON configuration in root package.json
When using many CLI arguments, it might be easier to move to the configuration format. In your root package.json, add a sherif field containing the same options as the CLI, but in camelCase. Default values are shown below:
--fail-on-warnings option
Add a new option --fail-on-warnings to exit with code 1 if any warning issues are found. By default, only error issues will make Sherif exit with code 1.
What's Changed
- feat: add
--fail-on-warningsoption by @QuiiBz in #141 - feat: add support for configuring via root
package.jsonby @QuiiBz in #146
Full Changelog: v1.9.0...v1.10.0
{ "sherif": { "fix": false, "select": "highest", // "highest" | "lowest" "noInstall": false, "failOnWarnings": false, "ignoreDependency": [], // string[] "ignorePackage": [], // string[] "ignoreRule": [] // string[] } }