New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add configuration file validation #49
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some files could not be reviewed due to errors:
Failed to load tslint.json: Invalid "extends" configuration value - could not...
Failed to load tslint.json: Invalid "extends" configuration value - could not require "tslint-config-standard". Review the Node lookup algorithm (https://nodejs.org/api/modules.html#modules_all_together) for the approximate method TSLint uses to find the referenced configuration file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some files could not be reviewed due to errors:
Failed to load tslint.json: Invalid "extends" configuration value - could not...
Failed to load tslint.json: Invalid "extends" configuration value - could not require "tslint-config-standard". Review the Node lookup algorithm (https://nodejs.org/api/modules.html#modules_all_together) for the approximate method TSLint uses to find the referenced configuration file.
… into pr-config-validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some files could not be reviewed due to errors:
Failed to load tslint.json: Invalid "extends" configuration value - could not...
Failed to load tslint.json: Invalid "extends" configuration value - could not require "tslint-config-standard". Review the Node lookup algorithm (https://nodejs.org/api/modules.html#modules_all_together) for the approximate method TSLint uses to find the referenced configuration file.
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Currently whenever a configuration file is available, defaults will be applied
and the result is used as-is.
It would be nice if the configuration was validated before use, so that strange
error will not occur due to configuration typing differences.
This PR will do validation for the configuration file and will fail in one place
when the configuration file does not follow the structure defined in TypeScript.