From 9f9411443595447f3c5e91489683624fd49de7f7 Mon Sep 17 00:00:00 2001 From: Santiago Miranda Date: Tue, 15 Aug 2023 07:28:40 +0000 Subject: [PATCH] chore: update deps, rename test file, remove vitest config. --- package.json | 14 +++++++------- src/__tests__/{test.ts => test.test.ts} | 0 src/index.ts | 2 +- vite.config.ts | 8 -------- 4 files changed, 8 insertions(+), 16 deletions(-) rename src/__tests__/{test.ts => test.test.ts} (100%) delete mode 100644 vite.config.ts diff --git a/package.json b/package.json index 71bf782..6e487bf 100644 --- a/package.json +++ b/package.json @@ -37,16 +37,16 @@ }, "homepage": "https://github.com/mljs/regression-simple-linear#readme", "devDependencies": { - "@vitest/coverage-v8": "^0.32.2", - "eslint": "^8.43.0", - "eslint-config-cheminfo-typescript": "^11.3.1", - "prettier": "^2.8.8", + "@vitest/coverage-v8": "^0.34.1", + "eslint": "^8.47.0", + "eslint-config-cheminfo-typescript": "^12.0.4", + "prettier": "^3.0.1", "rimraf": "^5.0.1", - "typescript": "^5.1.3", - "vitest": "^0.32.2" + "typescript": "^5.1.6", + "vitest": "^0.34.1" }, "dependencies": { "cheminfo-types": "^1.7.2", - "ml-regression-base": "^2.1.6" + "ml-regression-base": "^3.0.0" } } diff --git a/src/__tests__/test.ts b/src/__tests__/test.test.ts similarity index 100% rename from src/__tests__/test.ts rename to src/__tests__/test.test.ts diff --git a/src/index.ts b/src/index.ts index 8b11b79..104c408 100644 --- a/src/index.ts +++ b/src/index.ts @@ -105,7 +105,7 @@ export default class SimpleLinearRegression extends BaseRegression { } /** - * Private function. + * Internal function. * It determines the parameters (slope, intercept) of the line that best fit the `x,y` vector-data (simple linear regression). * @param x - explanatory variable * @param y - response variable diff --git a/vite.config.ts b/vite.config.ts deleted file mode 100644 index b60110d..0000000 --- a/vite.config.ts +++ /dev/null @@ -1,8 +0,0 @@ -// vite.config.ts -import { defineConfig } from 'vitest/config' - -export default defineConfig({ - test: { - globals: true, - }, -})