@imqueue/job 1.3.0 → 1.4.0

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.
@@ -1,25 +1,45 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es6": true,
5
- "node": true
1
+ import typescriptEslint from "@typescript-eslint/eslint-plugin";
2
+ import globals from "globals";
3
+ import tsParser from "@typescript-eslint/parser";
4
+ import path from "node:path";
5
+ import { fileURLToPath } from "node:url";
6
+ import js from "@eslint/js";
7
+ import { FlatCompat } from "@eslint/eslintrc";
8
+
9
+ const __filename = fileURLToPath(import.meta.url);
10
+ const __dirname = path.dirname(__filename);
11
+ const compat = new FlatCompat({
12
+ baseDirectory: __dirname,
13
+ recommendedConfig: js.configs.recommended,
14
+ allConfig: js.configs.all
15
+ });
16
+
17
+ export default [...compat.extends(
18
+ "plugin:@typescript-eslint/recommended",
19
+ "plugin:@typescript-eslint/recommended-requiring-type-checking",
20
+ ), {
21
+ plugins: {
22
+ "@typescript-eslint": typescriptEslint,
6
23
  },
7
- "extends": [
8
- "plugin:@typescript-eslint/recommended",
9
- "plugin:@typescript-eslint/recommended-requiring-type-checking"
10
- ],
11
- "parser": "@typescript-eslint/parser",
12
- "parserOptions": {
13
- "project": "tsconfig.json",
14
- "sourceType": "module"
24
+
25
+ languageOptions: {
26
+ globals: {
27
+ ...globals.browser,
28
+ ...globals.node,
29
+ },
30
+
31
+ parser: tsParser,
32
+ ecmaVersion: 5,
33
+ sourceType: "module",
34
+
35
+ parserOptions: {
36
+ project: "tsconfig.json",
37
+ },
15
38
  },
16
- "plugins": [
17
- "@typescript-eslint"
18
- ],
19
- "rules": {
39
+
40
+ rules: {
20
41
  "@typescript-eslint/adjacent-overload-signatures": "error",
21
42
  "@typescript-eslint/array-type": "error",
22
- "@typescript-eslint/ban-types": "error",
23
43
  "@typescript-eslint/class-name-casing": "off",
24
44
  "@typescript-eslint/consistent-type-assertions": "error",
25
45
  "@typescript-eslint/interface-name-prefix": "off",
@@ -28,19 +48,6 @@
28
48
  "@typescript-eslint/explicit-module-boundary-types": "off",
29
49
  "@typescript-eslint/no-unsafe-return": "off",
30
50
  "@typescript-eslint/await-thenable": "off",
31
- "@typescript-eslint/member-delimiter-style": [
32
- "error",
33
- {
34
- "multiline": {
35
- "delimiter": "semi",
36
- "requireLast": true
37
- },
38
- "singleline": {
39
- "delimiter": "semi",
40
- "requireLast": false
41
- }
42
- }
43
- ],
44
51
  "@typescript-eslint/no-misused-promises": "off",
45
52
  "@typescript-eslint/no-empty-function": "error",
46
53
  "@typescript-eslint/no-empty-interface": "error",
@@ -53,32 +60,25 @@
53
60
  "@typescript-eslint/prefer-for-of": "error",
54
61
  "@typescript-eslint/prefer-function-type": "error",
55
62
  "@typescript-eslint/prefer-namespace-keyword": "error",
56
- "@typescript-eslint/unbound-method": "off",
63
+ "@typescript-eslint/unbound-method": "off",
57
64
  "@typescript-eslint/no-shadow": ["error"],
58
- "@typescript-eslint/quotes": [
59
- "error",
60
- "single",
61
- {
62
- "avoidEscape": true
63
- }
64
- ],
65
- "@typescript-eslint/semi": "error",
65
+
66
+ "quotes": ["error", "single", {
67
+ avoidEscape: true,
68
+ }],
69
+
70
+ "semi": "error",
66
71
  "@typescript-eslint/triple-slash-reference": "error",
67
72
  "@typescript-eslint/unified-signatures": "error",
68
- "arrow-parens": [
69
- "off",
70
- "as-needed"
71
- ],
72
- "camelcase": "error",
73
+ "arrow-parens": ["off", "as-needed"],
74
+ camelcase: "error",
73
75
  "comma-dangle": "off",
74
- "complexity": "off",
76
+ complexity: "off",
75
77
  "constructor-super": "error",
76
78
  "dot-notation": "error",
77
- "eqeqeq": [
78
- "error",
79
- "smart"
80
- ],
79
+ eqeqeq: ["error", "smart"],
81
80
  "guard-for-in": "error",
81
+
82
82
  "id-blacklist": [
83
83
  "error",
84
84
  "any",
@@ -89,16 +89,16 @@
89
89
  "Boolean",
90
90
  "boolean",
91
91
  "Undefined",
92
- "undefined"
92
+ "undefined",
93
93
  ],
94
+
94
95
  "id-match": "error",
95
96
  "max-classes-per-file": "off",
96
- "max-len": [
97
- "error",
98
- {
99
- "code": 80
100
- }
101
- ],
97
+
98
+ "max-len": ["error", {
99
+ code: 80,
100
+ }],
101
+
102
102
  "new-parens": "error",
103
103
  "no-bitwise": "off",
104
104
  "no-caller": "error",
@@ -121,15 +121,12 @@
121
121
  "no-unused-labels": "error",
122
122
  "no-var": "error",
123
123
  "object-shorthand": "error",
124
- "one-var": [
125
- "error",
126
- "never"
127
- ],
124
+ "one-var": ["error", "never"],
128
125
  "prefer-arrow/prefer-arrow-functions": "off",
129
126
  "prefer-const": "error",
130
- "radix": "error",
127
+ radix: "error",
131
128
  "spaced-comment": "off",
132
129
  "use-isnan": "error",
133
- "valid-typeof": "off"
134
- }
135
- }
130
+ "valid-typeof": "off",
131
+ },
132
+ }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imqueue/job",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Simple job queue",
5
5
  "keywords": [
6
6
  "message-queue",
@@ -36,27 +36,34 @@
36
36
  "author": "imqueue.com <support@imqueue.com> (https://imqueue.com)",
37
37
  "license": "ISC",
38
38
  "dependencies": {
39
- "@imqueue/core": "^1.13.0"
39
+ "@imqueue/core": "^1.15.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@types/chai": "^4.3.10",
43
- "@types/mocha": "^10.0.4",
44
- "@types/mock-require": "^2.0.3",
45
- "@types/node": "^20.9.0",
46
- "@types/sinon": "^17.0.1",
42
+ "@eslint/eslintrc": "^3.1.0",
43
+ "@eslint/js": "^9.14.0",
44
+ "@types/chai": "^5.0.1",
45
+ "@types/mocha": "^10.0.9",
46
+ "@types/mock-require": "^3.0.0",
47
+ "@types/node": "^22.9.0",
48
+ "@types/sinon": "^17.0.3",
49
+ "@typescript-eslint/eslint-plugin": "^8.13.0",
50
+ "@typescript-eslint/parser": "^8.13.0",
51
+ "@typescript-eslint/typescript-estree": "^8.13.0",
47
52
  "chai": "^4.3.10",
53
+ "eslint": "^9.14.0",
54
+ "globals": "^15.12.0",
48
55
  "mocha": "^10.2.0",
49
56
  "mocha-lcov-reporter": "^1.3.0",
50
57
  "mock-require": "^3.0.3",
51
- "nyc": "^15.1.0",
58
+ "npm-scripts-help": "^0.8.0",
59
+ "nyc": "^17.1.0",
52
60
  "open": "^9.1.0",
53
- "reflect-metadata": "^0.1.13",
54
- "sinon": "^17.0.1",
61
+ "reflect-metadata": "^0.2.2",
62
+ "sinon": "^19.0.2",
55
63
  "source-map-support": "^0.5.21",
56
- "ts-node": "^10.9.1",
57
- "tslint": "^6.1.3",
58
- "typedoc": "^0.25.3",
59
- "typescript": "^5.2.2",
64
+ "ts-node": "^10.9.2",
65
+ "typedoc": "^0.26.11",
66
+ "typescript": "^5.6.3",
60
67
  "yargs": "^17.7.2"
61
68
  },
62
69
  "main": "index.js",