Skip to content

Commit 98dfed2

Browse files
authored
build(deps-dev): replace standard with neostandard (#208)
1 parent e30a3e2 commit 98dfed2

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CI](https://github.com/fastify/fastify-redis/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/fastify/fastify-redis/actions/workflows/ci.yml)
44
[![NPM version](https://img.shields.io/npm/v/@fastify/redis.svg?style=flat)](https://www.npmjs.com/package/@fastify/redis)
5-
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)
5+
[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard)
66

77
Fastify Redis connection plugin; with this you can share the same Redis connection in every part of your server.
88

eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict'
2+
3+
module.exports = require('neostandard')({
4+
ignores: require('neostandard').resolveIgnoresFromGitignore(),
5+
ts: true
6+
})

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"type": "commonjs",
77
"types": "types/index.d.ts",
88
"scripts": {
9-
"lint": "standard",
10-
"lint:fix": "standard --fix",
9+
"lint": "eslint",
10+
"lint:fix": "eslint --fix",
1111
"redis": "docker run -p 6379:6379 --rm redis",
1212
"valkey": "docker run -p 6379:6379 --rm valkey/valkey:7.2",
1313
"test": "npm run unit && npm run typescript",
@@ -38,8 +38,8 @@
3838
"@fastify/pre-commit": "^2.1.0",
3939
"@types/node": "^22.0.0",
4040
"fastify": "^5.0.0",
41+
"neostandard": "^0.11.9",
4142
"proxyquire": "^2.1.3",
42-
"standard": "^17.1.0",
4343
"tap": "^18.7.1",
4444
"tsd": "^0.31.0",
4545
"why-is-node-running": "^2.2.2"

types/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { FastifyPluginCallback } from 'fastify';
2-
import { Cluster, Redis, RedisOptions } from 'ioredis';
1+
import { FastifyPluginCallback } from 'fastify'
2+
import { Cluster, Redis, RedisOptions } from 'ioredis'
33

44
type FastifyRedisPluginType = FastifyPluginCallback<fastifyRedis.FastifyRedisPluginOptions>
55

@@ -15,7 +15,7 @@ declare namespace fastifyRedis {
1515
[namespace: string]: Redis;
1616
}
1717

18-
export type FastifyRedis = FastifyRedisNamespacedInstance & Redis;
18+
export type FastifyRedis = FastifyRedisNamespacedInstance & Redis
1919

2020
export type FastifyRedisPluginOptions = (RedisOptions &
2121
{
@@ -32,10 +32,10 @@ declare namespace fastifyRedis {
3232
/*
3333
* @deprecated Use `FastifyRedisPluginOptions` instead
3434
*/
35-
export type FastifyRedisPlugin = FastifyRedisPluginOptions;
35+
export type FastifyRedisPlugin = FastifyRedisPluginOptions
3636
export const fastifyRedis: FastifyRedisPluginType
3737
export { fastifyRedis as default }
3838
}
3939

40-
declare function fastifyRedis(...params: Parameters<FastifyRedisPluginType>): ReturnType<FastifyRedisPluginType>
40+
declare function fastifyRedis (...params: Parameters<FastifyRedisPluginType>): ReturnType<FastifyRedisPluginType>
4141
export = fastifyRedis

types/index.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import fastifyRedis, { FastifyRedis, FastifyRedisPlugin, FastifyRedisNamespacedI
55

66
const app: FastifyInstance = Fastify()
77
const redis: Redis = new IORedis({ host: 'localhost', port: 6379 })
8-
const redisCluster= new IORedis.Cluster([{ host: 'localhost', port: 6379 }])
8+
const redisCluster = new IORedis.Cluster([{ host: 'localhost', port: 6379 }])
99

1010
app.register(fastifyRedis, { host: '127.0.0.1' })
1111

0 commit comments

Comments
 (0)