Use Prettier JS (#5017)

* Adds prettier

* Run lint before tests
This commit is contained in:
Florent Vilmart
2018-09-01 13:58:06 -04:00
committed by GitHub
parent 189cd259ee
commit d83a0b6808
240 changed files with 41098 additions and 29020 deletions

View File

@@ -1,14 +1,11 @@
import LRU from 'lru-cache';
import defaults from '../../defaults';
import defaults from '../../defaults';
export class LRUCache {
constructor({
ttl = defaults.cacheTTL,
maxSize = defaults.cacheMaxSize,
}) {
constructor({ ttl = defaults.cacheTTL, maxSize = defaults.cacheMaxSize }) {
this.cache = new LRU({
max: maxSize,
maxAge: ttl
maxAge: ttl,
});
}
@@ -27,7 +24,6 @@ export class LRUCache {
clear() {
this.cache.reset();
}
}
export default LRUCache;