Skip to content

Commit 773cc34

Browse files
committed
fix: lint in example express
1 parent ad6192c commit 773cc34

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

examples/express/src/index.mts

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
import express from 'express'
1+
import express from 'express';
22
import { caching } from 'cache-manager';
33

44
const app = express();
5-
const cache = await caching('memory', {ttl: 10 * 1000, max: 500 })
5+
const cache = await caching('memory', { ttl: 10 * 1000, max: 500 });
66

7-
8-
app.get('/', async (_req, res) => res.send(await cache.wrap('foo', async () => "bar")));
7+
app.get('/', async (_req, res) =>
8+
res.send(await cache.wrap('foo', async () => 'bar')),
9+
);
910

1011
// and somewhere else:
1112

1213
const _server = app.listen(3000, () => {
13-
console.log("Listen in 3000")
14+
console.log('Listen in 3000');
1415
});

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"vitest": "0.24.3"
6767
},
6868
"lint-staged": {
69-
"*.{ts,js}": "eslint --cache --fix",
69+
"*.{ts,js,mts,mjs}": "eslint --cache --fix",
7070
"*.{md,json,yml}": "prettier --write"
7171
}
7272
}

0 commit comments

Comments
 (0)