Skip to content

Commit a8a6fba

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

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

+1-1
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, the options that you pass to `register` will be passed to the PostgreSQL pool builder.

eslint.config.js

+6
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

+3-3
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",
@@ -42,9 +42,9 @@
4242
"@types/pg": "^8.11.4",
4343
"c8": "^10.1.2",
4444
"fastify": "^5.0.0",
45+
"neostandard": "^0.12.0",
4546
"pg": "^8.11.3",
4647
"pg-native": "^3.0.1",
47-
"standard": "^17.1.0",
4848
"tsd": "^0.31.1",
4949
"typescript": "~5.7.2"
5050
},

0 commit comments

Comments
 (0)