Skip to content

Commit 80f16cf

Browse files
Update some dependencies
1 parent 4c7a0ab commit 80f16cf

File tree

5 files changed

+37
-38
lines changed

5 files changed

+37
-38
lines changed

.eslintrc

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,29 @@
99
"prettier",
1010
"plugin:@typescript-eslint/recommended"
1111
],
12-
"plugins": ["functional", "node", "promise"],
12+
"plugins": [
13+
"functional",
14+
"node",
15+
"promise"
16+
],
1317
"parser": "@typescript-eslint/parser",
1418
"rules": {
1519
"@typescript-eslint/strict-boolean-expressions": 0,
1620
"@typescript-eslint/explicit-function-return-type": 0,
1721
"@typescript-eslint/restrict-template-expressions": 0,
18-
"@typescript-eslint/consistent-type-definitions": [2, "type"],
19-
"@typescript-eslint/no-explicit-any": ["error"],
20-
"@typescript-eslint/no-non-null-assertion": ["error"],
21-
"@typescript-eslint/no-unused-vars": ["error"],
22-
"functional/no-let": 2,
23-
"@typescript-eslint/ban-types": [
22+
"@typescript-eslint/consistent-type-definitions": [
2423
2,
25-
{
26-
"types": {
27-
"String": "Use string instead.",
28-
"Number": "User number instead.",
29-
"Boolean": "Use boolean instead.",
30-
"Object": "User object instead."
31-
}
32-
}
33-
]
24+
"type"
25+
],
26+
"@typescript-eslint/no-explicit-any": "error",
27+
"@typescript-eslint/no-non-null-assertion": "error",
28+
"@typescript-eslint/no-unused-vars": "error",
29+
"functional/no-let": 2
3430
},
3531
"parserOptions": {
3632
"project": "tsconfig.json"
3733
},
38-
"ignorePatterns": ["dist"]
34+
"ignorePatterns": [
35+
"dist"
36+
]
3937
}

package.json

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,29 +50,29 @@
5050
},
5151
"devDependencies": {
5252
"@istanbuljs/nyc-config-typescript": "^1.0.2",
53-
"@types/chai": "^4.3.3",
54-
"@types/chai-as-promised": "^7.1.0",
55-
"@types/fs-extra": "^9.0.13",
56-
"@types/mocha": "^9.0.0",
53+
"@types/chai": "^5.0.1",
54+
"@types/chai-as-promised": "^8.0.1",
55+
"@types/fs-extra": "^11.0.4",
56+
"@types/mocha": "^10.0.10",
5757
"@types/node": "^16.11.59",
5858
"@types/react": "^18.2.12",
5959
"@types/yargs": "^17.0.12",
60-
"@typescript-eslint/eslint-plugin": "^5.36.1",
61-
"@typescript-eslint/parser": "^5.36.1",
62-
"chai": "^4.1.2",
63-
"chai-as-promised": "^7.1.1",
64-
"eslint": "^8.23.0",
65-
"eslint-config-prettier": "^8.5.0",
66-
"eslint-plugin-functional": "^4.2.2",
60+
"@typescript-eslint/eslint-plugin": "^8.24.0",
61+
"@typescript-eslint/parser": "^8.24.0",
62+
"chai": "^4.5.0",
63+
"chai-as-promised": "^7.1.2",
64+
"eslint": "^8.57.1",
65+
"eslint-config-prettier": "^10.0.1",
66+
"eslint-plugin-functional": "^6.6.3",
6767
"eslint-plugin-node": "^11.1.0",
68-
"eslint-plugin-promise": "^6.0.1",
69-
"mocha": "^10.0.0",
70-
"npm-run-all": "^4.1.5",
71-
"nyc": "^15.1.0",
72-
"prettier": "^2.7.1",
68+
"eslint-plugin-promise": "^7.2.1",
69+
"mocha": "^11.1.0",
70+
"npm-run-all2": "^7.0.2",
71+
"nyc": "^17.1.0",
72+
"prettier": "^3.5.1",
7373
"react": "^18.2.0",
7474
"typescript": "^4.7.3",
75-
"verify-it": "^2.0.1"
75+
"verify-it": "^2.3.3"
7676
},
7777
"dependencies": {
7878
"chalk": "^4.1.2",
@@ -111,5 +111,8 @@
111111
"text-summary"
112112
],
113113
"report-dir": "test/coverage"
114+
},
115+
"prettier": {
116+
"trailingComma": "es5"
114117
}
115118
}

src/LocalImportSubstituter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ class ExportResolver {
8383
const subpathEntry =
8484
typeof matchingSubpath === "string"
8585
? matchingSubpath
86-
: matchingSubpath["node-addons"] ??
86+
: (matchingSubpath["node-addons"] ??
8787
matchingSubpath.node ??
8888
matchingSubpath.import ??
8989
matchingSubpath.require ??
90-
matchingSubpath.default;
90+
matchingSubpath.default);
9191

9292
if (subpathEntry) {
9393
const [internalPrefix, internalSuffix = ""] = subpathEntry.split("*");

test/LocalImportSubstituterSpec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/quotes */
21
import { expect } from "chai";
32
import { LocalImportSubstituter } from "../src/LocalImportSubstituter";
43

test/TypeScriptDocsVerifierSpec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ ${wrapSnippet(strings[3], "bash")}
216216
const typeScriptMarkdown = `import React from 'react';
217217
export const bob = () => (<div></div>);
218218
`;
219-
("tsx");
220219
await createProject({
221220
markdownFiles: [
222221
{

0 commit comments

Comments
 (0)