-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
* chore: update dependencies * chore: fix prettier
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import cheminfo from 'eslint-config-cheminfo-typescript'; | ||
import globals from 'globals'; | ||
|
||
export default [ | ||
...cheminfo, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
rules: { | ||
"jsdoc/require-jsdoc": "off", // this would add automatically an empty bloc of JsDoc | ||
"jsdoc/no-defaults": "off", // this would remove our default values https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-defaults.md#readme | ||
"no-loss-of-precision": "off", | ||
'@typescript-eslint/prefer-for-of': 'off', | ||
"unicorn/import-style": [ | ||
"error", | ||
{ | ||
"styles": { | ||
"node:path": false | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ import { xMedian } from '../x'; | |
|
||
/** | ||
Check warning on line 4 in src/matrix/matrixAbsoluteMedian.ts GitHub Actions / nodejs / lint-eslint
|
||
* Returns the median of the absolute matrix. | ||
* @param matrix | ||
Check warning on line 6 in src/matrix/matrixAbsoluteMedian.ts GitHub Actions / nodejs / lint-eslint
|
||
*/ | ||
export function matrixAbsoluteMedian(matrix: DoubleMatrix): number { | ||
const nbColumns = matrix[0].length; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ import { matrixCreateEmpty } from './matrixCreateEmpty'; | |
|
||
/** | ||
Check warning on line 5 in src/matrix/matrixCenterZMean.ts GitHub Actions / nodejs / lint-eslint
|
||
* Center mean of matrix columns. | ||
* | ||
* @param matrix - matrix [rows][cols] | ||
*/ | ||
export function matrixCenterZMean(matrix: DoubleMatrix): Float64Array[] { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/** | ||
Check warning on line 1 in src/matrix/matrixClone.ts GitHub Actions / nodejs / lint-eslint
|
||
* Clone a matrix. | ||
* @param matrix | ||
Check warning on line 3 in src/matrix/matrixClone.ts GitHub Actions / nodejs / lint-eslint
|
||
*/ | ||
export function matrixClone<ValueType>(matrix: ValueType[][]): ValueType[][] { | ||
return matrix.map((row) => row.slice(0)); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ import { xCorrelation } from '../x'; | |
|
||
/** | ||
Check warning on line 6 in src/matrix/matrixColumnsCorrelation.ts GitHub Actions / nodejs / lint-eslint
|
||
* Calculates a correlation matrix based on the columns of the initial matrix. | ||
* | ||
* @param A - matrix [rows][cols] | ||
*/ | ||
export function matrixColumnsCorrelation(A: DoubleMatrix): Float64Array[] { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,16 +12,19 @@ export interface MatrixCreateEmptyOptions< | |
* Matrix from which to extract nbRows and nbColumns | ||
*/ | ||
matrix?: DoubleMatrix; | ||
|
||
/** | ||
* Matrix from which to extract nbRows and nbColumns | ||
* @default matrix.length || 1 | ||
*/ | ||
nbRows?: number; | ||
|
||
/** | ||
* Matrix from which to extract nbRows and nbColumns | ||
* @default matrix[0].length || 1 | ||
*/ | ||
nbColumns?: number; | ||
|
||
/** | ||
* Allows to specify the type of array to use | ||
* @default Float64Array | ||
|
@@ -31,6 +34,7 @@ export interface MatrixCreateEmptyOptions< | |
|
||
/** | ||
Check warning on line 35 in src/matrix/matrixCreateEmpty.ts GitHub Actions / nodejs / lint-eslint
|
||
* Create a new matrix based on the size of the current one or by using specific dimensions. | ||
* @param options | ||
Check warning on line 37 in src/matrix/matrixCreateEmpty.ts GitHub Actions / nodejs / lint-eslint
|
||
*/ | ||
export function matrixCreateEmpty< | ||
ArrayConstructorType extends NumberArrayConstructor = Float64ArrayConstructor, | ||
|