@xylabs/sdk-js 3.5.1 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint.config.flat.mjs +114 -0
- package/package.json +39 -34
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// eslint.config.mjs
|
|
2
|
+
|
|
3
|
+
import { typescriptConfig, unicornConfig, prettierConfig, rulesConfig, workspacesConfig } from '@xylabs/eslint-config-flat'
|
|
4
|
+
import tsParser from '@typescript-eslint/parser'
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line import/no-default-export
|
|
7
|
+
export default [
|
|
8
|
+
{
|
|
9
|
+
ignores: ['.yarn', '.yarn/**', '**/dist/**', 'dist/**', 'build/**', 'node_modules/**'],
|
|
10
|
+
},
|
|
11
|
+
prettierConfig,
|
|
12
|
+
typescriptConfig,
|
|
13
|
+
rulesConfig,
|
|
14
|
+
workspacesConfig,
|
|
15
|
+
{
|
|
16
|
+
files: ['**/*.ts', '**/*.js', '**/*.cjs', '**/*.mjs'],
|
|
17
|
+
languageOptions: {
|
|
18
|
+
parser: tsParser,
|
|
19
|
+
parserOptions: {
|
|
20
|
+
ecmaVersion: 'latest',
|
|
21
|
+
sourceType: 'module',
|
|
22
|
+
project: './tsconfig-eslint.json',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
plugins: { ...typescriptConfig.plugins, ...unicornConfig.plugins, ...prettierConfig.plugins },
|
|
26
|
+
settings: {
|
|
27
|
+
'import/resolver': {
|
|
28
|
+
typescript: {
|
|
29
|
+
project: './tsconfig-eslint.json',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
rules: {
|
|
34
|
+
...typescriptConfig.rules,
|
|
35
|
+
...unicornConfig.rules,
|
|
36
|
+
...prettierConfig.rules,
|
|
37
|
+
'no-unused-disable-directive': ['off'],
|
|
38
|
+
complexity: ['error', 18],
|
|
39
|
+
'max-depth': ['error', 6],
|
|
40
|
+
'max-lines': [
|
|
41
|
+
'error',
|
|
42
|
+
{
|
|
43
|
+
max: 512,
|
|
44
|
+
skipBlankLines: true,
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
'max-nested-callbacks': ['error', 6],
|
|
48
|
+
'max-statements': ['error', 32],
|
|
49
|
+
'no-restricted-imports': [
|
|
50
|
+
'warn',
|
|
51
|
+
{
|
|
52
|
+
paths: [
|
|
53
|
+
'lodash',
|
|
54
|
+
'react-player',
|
|
55
|
+
'filepond',
|
|
56
|
+
'aos',
|
|
57
|
+
'react-icons',
|
|
58
|
+
'.',
|
|
59
|
+
'..',
|
|
60
|
+
'../..',
|
|
61
|
+
'../../..',
|
|
62
|
+
'../../../..',
|
|
63
|
+
'../../../../..',
|
|
64
|
+
'../../../../../..',
|
|
65
|
+
'../../../../../../..',
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
//'no-secrets/no-secrets': ['off'],
|
|
70
|
+
'no-tabs': ['error'],
|
|
71
|
+
'no-unused-vars': 'off',
|
|
72
|
+
'no-useless-escape': 'off',
|
|
73
|
+
quotes: [2, 'single', 'avoid-escape'],
|
|
74
|
+
'require-await': 'error',
|
|
75
|
+
semi: ['warn', 'never'],
|
|
76
|
+
'no-unused-disable-directive': ['off'],
|
|
77
|
+
'import/no-internal-modules': ['off'],
|
|
78
|
+
'import/no-deprecated': ['off'],
|
|
79
|
+
'no-restricted-imports': [
|
|
80
|
+
'warn',
|
|
81
|
+
{
|
|
82
|
+
paths: [
|
|
83
|
+
'@types/node',
|
|
84
|
+
'@xyo-network/archivist',
|
|
85
|
+
'@xyo-network/bridge',
|
|
86
|
+
'@xyo-network/core',
|
|
87
|
+
'@xyo-network/diviner',
|
|
88
|
+
'@xyo-network/module',
|
|
89
|
+
'@xyo-network/modules',
|
|
90
|
+
'@xyo-network/node',
|
|
91
|
+
'@xyo-network/sdk',
|
|
92
|
+
'@xyo-network/plugins',
|
|
93
|
+
'@xyo-network/protocol',
|
|
94
|
+
'@xyo-network/sentinel',
|
|
95
|
+
'@xyo-network/witness',
|
|
96
|
+
'@xyo-network/core-payload-plugins',
|
|
97
|
+
'react-player',
|
|
98
|
+
'filepond',
|
|
99
|
+
'aos',
|
|
100
|
+
'react-icons',
|
|
101
|
+
'.',
|
|
102
|
+
'..',
|
|
103
|
+
'../..',
|
|
104
|
+
'../../..',
|
|
105
|
+
'../../../..',
|
|
106
|
+
'../../../../..',
|
|
107
|
+
'../../../../../..',
|
|
108
|
+
'../../../../../../..',
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
]
|
package/package.json
CHANGED
|
@@ -38,48 +38,53 @@
|
|
|
38
38
|
"esm"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@xylabs/api": "
|
|
42
|
-
"@xylabs/array": "
|
|
43
|
-
"@xylabs/assert": "
|
|
44
|
-
"@xylabs/axios": "
|
|
45
|
-
"@xylabs/crypto": "
|
|
46
|
-
"@xylabs/decimal-precision": "
|
|
47
|
-
"@xylabs/delay": "
|
|
48
|
-
"@xylabs/error": "
|
|
49
|
-
"@xylabs/eth-address": "
|
|
50
|
-
"@xylabs/exists": "
|
|
51
|
-
"@xylabs/forget": "
|
|
52
|
-
"@xylabs/function-name": "
|
|
53
|
-
"@xylabs/hex": "
|
|
54
|
-
"@xylabs/log": "
|
|
55
|
-
"@xylabs/logger": "
|
|
56
|
-
"@xylabs/object": "
|
|
57
|
-
"@xylabs/platform": "
|
|
58
|
-
"@xylabs/profile": "
|
|
59
|
-
"@xylabs/promise": "
|
|
60
|
-
"@xylabs/retry": "
|
|
61
|
-
"@xylabs/set": "
|
|
62
|
-
"@xylabs/static-implements": "
|
|
63
|
-
"@xylabs/timer": "
|
|
64
|
-
"@xylabs/url": "
|
|
41
|
+
"@xylabs/api": "^3.5.3",
|
|
42
|
+
"@xylabs/array": "^3.5.3",
|
|
43
|
+
"@xylabs/assert": "^3.5.3",
|
|
44
|
+
"@xylabs/axios": "^3.5.3",
|
|
45
|
+
"@xylabs/crypto": "^3.5.3",
|
|
46
|
+
"@xylabs/decimal-precision": "^3.5.3",
|
|
47
|
+
"@xylabs/delay": "^3.5.3",
|
|
48
|
+
"@xylabs/error": "^3.5.3",
|
|
49
|
+
"@xylabs/eth-address": "^3.5.3",
|
|
50
|
+
"@xylabs/exists": "^3.5.3",
|
|
51
|
+
"@xylabs/forget": "^3.5.3",
|
|
52
|
+
"@xylabs/function-name": "^3.5.3",
|
|
53
|
+
"@xylabs/hex": "^3.5.3",
|
|
54
|
+
"@xylabs/log": "^3.5.3",
|
|
55
|
+
"@xylabs/logger": "^3.5.3",
|
|
56
|
+
"@xylabs/object": "^3.5.3",
|
|
57
|
+
"@xylabs/platform": "^3.5.3",
|
|
58
|
+
"@xylabs/profile": "^3.5.3",
|
|
59
|
+
"@xylabs/promise": "^3.5.3",
|
|
60
|
+
"@xylabs/retry": "^3.5.3",
|
|
61
|
+
"@xylabs/set": "^3.5.3",
|
|
62
|
+
"@xylabs/static-implements": "^3.5.3",
|
|
63
|
+
"@xylabs/timer": "^3.5.3",
|
|
64
|
+
"@xylabs/url": "^3.5.3"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/jest": "^29.5.12",
|
|
68
68
|
"@types/supertest": "^6.0.2",
|
|
69
|
-
"@
|
|
70
|
-
"@xylabs/
|
|
71
|
-
"@xylabs/
|
|
72
|
-
"@xylabs/
|
|
73
|
-
"@xylabs/
|
|
69
|
+
"@typescript-eslint/parser": "^7.15.0",
|
|
70
|
+
"@xylabs/config": "^3.11.12",
|
|
71
|
+
"@xylabs/eslint-config": "^3.11.12",
|
|
72
|
+
"@xylabs/eslint-config-flat": "^3.11.12",
|
|
73
|
+
"@xylabs/ts-scripts-yarn3": "^3.11.12",
|
|
74
|
+
"@xylabs/tsconfig": "^3.11.12",
|
|
75
|
+
"@xylabs/tsconfig-jest": "^3.11.12",
|
|
74
76
|
"dotenv": "^16.4.5",
|
|
75
|
-
"eslint": "^
|
|
77
|
+
"eslint": "^9.6.0",
|
|
76
78
|
"jest": "^29.7.0",
|
|
77
79
|
"jest-environment-jsdom": "^29.7.0",
|
|
78
80
|
"jest-extended": "^4.0.2",
|
|
79
81
|
"jest-sorted": "^1.0.15",
|
|
80
82
|
"reflect-metadata": "^0.2.2",
|
|
81
|
-
"ts-jest": "^29.1.
|
|
82
|
-
"typescript": "^5.
|
|
83
|
+
"ts-jest": "^29.1.5",
|
|
84
|
+
"typescript": "^5.5.3"
|
|
85
|
+
},
|
|
86
|
+
"resolutions": {
|
|
87
|
+
"eslint": "^8"
|
|
83
88
|
},
|
|
84
89
|
"publishConfig": {
|
|
85
90
|
"access": "public"
|
|
@@ -89,7 +94,7 @@
|
|
|
89
94
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
90
95
|
},
|
|
91
96
|
"sideEffects": false,
|
|
92
|
-
"packageManager": "yarn@4.
|
|
97
|
+
"packageManager": "yarn@4.3.1",
|
|
93
98
|
"engines": {
|
|
94
99
|
"node": ">=18.17.1"
|
|
95
100
|
},
|
|
@@ -101,6 +106,6 @@
|
|
|
101
106
|
"node": "18.17.1",
|
|
102
107
|
"yarn": "1.22.19"
|
|
103
108
|
},
|
|
104
|
-
"version": "3.5.
|
|
109
|
+
"version": "3.5.3",
|
|
105
110
|
"type": "module"
|
|
106
111
|
}
|