Introduce stricter linting

This commit is contained in:
Sidharth Vinod
2022-09-02 11:44:06 +05:30
parent 5597cf45bf
commit 269722fb65
27 changed files with 208 additions and 75 deletions

View File

@@ -62,9 +62,9 @@ export const setSiteConfig = (conf: MermaidConfig): MermaidConfig => {
siteConfig = assignWithDepth({}, defaultConfig);
siteConfig = assignWithDepth(siteConfig, conf);
// @ts-ignore
// @ts-ignore: TODO Fix ts errors
if (conf.theme && theme[conf.theme]) {
// @ts-ignore
// @ts-ignore: TODO Fix ts errors
siteConfig.themeVariables = theme[conf.theme].getThemeVariables(conf.themeVariables);
}
@@ -216,6 +216,8 @@ export const addDirective = (directive: any) => {
* | conf | base set of values, which currentConfig could be **reset** to. | Dictionary | Required | Any Values, with respect to the secure Array |
*
* **Notes**: (default: current siteConfig ) (optional, default `getSiteConfig()`)
*
* @param config
*/
export const reset = (config = siteConfig): void => {
// Replace current config with siteConfig