diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 5342577..0000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -/coverage/**/* -*.d.ts diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 5f14d96..e3db023 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -24,7 +24,7 @@ jobs: with: no-lockfile: true npm-test-script: 'test-ci' - node-versions: '18,20,22,23,24' + node-versions: '20,22,23,24' # We currently have some issues on Windows that will have to wait to be fixed # os: 'ubuntu-latest,windows-latest' os: 'ubuntu-latest' diff --git a/eslint.config.js b/eslint.config.js index c3a0acd..aaa88a8 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,9 +1,9 @@ -import neostandard, { resolveIgnoresFromGitignore } from 'neostandard' +const neostandard = require('neostandard') -export default neostandard({ +module.exports = neostandard({ ts: true, env: ['mocha'], ignores: [ - ...resolveIgnoresFromGitignore(), + ...neostandard.resolveIgnoresFromGitignore(), ], }) diff --git a/package.json b/package.json index fec9a11..3f212e4 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "2.1.3", "description": "Config parser for Socket.dev", "homepage": "http://github.com/SocketDev/socket-config-js", + "type": "commonjs", "repository": { "type": "git", "url": "git://github.com/SocketDev/socket-config-js.git" @@ -54,7 +55,7 @@ "@types/node": "^14.18.36", "c8": "^10.1.3", "chai": "^4.3.6", - "chai-as-promised": "^7.1.1", + "chai-as-promised": "^8.0.1", "dependency-check": "^5.0.0-7", "husky": "^8.0.3", "installed-check": "^9.3.0", diff --git a/test/parse.spec.js b/test/parse.spec.js index 287f2bd..c52222b 100644 --- a/test/parse.spec.js +++ b/test/parse.spec.js @@ -4,7 +4,7 @@ const { readFile } = require('node:fs/promises') const path = require('node:path') const chai = require('chai') -const chaiAsPromised = require('chai-as-promised') +const { default: chaiAsPromised } = require('chai-as-promised') const { getDefaultConfig, diff --git a/test/read.spec.js b/test/read.spec.js index 3a89323..301d15c 100644 --- a/test/read.spec.js +++ b/test/read.spec.js @@ -3,7 +3,7 @@ const path = require('node:path') const chai = require('chai') -const chaiAsPromised = require('chai-as-promised') +const { default: chaiAsPromised } = require('chai-as-promised') const { readSocketConfig