Skip to content

Commit

Permalink
Update some dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbrimicombe committed Feb 14, 2025
1 parent 4c7a0ab commit 80f16cf
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 38 deletions.
32 changes: 15 additions & 17 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,29 @@
"prettier",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["functional", "node", "promise"],
"plugins": [
"functional",
"node",
"promise"
],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/strict-boolean-expressions": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/consistent-type-definitions": [2, "type"],
"@typescript-eslint/no-explicit-any": ["error"],
"@typescript-eslint/no-non-null-assertion": ["error"],
"@typescript-eslint/no-unused-vars": ["error"],
"functional/no-let": 2,
"@typescript-eslint/ban-types": [
"@typescript-eslint/consistent-type-definitions": [
2,
{
"types": {
"String": "Use string instead.",
"Number": "User number instead.",
"Boolean": "Use boolean instead.",
"Object": "User object instead."
}
}
]
"type"
],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-unused-vars": "error",
"functional/no-let": 2
},
"parserOptions": {
"project": "tsconfig.json"
},
"ignorePatterns": ["dist"]
"ignorePatterns": [
"dist"
]
}
37 changes: 20 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,29 @@
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/chai": "^4.3.3",
"@types/chai-as-promised": "^7.1.0",
"@types/fs-extra": "^9.0.13",
"@types/mocha": "^9.0.0",
"@types/chai": "^5.0.1",
"@types/chai-as-promised": "^8.0.1",
"@types/fs-extra": "^11.0.4",
"@types/mocha": "^10.0.10",
"@types/node": "^16.11.59",
"@types/react": "^18.2.12",
"@types/yargs": "^17.0.12",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"eslint": "^8.23.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-functional": "^4.2.2",
"@typescript-eslint/eslint-plugin": "^8.24.0",
"@typescript-eslint/parser": "^8.24.0",
"chai": "^4.5.0",
"chai-as-promised": "^7.1.2",
"eslint": "^8.57.1",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-functional": "^6.6.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.1",
"mocha": "^10.0.0",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"prettier": "^2.7.1",
"eslint-plugin-promise": "^7.2.1",
"mocha": "^11.1.0",
"npm-run-all2": "^7.0.2",
"nyc": "^17.1.0",
"prettier": "^3.5.1",
"react": "^18.2.0",
"typescript": "^4.7.3",
"verify-it": "^2.0.1"
"verify-it": "^2.3.3"
},
"dependencies": {
"chalk": "^4.1.2",
Expand Down Expand Up @@ -111,5 +111,8 @@
"text-summary"
],
"report-dir": "test/coverage"
},
"prettier": {
"trailingComma": "es5"
}
}
4 changes: 2 additions & 2 deletions src/LocalImportSubstituter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ class ExportResolver {
const subpathEntry =
typeof matchingSubpath === "string"
? matchingSubpath
: matchingSubpath["node-addons"] ??
: (matchingSubpath["node-addons"] ??
matchingSubpath.node ??
matchingSubpath.import ??
matchingSubpath.require ??
matchingSubpath.default;
matchingSubpath.default);

if (subpathEntry) {
const [internalPrefix, internalSuffix = ""] = subpathEntry.split("*");
Expand Down
1 change: 0 additions & 1 deletion test/LocalImportSubstituterSpec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/quotes */
import { expect } from "chai";
import { LocalImportSubstituter } from "../src/LocalImportSubstituter";

Expand Down
1 change: 0 additions & 1 deletion test/TypeScriptDocsVerifierSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ ${wrapSnippet(strings[3], "bash")}
const typeScriptMarkdown = `import React from 'react';
export const bob = () => (<div></div>);
`;
("tsx");
await createProject({
markdownFiles: [
{
Expand Down

0 comments on commit 80f16cf

Please sign in to comment.