Skip to content

Commit 163c079

Browse files
committed
chore: fix lint and remove redundant vitest config
1 parent a3568a8 commit 163c079

File tree

7 files changed

+209
-217
lines changed

7 files changed

+209
-217
lines changed

.github/workflows/typedoc.yml

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,15 @@
1-
name: Deploy TypeDoc on GitHub pages
1+
name: TypeDoc
22

33
on:
44
workflow_dispatch:
55
release:
66
types: [published]
77

8-
env:
9-
NODE_VERSION: 22.x
10-
ENTRY_FILE: 'src/index.js'
11-
128
jobs:
13-
deploy:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: ${{ env.NODE_VERSION }}
20-
- name: Install dependencies
21-
run: npm install
22-
- name: Build documentation
23-
uses: zakodium/typedoc-action@v2
24-
with:
25-
entry: ${{ env.ENTRY_FILE }}
26-
- name: Deploy to GitHub pages
27-
uses: JamesIves/github-pages-deploy-action@releases/v4
28-
with:
29-
token: ${{ secrets.BOT_TOKEN }}
30-
branch: gh-pages
31-
folder: docs
32-
clean: true
9+
typedoc:
10+
# Documentation: https://github.com/zakodium/workflows#typedoc
11+
uses: zakodium/workflows/.github/workflows/typedoc.yml@typedoc-v1
12+
with:
13+
entry: 'src/index.js'
14+
secrets:
15+
github-token: ${{ secrets.BOT_TOKEN }}

benchmark/benchmarkLinePlot.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { run, bench, lineplot, do_not_optimize } from 'mitata';
1+
import { bench, do_not_optimize, lineplot, run } from 'mitata';
22
import { xSequentialFillFromStep } from 'ml-spectra-processing';
33

44
import { SparseMatrix } from '../src/index.js';
@@ -8,10 +8,6 @@ import { randomMatrix } from './utils/randomMatrix.js';
88

99
const density = 0.02; // Fixed density for this comparison;
1010

11-
/* eslint
12-
func-names: 0
13-
camelcase: 0
14-
*/
1511
// Prepare matrices once
1612
const sizes = Array.from(
1713
xSequentialFillFromStep({ from: 4, step: 4, size: 13 }),

benchmark/combinationOfCardinalityAndSize.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
import { run, bench, do_not_optimize, lineplot } from 'mitata';
1+
import { writeFile } from 'node:fs/promises';
2+
import path from 'node:path';
3+
4+
import { bench, do_not_optimize, lineplot, run } from 'mitata';
25
import { xSequentialFillFromStep } from 'ml-spectra-processing';
36

47
import { SparseMatrix } from '../src/index.js';
58

69
import { randomMatrix } from './utils/randomMatrix.js';
7-
import { writeFile } from 'node:fs/promises';
8-
import path from 'node:path';
910

10-
/* eslint
11-
func-names: 0
12-
camelcase: 0
13-
*/
1411
// Prepare matrices once
1512
const cardinalities = Array.from(
1613
xSequentialFillFromStep({ from: 10, step: 5, size: 2 }),

benchmark/densityDecreaseWhenSizeIncrease.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
import { run, bench, group, do_not_optimize } from 'mitata';
1+
import { bench, do_not_optimize, group, run } from 'mitata';
2+
23
// import { Matrix } from 'ml-matrix';
4+
import { SparseMatrix } from '../src/index.js';
35

46
import { SparseMatrix as SparseMatrixOld } from './class/SparseMatrixOld.js';
57
import { randomMatrix } from './utils/randomMatrix.js';
6-
import { SparseMatrix } from '../src/index.js';
7-
8-
/* eslint
9-
func-names: 0
10-
camelcase: 0
11-
*/
128

139
const sizes = [8, 16, 32, 256, 512, 1024];
1410
const densities = [0.125, 0.0625, 0.03125, 0.0039, 0.00197, 0.001];

0 commit comments

Comments
 (0)