Skip to content

Commit ef1c2c7

Browse files
Giovanni BucciGiovanni Bucci
Giovanni Bucci
and
Giovanni Bucci
authored
chore: updated dependencies to latest versions (fastify#5422)
* updated all the packages which required minor / patch version bumps * updated: @typescript-eslint/eslint-plugin @typescript-eslint/parser * updated: c8 ajv-formats * updated: markdownlint-cli2 * fully working eslint config * removed some unused deps * removed some unused deps * updated: tsd undici --------- Co-authored-by: Giovanni Bucci <[email protected]>
1 parent ad89250 commit ef1c2c7

File tree

4 files changed

+84
-83
lines changed

4 files changed

+84
-83
lines changed

.markdownlint-cli2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ config:
77
MD013:
88
line_length: 80
99
code_block_line_length: 120
10-
headers: false
10+
headings: false
1111
tables: false
1212
strict: false
1313
stern: false

package.json

Lines changed: 30 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"lint:fix": "standard --fix && npm run lint:typescript:fix",
1818
"lint:markdown": "markdownlint-cli2",
1919
"lint:standard": "standard | snazzy",
20-
"lint:typescript": "eslint -c types/.eslintrc.json types/**/*.d.ts test/types/**/*.test-d.ts",
20+
"lint:typescript": "eslint -c types/eslint.config.js types/**/*.d.ts test/types/**/*.test-d.ts",
2121
"lint:typescript:fix": "npm run lint:typescript -- --fix",
2222
"prepublishOnly": "cross-env PREPUBLISH=true tap --no-check-coverage test/build/**.test.js && npm run test:validator:integrity",
2323
"test": "npm run lint && npm run unit && npm run test:typescript",
@@ -153,38 +153,33 @@
153153
}
154154
],
155155
"devDependencies": {
156-
"@fastify/pre-commit": "^2.0.2",
157-
"@sinclair/typebox": "^0.31.17",
158-
"@sinonjs/fake-timers": "^11.1.0",
159-
"@types/node": "^20.8.4",
160-
"@typescript-eslint/eslint-plugin": "^6.7.5",
161-
"@typescript-eslint/parser": "^6.7.5",
156+
"@eslint/js": "^9.1.1",
157+
"@sinclair/typebox": "^0.32.22",
158+
"@sinonjs/fake-timers": "^11.2.2",
159+
"@types/node": "^20.12.7",
160+
"@typescript-eslint/eslint-plugin": "^7.7.0",
161+
"@typescript-eslint/parser": "^7.7.0",
162+
"JSONStream": "^1.3.5",
162163
"ajv": "^8.12.0",
163164
"ajv-errors": "^3.0.0",
164-
"ajv-formats": "^2.1.1",
165+
"ajv-formats": "^3.0.1",
165166
"ajv-i18n": "^4.2.0",
166167
"ajv-merge-patch": "^5.0.1",
167-
"autocannon": "^7.14.0",
168+
"autocannon": "^7.15.0",
168169
"branch-comparer": "^1.1.0",
169-
"c8": "^8.0.1",
170+
"c8": "^9.1.0",
170171
"concurrently": "^8.2.2",
171172
"cross-env": "^7.0.3",
172-
"eslint": "^8.51.0",
173-
"eslint-config-standard": "^17.1.0",
174-
"eslint-import-resolver-node": "^0.3.9",
175-
"eslint-plugin-import": "^2.28.1",
176-
"eslint-plugin-n": "^16.2.0",
177-
"eslint-plugin-promise": "^6.1.1",
173+
"eslint": "^9.1.0",
178174
"fast-json-body": "^1.1.0",
179175
"fastify-plugin": "^4.5.1",
180-
"fluent-json-schema": "^4.1.2",
176+
"fluent-json-schema": "^4.2.1",
181177
"form-data": "^4.0.0",
182178
"h2url": "^0.2.0",
183179
"http-errors": "^2.0.0",
184-
"joi": "^17.11.0",
185-
"json-schema-to-ts": "^2.9.2",
186-
"JSONStream": "^1.3.5",
187-
"markdownlint-cli2": "^0.10.0",
180+
"joi": "^17.12.3",
181+
"json-schema-to-ts": "^3.0.1",
182+
"markdownlint-cli2": "^0.13.0",
188183
"node-forge": "^1.3.1",
189184
"proxyquire": "^2.1.3",
190185
"send": "^0.18.0",
@@ -193,29 +188,30 @@
193188
"split2": "^4.2.0",
194189
"standard": "^17.1.0",
195190
"tap": "^16.3.9",
196-
"tsd": "^0.29.0",
197-
"typescript": "^5.2.2",
198-
"undici": "^5.26.0",
191+
"tsd": "^0.31.0",
192+
"typescript": "^5.4.5",
193+
"typescript-eslint": "^7.7.0",
194+
"undici": "^6.13.0",
199195
"vary": "^1.1.2",
200-
"yup": "^1.3.2"
196+
"yup": "^1.4.0"
201197
},
202198
"dependencies": {
203199
"@fastify/ajv-compiler": "^3.5.0",
204-
"@fastify/error": "^3.4.0",
200+
"@fastify/error": "^3.4.1",
205201
"@fastify/fast-json-stringify-compiler": "^4.3.0",
202+
"@fastify/pre-commit": "^2.1.0",
206203
"abstract-logging": "^2.0.1",
207204
"avvio": "^8.3.0",
208-
"fast-content-type-parse": "^1.1.0",
209-
"fast-json-stringify": "^5.8.0",
210-
"find-my-way": "^8.0.0",
211-
"light-my-request": "^5.11.0",
212-
"pino": "^8.17.0",
205+
"fast-json-stringify": "^5.14.1",
206+
"find-my-way": "^8.1.0",
207+
"light-my-request": "^5.13.0",
208+
"pino": "^8.20.0",
213209
"process-warning": "^3.0.0",
214210
"proxy-addr": "^2.0.7",
215-
"rfdc": "^1.3.0",
211+
"rfdc": "^1.3.1",
216212
"secure-json-parse": "^2.7.0",
217-
"semver": "^7.5.4",
218-
"toad-cache": "^3.3.0"
213+
"semver": "^7.6.0",
214+
"toad-cache": "^3.7.0"
219215
},
220216
"standard": {
221217
"ignore": [

types/.eslintrc.json

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

types/eslint.config.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
const eslint = require('@eslint/js');
2+
const tsEslint = require('typescript-eslint');
3+
const typeScriptEsLint = require('@typescript-eslint/parser');
4+
5+
module.exports = [
6+
eslint.configs.recommended,
7+
tsEslint.configs.eslintRecommended,
8+
...tsEslint.configs.recommended,
9+
{
10+
languageOptions: {
11+
parser: typeScriptEsLint,
12+
parserOptions: {
13+
ecmaVersion: 6,
14+
sourceType: "module",
15+
project: "./tsconfig.eslint.json",
16+
createDefaultProgram: true,
17+
tsconfigRootDir: __dirname,
18+
},
19+
globals: {
20+
node: true,
21+
}
22+
}
23+
},
24+
{
25+
files: ['*.ts'],
26+
rules: {
27+
"no-console": "off",
28+
"@typescript-eslint/indent": ["error", 2],
29+
"semi": ["error", "never"],
30+
"import/export": "off" // this errors on multiple exports (overload interfaces)
31+
}
32+
},
33+
{
34+
"files": ["types/*.d.ts", "types/*.test-d.ts", "test/**/*.d.ts", "test/**/*.test-d.ts"],
35+
"rules": {
36+
"@typescript-eslint/no-explicit-any": "off"
37+
}
38+
},
39+
{
40+
"files": ["types/*.test-d.ts", "test/**/*.test-d.ts"],
41+
"rules": {
42+
"no-unused-vars": "off",
43+
"n/handle-callback-err": "off",
44+
"@typescript-eslint/no-empty-function": "off",
45+
"@typescript-eslint/explicit-function-return-type": "off",
46+
"@typescript-eslint/no-unused-vars": "off",
47+
"@typescript-eslint/no-non-null-assertion": "off",
48+
"@typescript-eslint/no-misused-promises": ["error", {
49+
"checksVoidReturn": false
50+
}]
51+
},
52+
}
53+
]

0 commit comments

Comments
 (0)