Skip to content

Commit 354f6b3

Browse files
committed
chore(deps): use neostandard linting
1 parent c98e2ec commit 354f6b3

10 files changed

+14
-33
lines changed

.eslintignore

-1
This file was deleted.

.eslintrc

-7
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A simple, minimal PostgreSQL session store for Express/Connect
55
[![npm version](https://img.shields.io/npm/v/connect-pg-simple.svg?style=flat)](https://www.npmjs.com/package/connect-pg-simple)
66
[![npm downloads](https://img.shields.io/npm/dm/connect-pg-simple.svg?style=flat)](https://www.npmjs.com/package/connect-pg-simple)
77
[![Module type: CJS](https://img.shields.io/badge/module%20type-cjs-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)
8-
[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg)](https://github.com/voxpelli/eslint-config)
8+
[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-7fffff?style=flat&labelColor=ff80ff)](https://github.com/neostandard/neostandard)
99
[![Follow @voxpelli@mastodon.social](https://img.shields.io/mastodon/follow/109247025527949675?domain=https%3A%2F%2Fmastodon.social&style=social)](https://mastodon.social/@voxpelli)
1010

1111
## Installation

eslint.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { voxpelli } from '@voxpelli/eslint-config';
2+
3+
export default voxpelli({ cjs: true });

package.json

+5-14
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"table.sql"
2626
],
2727
"scripts": {
28-
"check:installed-check": "installed-check -i eslint-plugin-jsdoc -i knip -i installed-check",
28+
"check:installed-check": "installed-check -i @voxpelli/eslint-config -i eslint -i knip -i installed-check",
2929
"check:knip": "knip",
30-
"check:lint": "eslint --report-unused-disable-directives .",
30+
"check:lint": "eslint",
3131
"check:tsc": "tsc",
3232
"check:type-coverage": "type-coverage --detail --strict --at-least 85 --ignore-files 'test/**/*'",
3333
"check": "run-p check:*",
@@ -51,29 +51,20 @@
5151
"@types/sinon": "^17.0.3",
5252
"@types/sinon-chai": "^3.2.12",
5353
"@types/supertest": "^6.0.2",
54-
"@voxpelli/eslint-config": "^19.0.0",
54+
"@voxpelli/eslint-config": "^21.0.0",
5555
"@voxpelli/tsconfig": "^10.0.0",
5656
"c8": "^9.1.0",
5757
"chai": "^4.3.10",
5858
"chai-as-promised": "^7.1.1",
5959
"cookie-signature": "^1.2.1",
6060
"cookiejar": "^2.1.4",
6161
"dotenv": "^16.4.1",
62-
"eslint": "^8.56.0",
63-
"eslint-plugin-es-x": "^7.5.0",
64-
"eslint-plugin-import": "^2.29.1",
65-
"eslint-plugin-jsdoc": "^46.10.1",
66-
"eslint-plugin-mocha": "^10.2.0",
67-
"eslint-plugin-n": "^16.6.2",
68-
"eslint-plugin-promise": "^6.1.1",
69-
"eslint-plugin-security": "^1.7.1",
70-
"eslint-plugin-sort-destructure-keys": "^1.5.0",
71-
"eslint-plugin-unicorn": "^48.0.1",
62+
"eslint": "^9.10.0",
7263
"express": "^4.18.2",
7364
"express-session": "^1.17.3",
7465
"husky": "^8.0.3",
7566
"installed-check": "^8.0.1",
76-
"knip": "^4.3.1",
67+
"knip": "^5.0.3",
7768
"mocha": "^10.2.0",
7869
"npm-run-all2": "^6.1.2",
7970
"pg-promise": "^11.5.4",

test/.eslintrc

-10
This file was deleted.

test/db-utils.js

+2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ const pathModule = require('node:path');
77

88
const pg = require('pg');
99

10+
// eslint-disable-next-line n/no-process-env
1011
const dotEnvFile = process.env['DOTENV_FILE'] || pathModule.resolve(__dirname, './.env');
1112

1213
require('dotenv').config({ path: dotEnvFile });
1314

1415
const conObject = {
16+
// eslint-disable-next-line n/no-process-env
1517
database: process.env['PGDATABASE'] || 'connect_pg_simple_test',
1618
};
1719

test/integration/express.spec.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable promise/prefer-await-to-then */
12
/* eslint-disable unicorn/no-await-expression-member */
23
// @ts-check
34

test/integration/pgpromise.spec.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable promise/prefer-await-to-then */
12
// @ts-check
23

34
'use strict';

test/main.spec.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable n/no-process-env */
12
// @ts-check
23

34
'use strict';

0 commit comments

Comments
 (0)