Skip to content

Commit d0e0b44

Browse files
committed
build(deps-dev): replace standard with neostandard
1 parent d75b4f5 commit d0e0b44

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
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-postgres/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/fastify/fastify-postgres/actions/workflows/ci.yml)
44
[![NPM version](https://img.shields.io/npm/v/@fastify/postgres.svg?style=flat)](https://www.npmjs.com/package/@fastify/postgres)
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 PostgreSQL connection plugin; with this, you can share the same PostgreSQL connection pool in every part of your server.
88
Under the hood [node-postgres](https://github.com/brianc/node-postgres) is used, and the options that you pass to `register` will be passed to the PostgreSQL pool builder.

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
@@ -7,8 +7,8 @@
77
"types": "index.d.ts",
88
"scripts": {
99
"check-examples": "tsc --build examples/typescript/*",
10-
"lint": "standard",
11-
"lint:fix": "standard --fix",
10+
"lint": "eslint",
11+
"lint:fix": "eslint --fix",
1212
"load-data": "docker exec -it fastify-postgres psql -c 'CREATE TABLE users(id serial PRIMARY KEY, username VARCHAR (50) NOT NULL);' -U postgres -d postgres",
1313
"postgres": "docker run -p 5432:5432 --name fastify-postgres -e POSTGRES_PASSWORD=postgres -d postgres:11-alpine",
1414
"test": "npm run test:unit && npm run test:typescript",
@@ -71,9 +71,9 @@
7171
"@types/pg": "^8.11.4",
7272
"c8": "^10.1.2",
7373
"fastify": "^5.0.0",
74+
"neostandard": "^0.12.0",
7475
"pg": "^8.11.3",
7576
"pg-native": "^3.0.1",
76-
"standard": "^17.1.0",
7777
"tsd": "^0.31.1",
7878
"typescript": "~5.7.2"
7979
},

0 commit comments

Comments
 (0)