Skip to content

Commit ad61272

Browse files
authored
chore: bump dependencies (#224)
1 parent 9eb0412 commit ad61272

22 files changed

Lines changed: 1311 additions & 1555 deletions

.oxlintrc.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
{
22
"$schema": "./node_modules/oxlint/configuration_schema.json",
3-
"extends": ["@projectwallace/preset-oxlint"],
3+
"extends": ["./node_modules/@projectwallace/preset-oxlint/index.json"],
44
"env": {
55
"node": true,
66
"browser": true
77
},
8-
"rules": {},
9-
"ignorePatterns": ["node_modules"]
8+
"rules": {
9+
"no-null": "off", // AST's need null
10+
"jest/no-conditional-in-test": "off",
11+
"vitest/no-conditional-in-test": "off",
12+
"jest/no-conditional-expect": "off",
13+
"vitest/no-conditional-expect": "off",
14+
"max-depth": ["warn", { "max": 6 }]
15+
},
16+
"ignorePatterns": ["node_modules"],
17+
"overrides": [
18+
{
19+
"files": ["benchmark/**/*.ts"],
20+
"rules": {
21+
"no-console": "off"
22+
}
23+
}
24+
]
1025
}

benchmark/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Bench } from 'tinybench'
33
import { parse, tokenize, walk } from '../dist/index.js'
44
import * as fs from 'node:fs'
55
import * as path from 'node:path'
6-
// @ts-expect-error
6+
// @ts-expect-error: no type definitions for css-tree
77
import * as csstree from 'css-tree'
88
import * as postcss from 'postcss'
99

@@ -63,7 +63,7 @@ bench
6363
.add('Parse/walk - CSSTree - Bootstrap CSS', () => {
6464
let ast = csstree.parse(bootstrapCSS, { positions: true })
6565
let count = 0
66-
// @ts-expect-error
66+
// @ts-expect-error: no type definitions for css-tree
6767
csstree.walk(ast, (node) => {
6868
let type = node.type
6969
let line = node.loc?.start.line
@@ -93,7 +93,7 @@ bench
9393
.add('Parse/walk - CSSTree - Tailwind CSS', () => {
9494
let ast = csstree.parse(tailwindCSS, { positions: true })
9595
let count = 0
96-
// @ts-expect-error
96+
// @ts-expect-error: no type definitions for css-tree
9797
csstree.walk(ast, (node) => {
9898
let type = node.type
9999
let line = node.loc?.start.line
@@ -140,7 +140,7 @@ console.table(
140140
'File Size': getFileSize(name),
141141
'ops/sec': stats?.throughput.mean.toFixed(0) ?? 'N/A',
142142
'Average Time (ms)': stats?.latency.mean.toFixed(4) ?? 'N/A',
143-
Margin: stats?.latency.rme != null ? ${stats.latency.rme.toFixed(2)}%` : 'N/A',
143+
Margin: stats?.latency.rme === null ? 'N/A' : ${stats.latency.rme.toFixed(2)}%`,
144144
}
145145
}),
146146
)

benchmark/memory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import { parse, walk } from '../dist/index.js'
66
import * as fs from 'node:fs'
77
import * as path from 'node:path'
8-
// @ts-expect-error
8+
// @ts-expect-error: no type definitions for css-tree
99
import * as csstree from 'css-tree'
1010
import * as postcss from 'postcss'
1111

0 commit comments

Comments
 (0)