Skip to content

Commit 4c6874b

Browse files
committed
Update deps
1 parent 739c753 commit 4c6874b

File tree

9 files changed

+1655
-461
lines changed

9 files changed

+1655
-461
lines changed

.dep-stats.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"dependencies": {
33
"@apideck/better-ajv-errors": "^0.3.6",
4-
"@cyclonedx/cdxgen": "^10.10.4",
4+
"@cyclonedx/cdxgen": "^10.10.6",
55
"@inquirer/prompts": "^7.0.0",
66
"@npmcli/package-json": "6.0.1",
7-
"@npmcli/promise-spawn": "^8.0.1",
8-
"@socketregistry/hyrious__bun.lockb": "1.0.0",
7+
"@npmcli/promise-spawn": "^8.0.2",
8+
"@socketregistry/hyrious__bun.lockb": "1.0.1",
99
"@socketsecurity/config": "^2.1.3",
1010
"@socketsecurity/registry": "^1.0.8",
1111
"@socketsecurity/sdk": "^1.3.0",
@@ -15,7 +15,7 @@
1515
"chalk-table": "^1.0.2",
1616
"hpagent": "^1.2.0",
1717
"ignore": "^6.0.2",
18-
"pacote": "^19.0.0",
18+
"pacote": "^20.0.0",
1919
"pony-cause": "^2.1.11",
2020
"synp": "^1.9.13",
2121
"which": "^5.0.0",
@@ -80,11 +80,11 @@
8080
},
8181
"external": {
8282
"@apideck/better-ajv-errors": "^0.3.6",
83-
"@cyclonedx/cdxgen": "^10.10.4",
83+
"@cyclonedx/cdxgen": "^10.10.6",
8484
"@inquirer/prompts": "^7.0.0",
8585
"@npmcli/package-json": "6.0.1",
86-
"@npmcli/promise-spawn": "^8.0.1",
87-
"@socketregistry/hyrious__bun.lockb": "1.0.0",
86+
"@npmcli/promise-spawn": "^8.0.2",
87+
"@socketregistry/hyrious__bun.lockb": "1.0.1",
8888
"@socketsecurity/config": "^2.1.3",
8989
"@socketsecurity/registry": "^1.0.8",
9090
"@socketsecurity/sdk": "^1.3.0",
@@ -106,7 +106,7 @@
106106
"ignore": "^6.0.2",
107107
"ini": "5.0.0",
108108
"onetime": "^7.0.0",
109-
"pacote": "^19.0.0",
109+
"pacote": "^20.0.0",
110110
"pony-cause": "^2.1.11",
111111
"rc": "1.2.8",
112112
"registry-auth-token": "^5.0.2",

.oxlintrc.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"settings": {},
33
"rules": {
4-
"consistent-function-scoping": "allow",
4+
"@typescript-eslint/no-extraneous-class": "allow",
5+
"@typescript-eslint/no-this-alias": ["deny"],
6+
"unicorn/consistent-function-scoping": "allow",
7+
"unicorn/no-empty-file": "allow",
8+
"unicorn/no-new-array": "allow",
59
"no-async-endpoint-handlers": "allow",
610
"no-await-in-loop": "allow",
711
"no-control-regex": "allow",
8-
"no-empty-file": "allow",
912
"no-extend-native": "allow",
10-
"no-extraneous-class": "allow",
1113
"no-new": "allow",
12-
"no-new-array": "allow",
13-
"no-this-alias": ["deny"],
1414
"no-self-assign": "allow",
1515
"no-unused-vars": "allow"
1616
}

eslint.config.js

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,33 @@
22

33
const path = require('node:path')
44

5+
const eslintPluginUnicorn = require('eslint-plugin-unicorn')
56
const { includeIgnoreFile } = require('@eslint/compat')
7+
const js = require('@eslint/js')
68
const tsEslint = require('typescript-eslint')
79
const tsParser = require('@typescript-eslint/parser')
810

911
const gitignorePath = path.resolve(__dirname, '.gitignore')
1012
const prettierignorePath = path.resolve(__dirname, '.prettierignore')
1113

14+
const sharedPlugins = {
15+
__proto__: null,
16+
unicorn: eslintPluginUnicorn
17+
}
18+
19+
const sharedRules = {
20+
__proto__: null,
21+
...js.configs.recommended.rules,
22+
'no-await-in-loop': ['error'],
23+
'no-empty': ['error', { allowEmptyCatch: true }],
24+
'no-control-regex': ['error'],
25+
'no-new': ['error'],
26+
'no-undef': 'off',
27+
'no-unused-vars': 'off',
28+
'no-warning-comments': ['warn', { terms: ['fixme'] }],
29+
'unicorn/consistent-function-scoping': 'off'
30+
}
31+
1232
module.exports = [
1333
includeIgnoreFile(gitignorePath),
1434
includeIgnoreFile(prettierignorePath),
@@ -25,12 +45,16 @@ module.exports = [
2545
}
2646
},
2747
plugins: {
48+
__proto__: null,
49+
...sharedPlugins,
2850
'@typescript-eslint': tsEslint.plugin
2951
},
3052
linterOptions: {
3153
reportUnusedDisableDirectives: 'off'
3254
},
3355
rules: {
56+
__proto__: null,
57+
...sharedRules,
3458
'@typescript-eslint/no-floating-promises': ['error'],
3559
'@typescript-eslint/no-misused-promises': ['error'],
3660
// Define @typescript-eslint/no-this-alias because oxlint defines
@@ -45,8 +69,7 @@ module.exports = [
4569
// not awaiting promises *outside* of try/catch/finally, which is not what
4670
// we want), and it's nice to await before returning anyways, since you get
4771
// a slightly more comprehensive stack trace upon promise rejection.
48-
'@typescript-eslint/return-await': ['error', 'always'],
49-
'no-warning-comments': ['warn', { terms: ['fixme'] }]
72+
'@typescript-eslint/return-await': ['error', 'always']
5073
}
5174
},
5275
{
@@ -57,8 +80,13 @@ module.exports = [
5780
},
5881
{
5982
files: ['scripts/**/*.js', 'test/**/*.cjs'],
83+
plugins: {
84+
__proto__: null,
85+
...sharedPlugins
86+
},
6087
rules: {
61-
'no-warning-comments': ['warn', { terms: ['fixme'] }]
88+
__proto__: null,
89+
...sharedRules
6290
}
6391
}
6492
]

0 commit comments

Comments
 (0)