Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Oct 17, 2024
1 parent ae0d9a1 commit f7ccbf5
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 19 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.yml

This file was deleted.

14 changes: 14 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import cheminfo from 'eslint-config-cheminfo-typescript';
import globals from 'globals';

export default [
...cheminfo,
{
languageOptions: {
globals: {
...globals.node,
},
},
rules: {}
}
]
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@
},
"homepage": "https://github.com/mljs/tree-similarity#readme",
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@vitest/coverage-v8": "^1.2.2",
"eslint": "^8.56.0",
"eslint-config-cheminfo-typescript": "^12.2.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typescript": "^5.3.3",
"vitest": "^1.2.2"
"@babel/plugin-transform-modules-commonjs": "^7.25.7",
"@babel/preset-typescript": "^7.25.7",
"@vitest/coverage-v8": "^2.1.3",
"eslint": "^9.12.0",
"eslint-config-cheminfo-typescript": "^16.0.0",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"typescript": "^5.6.3",
"vitest": "^2.1.3"
},
"dependencies": {
"binary-search": "^1.3.6",
"cheminfo-types": "^1.7.2"
"cheminfo-types": "^1.8.0"
}
}
3 changes: 3 additions & 0 deletions src/compressTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { Tree } from './createTree';

/**

Check warning on line 3 in src/compressTree.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @returns declaration
* Destructive compression in which we reduce the number of decimals
* @param tree

Check warning on line 5 in src/compressTree.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @param "tree" description
* @param options

Check warning on line 6 in src/compressTree.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @param "options" description
* @param options.fixed

Check warning on line 7 in src/compressTree.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @param "options.fixed" description
*/
export function compressTree(
tree: Tree,
Expand Down
6 changes: 4 additions & 2 deletions src/createTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export interface CreateTreeOptions {

/**

Check warning on line 38 in src/createTree.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @returns declaration
* Function that creates the tree
* @param dataXY

Check warning on line 40 in src/createTree.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @param "dataXY" description
* @param options

Check warning on line 41 in src/createTree.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @param "options" description
*/

export function createTree(
Expand All @@ -48,7 +50,7 @@ export function createTree(
minWindow = 0.16,
threshold = 0.01,
from = x[0],
to = x[x.length - 1],
to = x.at(-1) as number,
} = options;

return mainCreateTree(x, y, from, to, minWindow, threshold);
Expand All @@ -72,7 +74,7 @@ function mainCreateTree(x, y, from, to, minWindow, threshold) {
if (x[i] >= to) {
break;
}
sum += y[i];
sum += y[i] as number;
center += x[i] * y[i];
}

Expand Down
5 changes: 4 additions & 1 deletion src/treeSimilarity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export interface TreeSimilarityOptions {

/**
* Similarity between two nodes
* @return similarity measure between tree nodes
* @param treeA

Check warning on line 11 in src/treeSimilarity.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @param "treeA" description
* @param treeB

Check warning on line 12 in src/treeSimilarity.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @param "treeB" description
* @param options

Check warning on line 13 in src/treeSimilarity.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @param "options" description
* @returns similarity measure between tree nodes
*/
export function treeSimilarity(
treeA: Tree | null,
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"outDir": "lib",
"sourceMap": true,
"strict": true,
"target": "es2020",
"noImplicitAny": false,
"target": "es2022",
"noImplicitAny": false
},
"include": ["./src/**/*"]
}
}

0 comments on commit f7ccbf5

Please sign in to comment.