Skip to content

Commit b29a268

Browse files
chore: bump the all group with 8 updates (#535)
Updates `@nihalgonsalves/esconfig` from 0.9.17 to 0.9.22 - [Release notes](https://github.com/nihalgonsalves/esconfig/releases) - [Changelog](https://github.com/nihalgonsalves/esconfig/blob/main/CHANGELOG.md) - [Commits](nihalgonsalves/esconfig@esconfig-v0.9.17...esconfig-v0.9.22) Updates `@types/node` from 18.19.39 to 18.19.42 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Removes `@typescript-eslint/eslint-plugin` (7.15.0) Removes `@typescript-eslint/parser` (7.15.0) Adds `typescript-eslint` at 8.0.1 <https://github.com/typescript-eslint/typescript-eslint/releases> Updates eslint from 8.57.0 to 9.8.0 Updates `lefthook` from 1.6.18 to 1.7.11 - [Release notes](https://github.com/evilmartians/lefthook/releases) - [Changelog](https://github.com/evilmartians/lefthook/blob/master/CHANGELOG.md) - [Commits](evilmartians/lefthook@v1.6.18...v1.7.11) Updates `prettier` from 3.3.2 to 3.3.3 - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@3.3.2...3.3.3) Updates `tsx` from 4.16.0 to 4.16.5 - [Release notes](https://github.com/privatenumber/tsx/releases) - [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs) - [Commits](privatenumber/tsx@v4.16.0...v4.16.5) Updates `typescript` from 5.5.3 to 5.5.4 - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](microsoft/TypeScript@v5.5.3...v5.5.4) --- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nihal Gonsalves <[email protected]>
1 parent 10e9f02 commit b29a268

File tree

7 files changed

+575
-445
lines changed

7 files changed

+575
-445
lines changed

.eslintrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ updates:
1313
- dependency-name: "@types/node"
1414
update-types:
1515
- "version-update:semver-major"
16-
- dependency-name: "eslint"
17-
update-types:
18-
- "version-update:semver-major"
1916

2017
- package-ecosystem: github-actions
2118
directory: "/"

bin/test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env node */
2-
31
// eslint-disable-next-line @typescript-eslint/no-var-requires
42
const { PostgresError } = require("../dist");
53

eslint.config.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/* eslint-disable @typescript-eslint/no-var-requires */
2+
const { fixupConfigRules } = require("@eslint/compat");
3+
const { FlatCompat } = require("@eslint/eslintrc");
4+
const js = require("@eslint/js");
5+
const tseslint = require("typescript-eslint");
6+
7+
const compat = new FlatCompat({
8+
baseDirectory: __dirname,
9+
recommendedConfig: js.configs.recommended,
10+
});
11+
12+
module.exports = tseslint.config(
13+
{ ignores: ["dist"] },
14+
// @ts-expect-error type mismatch
15+
...fixupConfigRules(
16+
compat.extends("./node_modules/@nihalgonsalves/esconfig/.eslintrc"),
17+
),
18+
{
19+
languageOptions: {
20+
parserOptions: {
21+
project: undefined,
22+
projectService: true,
23+
},
24+
},
25+
rules: {
26+
"@typescript-eslint/no-duplicate-enum-values": "off",
27+
"@typescript-eslint/restrict-template-expressions": [
28+
"error",
29+
{ allowNumber: true },
30+
],
31+
"import/no-extraneous-dependencies": [
32+
"error",
33+
{
34+
devDependencies: ["**/*.test.{js,jsx,ts,tsx}", "eslint.config.js"],
35+
},
36+
],
37+
// typescript
38+
"no-undef": "off",
39+
},
40+
},
41+
);

package.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"clean": "rm -rf ./dist/",
2121
"typecheck": "tsc --noEmit --project tsconfig.json && tsc --noEmit --project tsconfig.build.json",
2222
"build": "tsc --build tsconfig.build.json",
23-
"lint:check": "eslint --report-unused-disable-directives ./src/ ./bin/ --ext .js,.ts,.jsx,.tsx,.mjs,.mts,.cjs,.cts",
23+
"lint:check": "eslint",
2424
"format:check": "prettier . --check",
2525
"format:write": "prettier . --write",
2626
"test": "node bin/test.js",
@@ -30,16 +30,20 @@
3030
"dist/**/*"
3131
],
3232
"devDependencies": {
33-
"@nihalgonsalves/esconfig": "^0.9.17",
33+
"@eslint/compat": "^1.1.1",
34+
"@eslint/eslintrc": "^3.1.0",
35+
"@eslint/js": "^9.8.0",
36+
"@nihalgonsalves/esconfig": "^0.9.22",
37+
"@types/eslint__eslintrc": "^2.1.2",
38+
"@types/eslint__js": "^8.42.3",
3439
"@types/node": "^18",
35-
"@typescript-eslint/eslint-plugin": "^7.15.0",
36-
"@typescript-eslint/parser": "^7.15.0",
37-
"eslint": "^8.57.0",
40+
"eslint": "^9.8.0",
3841
"eslint-plugin-import": "^2.29.1",
39-
"lefthook": "^1.6.18",
40-
"prettier": "^3.3.2",
41-
"tsx": "^4.16.0",
42-
"typescript": "^5.5.3",
42+
"lefthook": "^1.7.11",
43+
"prettier": "^3.3.3",
44+
"tsx": "^4.17.0",
45+
"typescript": "^5.5.4",
46+
"typescript-eslint": "^8.0.1",
4347
"zod": "^3.23.8"
4448
}
4549
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
"verbatimModuleSyntax": false,
99
"allowJs": true,
1010
"checkJs": true,
11+
"skipLibCheck": true,
1112
"outDir": "./dist",
1213
"types": ["node"]
1314
},
14-
"files": ["bin/sync.ts", "bin/test.js"]
15+
"files": ["bin/sync.ts", "bin/test.js", "eslint.config.js"]
1516
}

0 commit comments

Comments
 (0)