I’m using a library for logging called ‘loglevel’ for a custom app. Its a simple file that I include as follows:
<script src="../scripts/loglevel.min.js"></script>
When I run fdk validate after including this library, I get following two warnings:
> % fdk validate
Please ensure that the following are addressed for quick review process.
[WARN] app/scripts/loglevel.min.js::4: 'j' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app/scripts/loglevel.min.js::4: 'b' declared and assigned in different scopes. Possible asynchronous race condition.
Validation Successful
I don’t think this is a valid race condition and since I don’t want to re-write the library to suppress this warning, i would like to suppress the warning thru eslint rules.
I tried this rule but it has no effect:
/*eslint require-atomic-updates: off*/
Does anyone know how I can suppress this warning in this file only? I would like not to have it print warnings all the time so I don’t accidentally miss real problems…