@dawntech/dispatcher 0.2.7 → 0.2.9
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/README.md +0 -150
- package/dist/index.d.mts +50 -17
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/eslint.config.mjs +33 -0
- package/package.json +5 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import tseslint from 'typescript-eslint';
|
|
2
|
+
|
|
3
|
+
export default tseslint.config(
|
|
4
|
+
...tseslint.configs.recommended,
|
|
5
|
+
{
|
|
6
|
+
files: ['src/**/*.ts', 'tests/**/*.ts'],
|
|
7
|
+
rules: {
|
|
8
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
9
|
+
'@typescript-eslint/no-unused-vars': [
|
|
10
|
+
'error',
|
|
11
|
+
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' },
|
|
12
|
+
],
|
|
13
|
+
'@typescript-eslint/ban-ts-comment': 'warn',
|
|
14
|
+
'@typescript-eslint/no-require-imports': 'warn',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
files: ['src/types/**/*.ts'],
|
|
19
|
+
rules: {
|
|
20
|
+
'@typescript-eslint/no-namespace': 'off',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
files: ['tests/**/*.ts'],
|
|
25
|
+
rules: {
|
|
26
|
+
'@typescript-eslint/no-unused-vars': 'off',
|
|
27
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
ignores: ['dist/**', 'node_modules/**'],
|
|
32
|
+
}
|
|
33
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dawntech/dispatcher",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "A TypeScript Node.js package for sending push messages in conversational chatbots on the Blip platform.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"test": "jest",
|
|
37
37
|
"test:watch": "jest --watch",
|
|
38
38
|
"test:coverage": "jest --coverage",
|
|
39
|
+
"test:lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
39
40
|
"test:blip-api": "tsx tests/blip-api.ts",
|
|
40
41
|
"clean": "rm -rf dist",
|
|
41
42
|
"setup": "bash scripts/setup.sh",
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
"@types/jest": "^29.5.14",
|
|
61
62
|
"@types/lodash": "^4.17.20",
|
|
62
63
|
"@types/node": "^20.19.24",
|
|
64
|
+
"eslint": "^9.39.3",
|
|
63
65
|
"husky": "^9.1.7",
|
|
64
66
|
"jest": "^29.7.0",
|
|
65
67
|
"lint-staged": "^16.2.6",
|
|
@@ -67,7 +69,8 @@
|
|
|
67
69
|
"ts-jest": "^29.2.5",
|
|
68
70
|
"tsup": "^8.5.1",
|
|
69
71
|
"tsx": "^4.7.0",
|
|
70
|
-
"typescript": "^5.3.0"
|
|
72
|
+
"typescript": "^5.3.0",
|
|
73
|
+
"typescript-eslint": "^8.56.1"
|
|
71
74
|
},
|
|
72
75
|
"keywords": [],
|
|
73
76
|
"author": "",
|