tabletcommand-incident 0.6.9 → 0.6.10

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.
@@ -0,0 +1,69 @@
1
+ import { defineConfig, globalIgnores } from "eslint/config";
2
+ import typescriptEslint from "@typescript-eslint/eslint-plugin";
3
+ import promise from "eslint-plugin-promise";
4
+ import security from "eslint-plugin-security";
5
+ import globals from "globals";
6
+ import tsParser from "@typescript-eslint/parser";
7
+ import path from "node:path";
8
+ import { fileURLToPath } from "node:url";
9
+ import js from "@eslint/js";
10
+ import { FlatCompat } from "@eslint/eslintrc";
11
+
12
+ const __filename = fileURLToPath(import.meta.url);
13
+ const __dirname = path.dirname(__filename);
14
+ const compat = new FlatCompat({
15
+ baseDirectory: __dirname,
16
+ recommendedConfig: js.configs.recommended,
17
+ allConfig: js.configs.all
18
+ });
19
+
20
+ export default defineConfig([globalIgnores([
21
+ "**/.eslintrc.js",
22
+ "**/gulpfile.js",
23
+ "src/ruleProcessorLegacy.js",
24
+ "src/ruleLegacy/*.js",
25
+ "src/test/rulesLegacyCleanupCommentsFilters.js",
26
+ "src/test/rulesLegacy.js",
27
+ ]), {
28
+ extends: compat.extends(
29
+ "eslint:recommended",
30
+ "plugin:@typescript-eslint/recommended",
31
+ "plugin:@typescript-eslint/recommended-requiring-type-checking",
32
+ ),
33
+
34
+ plugins: {
35
+ "@typescript-eslint": typescriptEslint,
36
+ promise,
37
+ security,
38
+ },
39
+
40
+ languageOptions: {
41
+ globals: {
42
+ ...globals.node,
43
+ ...globals.mocha,
44
+ },
45
+
46
+ parser: tsParser,
47
+ ecmaVersion: 5,
48
+ sourceType: "commonjs",
49
+
50
+ parserOptions: {
51
+ project: "./src/tsconfig.json",
52
+ tsconfigRootDir: "/Users/marius/Documents/Repositories/tabletcommand-incident",
53
+ },
54
+ },
55
+
56
+ rules: {
57
+ quotes: [2, "double"],
58
+ semi: [2, "always"],
59
+ "space-before-function-paren": [0],
60
+ "@typescript-eslint/explicit-module-boundary-types": 0,
61
+ "@typescript-eslint/no-empty-interface": 0,
62
+ "@typescript-eslint/require-await": 0,
63
+ "@typescript-eslint/restrict-template-expressions": 0,
64
+
65
+ "@typescript-eslint/no-misused-promises": ["error", {
66
+ checksVoidReturn: false,
67
+ }],
68
+ },
69
+ }]);
package/gulpfile.js CHANGED
@@ -1,18 +1,16 @@
1
1
  const gulp = require("gulp");
2
- const shell = require("gulp-shell");
3
- const del = require("del");
2
+ const exec = require("gulp-execa");
3
+ const { deleteAsync } = require("del");
4
4
 
5
5
  gulp.task("clean", function() {
6
- return del("build/**", {
6
+ return deleteAsync(["build/**", "!build"], {
7
7
  force: true
8
8
  });
9
9
  });
10
10
 
11
- gulp.task("ts", gulp.series("clean", shell.task("tsc -p ./src")));
11
+ gulp.task("ts", gulp.series("clean", exec.task("tsc -p ./src")));
12
12
 
13
- gulp.task("lint", gulp.series(shell.task("eslint ./src")));
14
-
15
- gulp.task("watch", gulp.series("clean", shell.task("tsc -p ./src --watch")));
13
+ gulp.task("lint", gulp.series(exec.task("eslint ./src")));
16
14
 
17
15
  gulp.task("build", gulp.series("ts"));
18
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabletcommand-incident",
3
- "version": "0.6.9",
3
+ "version": "0.6.10",
4
4
  "description": "Tablet Command Incident",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -17,31 +17,33 @@
17
17
  "karka": "0.0.1",
18
18
  "lodash": "~4.17.21",
19
19
  "moment-timezone": "^0.5.48",
20
- "tabletcommand-backend-models": "~7.3.15",
20
+ "tabletcommand-backend-models": "~7.3.19",
21
21
  "uuid": "^9.0.1",
22
22
  "xregexp": "~5.1.2"
23
23
  },
24
24
  "devDependencies": {
25
- "@types/chai": "^4.3.20",
25
+ "@eslint/eslintrc": "^3.3.1",
26
+ "@eslint/js": "^9.24.0",
27
+ "@types/chai": "^5.2.1",
26
28
  "@types/debug": "^4.1.12",
27
29
  "@types/express": "^4.17.21",
28
30
  "@types/lodash": "^4.17.16",
29
31
  "@types/mocha": "^10.0.10",
30
- "@types/node": "^22.13.12",
32
+ "del": "^8.0.0",
33
+ "@types/node": "^22.14.0",
31
34
  "@types/uuid": "^9.0.8",
32
- "@typescript-eslint/eslint-plugin": "^6.21.0",
33
- "@typescript-eslint/parser": "^6.21.0",
34
- "bson": "~4.7.2",
35
- "chai": "^4.5.0",
36
- "cspell": "^8.17.5",
37
- "del": "^6.1.1",
38
- "eslint": "^8.57.1",
35
+ "@typescript-eslint/eslint-plugin": "^8.29.1",
36
+ "@typescript-eslint/parser": "^8.29.1",
37
+ "chai": "^5.2.0",
38
+ "cspell": "^8.18.1",
39
+ "eslint": "^9.24.0",
39
40
  "eslint-plugin-node": "^11.1.0",
40
- "eslint-plugin-promise": "^6.6.0",
41
- "eslint-plugin-security": "^1.7.1",
42
- "gulp": "^4.0.2",
43
- "gulp-shell": "^0.8.0",
44
- "mocha": "^10.8.2",
41
+ "eslint-plugin-promise": "^7.2.1",
42
+ "eslint-plugin-security": "^3.0.1",
43
+ "globals": "^16.0.0",
44
+ "gulp": "^5.0.0",
45
+ "gulp-execa": "^8.0.1",
46
+ "mocha": "^11.1.0",
45
47
  "ts-node": "^10.9.2",
46
48
  "type-coverage": "^2.29.7",
47
49
  "typescript": "~4.9.5"
package/.eslintrc.js DELETED
@@ -1,46 +0,0 @@
1
- module.exports = {
2
- env: {
3
- es6: true,
4
- node: true,
5
- mocha: true
6
- },
7
- extends: [
8
- "eslint:recommended",
9
- "plugin:@typescript-eslint/recommended",
10
- "plugin:@typescript-eslint/recommended-requiring-type-checking"
11
- ],
12
- ignorePatterns: [
13
- ".eslintrc.js",
14
- "gulpfile.js",
15
- // Ignore JS files not converted yet
16
- "src/ruleProcessorLegacy.js",
17
- "src/ruleLegacy/*.js",
18
- "src/test/rulesLegacyCleanupCommentsFilters.js",
19
- "src/test/rulesLegacy.js",
20
- ],
21
- plugins: [
22
- "@typescript-eslint",
23
- "promise",
24
- "security"
25
- ],
26
- parser: "@typescript-eslint/parser",
27
- parserOptions: {
28
- project: "./src/tsconfig.json",
29
- tsconfigRootDir: __dirname,
30
- },
31
- rules: {
32
- quotes: [2, "double"],
33
- semi: [2, "always"],
34
- "space-before-function-paren": [0],
35
- "@typescript-eslint/explicit-module-boundary-types": 0,
36
- "@typescript-eslint/no-empty-interface": 0,
37
- "@typescript-eslint/require-await": 0,
38
- "@typescript-eslint/restrict-template-expressions": 0,
39
- "@typescript-eslint/no-misused-promises": [
40
- "error",
41
- {
42
- "checksVoidReturn": false
43
- }
44
- ]
45
- }
46
- };