typicode / lowdb

Simple and fast JSON database
MIT License
21.35k stars 918 forks source link

fix: pass eslint #530

Closed Arondight closed 2 years ago

Arondight commented 2 years ago

There are two types of errors that should not be treated as errors, configure eslint in the comments to ignore them.

  1. @typescript-eslint/require-await, the code does not use await in async, but we do want a Promise.
  2. @typescript-eslint/explicit-module-boundary-types, there is no explicit return statement in the function, but we really don't care about its return value.

In order for eslint to make sense, I didn't disable these rules in the file but to line.

Arondight commented 2 years ago

done

typicode commented 2 years ago

Thanks, I'll fix the CI error and merge :)