vis-dev-utils 7.0.2 → 7.1.1

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.
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * Development utilities for the Vis family projects.
8
8
  *
9
- * @version 7.0.2
10
- * @date 2026-07-27T16:18:33.237Z
9
+ * @version 7.1.1
10
+ * @date 2026-07-28T16:57:32.533Z
11
11
  *
12
12
  * @copyright (c) 2011-2017 Almende B.V, http://almende.com
13
13
  * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * Development utilities for the Vis family projects.
8
8
  *
9
- * @version 7.0.2
10
- * @date 2026-07-27T16:18:33.237Z
9
+ * @version 7.1.1
10
+ * @date 2026-07-28T16:57:32.533Z
11
11
  *
12
12
  * @copyright (c) 2011-2017 Almende B.V, http://almende.com
13
13
  * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
package/bin/ci-utils.js CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * Development utilities for the Vis family projects.
8
8
  *
9
- * @version 7.0.2
10
- * @date 2026-07-27T16:18:33.237Z
9
+ * @version 7.1.1
10
+ * @date 2026-07-28T16:57:32.533Z
11
11
  *
12
12
  * @copyright (c) 2011-2017 Almende B.V, http://almende.com
13
13
  * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * Development utilities for the Vis family projects.
8
8
  *
9
- * @version 7.0.2
10
- * @date 2026-07-27T16:18:33.237Z
9
+ * @version 7.1.1
10
+ * @date 2026-07-28T16:57:32.533Z
11
11
  *
12
12
  * @copyright (c) 2011-2017 Almende B.V, http://almende.com
13
13
  * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * Development utilities for the Vis family projects.
8
8
  *
9
- * @version 7.0.2
10
- * @date 2026-07-27T16:18:33.237Z
9
+ * @version 7.1.1
10
+ * @date 2026-07-28T16:57:32.533Z
11
11
  *
12
12
  * @copyright (c) 2011-2017 Almende B.V, http://almende.com
13
13
  * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
@@ -0,0 +1,4 @@
1
+ import type { OxfmtConfig } from "oxfmt";
2
+ declare const _default: OxfmtConfig;
3
+ export default _default;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/oxfmt-shared-config/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;;AAEzC,wBAuDG"}
@@ -0,0 +1,4 @@
1
+ import type { OxlintConfig } from "oxlint";
2
+ declare const _default: OxlintConfig;
3
+ export default _default;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/oxlint-shared-config/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;;AAE3C,wBA8DG"}
@@ -4,8 +4,8 @@
4
4
  *
5
5
  * Development utilities for the Vis family projects.
6
6
  *
7
- * @version 7.0.2
8
- * @date 2026-07-27T16:18:33.237Z
7
+ * @version 7.1.1
8
+ * @date 2026-07-28T16:57:32.533Z
9
9
  *
10
10
  * @copyright (c) 2011-2017 Almende B.V, http://almende.com
11
11
  * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
@@ -4,8 +4,8 @@
4
4
  *
5
5
  * Development utilities for the Vis family projects.
6
6
  *
7
- * @version 7.0.2
8
- * @date 2026-07-27T16:18:33.237Z
7
+ * @version 7.1.1
8
+ * @date 2026-07-28T16:57:32.533Z
9
9
  *
10
10
  * @copyright (c) 2011-2017 Almende B.V, http://almende.com
11
11
  * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * vis-dev-utils
5
+ * http://visjs.org/
6
+ *
7
+ * Development utilities for the Vis family projects.
8
+ *
9
+ * @version 7.1.1
10
+ * @date 2026-07-28T16:57:32.533Z
11
+ *
12
+ * @copyright (c) 2011-2017 Almende B.V, http://almende.com
13
+ * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
14
+ *
15
+ * @license
16
+ * vis.js is dual licensed under both
17
+ *
18
+ * 1. The Apache 2.0 License
19
+ * http://www.apache.org/licenses/LICENSE-2.0
20
+ *
21
+ * and
22
+ *
23
+ * 2. The MIT License
24
+ * http://opensource.org/licenses/MIT
25
+ *
26
+ * vis.js may be distributed under either license.
27
+ */
28
+
29
+ 'use strict';
30
+
31
+ var oxfmt = require('oxfmt');
32
+
33
+ var index = oxfmt.defineConfig({
34
+ printWidth: 80,
35
+ sortImports: {
36
+ newlinesBetween: false,
37
+ sortSideEffects: true,
38
+ customGroups: [
39
+ {
40
+ groupName: "vis",
41
+ elementNamePattern: ["vis-**"]
42
+ },
43
+ {
44
+ groupName: "side_effect-vis",
45
+ elementNamePattern: ["vis-**"],
46
+ modifiers: ["side_effect"]
47
+ }
48
+ ],
49
+ groups: [
50
+ ["side_effect-builtin"],
51
+ ["side_effect-external"],
52
+ ["side_effect-vis"],
53
+ ["side_effect-internal"],
54
+ ["side_effect-subpath"],
55
+ ["side_effect-parent"],
56
+ ["side_effect-index"],
57
+ ["side_effect-sibling"],
58
+ { newlinesBetween: true },
59
+ ["builtin"],
60
+ { newlinesBetween: true },
61
+ ["external"],
62
+ { newlinesBetween: true },
63
+ ["vis"],
64
+ { newlinesBetween: true },
65
+ ["internal"],
66
+ ["subpath"],
67
+ ["parent"],
68
+ ["index"],
69
+ ["sibling"],
70
+ { newlinesBetween: true },
71
+ ["import"],
72
+ { newlinesBetween: true },
73
+ "unknown"
74
+ ]
75
+ }
76
+ });
77
+
78
+ module.exports = index;
79
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../src/oxfmt-shared-config/index.ts"],"sourcesContent":["import { defineConfig } from \"oxfmt\";\nimport type { OxfmtConfig } from \"oxfmt\";\n\nexport default defineConfig<OxfmtConfig>({\n printWidth: 80,\n sortImports: {\n newlinesBetween: false,\n sortSideEffects: true,\n customGroups: [\n {\n groupName: \"vis\",\n elementNamePattern: [\"vis-**\"],\n },\n {\n groupName: \"side_effect-vis\",\n elementNamePattern: [\"vis-**\"],\n modifiers: [\"side_effect\"],\n },\n ],\n groups: [\n [\"side_effect-builtin\"],\n [\"side_effect-external\"],\n [\"side_effect-vis\"],\n [\"side_effect-internal\"],\n [\"side_effect-subpath\"],\n [\"side_effect-parent\"],\n [\"side_effect-index\"],\n [\"side_effect-sibling\"],\n\n { newlinesBetween: true },\n\n [\"builtin\"],\n\n { newlinesBetween: true },\n\n [\"external\"],\n\n { newlinesBetween: true },\n\n [\"vis\"],\n\n { newlinesBetween: true },\n\n [\"internal\"],\n [\"subpath\"],\n [\"parent\"],\n [\"index\"],\n [\"sibling\"],\n\n { newlinesBetween: true },\n\n [\"import\"],\n\n { newlinesBetween: true },\n\n \"unknown\",\n ],\n },\n});\n"],"names":["defineConfig"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,YAAeA,kBAAA,CAA0B;AAAA,EACvC,UAAA,EAAY,EAAA;AAAA,EACZ,WAAA,EAAa;AAAA,IACX,eAAA,EAAiB,KAAA;AAAA,IACjB,eAAA,EAAiB,IAAA;AAAA,IACjB,YAAA,EAAc;AAAA,MACZ;AAAA,QACE,SAAA,EAAW,KAAA;AAAA,QACX,kBAAA,EAAoB,CAAC,QAAQ;AAAA,OAC/B;AAAA,MACA;AAAA,QACE,SAAA,EAAW,iBAAA;AAAA,QACX,kBAAA,EAAoB,CAAC,QAAQ,CAAA;AAAA,QAC7B,SAAA,EAAW,CAAC,aAAa;AAAA;AAC3B,KACF;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,CAAC,qBAAqB,CAAA;AAAA,MACtB,CAAC,sBAAsB,CAAA;AAAA,MACvB,CAAC,iBAAiB,CAAA;AAAA,MAClB,CAAC,sBAAsB,CAAA;AAAA,MACvB,CAAC,qBAAqB,CAAA;AAAA,MACtB,CAAC,oBAAoB,CAAA;AAAA,MACrB,CAAC,mBAAmB,CAAA;AAAA,MACpB,CAAC,qBAAqB,CAAA;AAAA,MAEtB,EAAE,iBAAiB,IAAA,EAAK;AAAA,MAExB,CAAC,SAAS,CAAA;AAAA,MAEV,EAAE,iBAAiB,IAAA,EAAK;AAAA,MAExB,CAAC,UAAU,CAAA;AAAA,MAEX,EAAE,iBAAiB,IAAA,EAAK;AAAA,MAExB,CAAC,KAAK,CAAA;AAAA,MAEN,EAAE,iBAAiB,IAAA,EAAK;AAAA,MAExB,CAAC,UAAU,CAAA;AAAA,MACX,CAAC,SAAS,CAAA;AAAA,MACV,CAAC,QAAQ,CAAA;AAAA,MACT,CAAC,OAAO,CAAA;AAAA,MACR,CAAC,SAAS,CAAA;AAAA,MAEV,EAAE,iBAAiB,IAAA,EAAK;AAAA,MAExB,CAAC,QAAQ,CAAA;AAAA,MAET,EAAE,iBAAiB,IAAA,EAAK;AAAA,MAExB;AAAA;AACF;AAEJ,CAAC,CAAA;;;;"}
@@ -0,0 +1,77 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * vis-dev-utils
5
+ * http://visjs.org/
6
+ *
7
+ * Development utilities for the Vis family projects.
8
+ *
9
+ * @version 7.1.1
10
+ * @date 2026-07-28T16:57:32.533Z
11
+ *
12
+ * @copyright (c) 2011-2017 Almende B.V, http://almende.com
13
+ * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
14
+ *
15
+ * @license
16
+ * vis.js is dual licensed under both
17
+ *
18
+ * 1. The Apache 2.0 License
19
+ * http://www.apache.org/licenses/LICENSE-2.0
20
+ *
21
+ * and
22
+ *
23
+ * 2. The MIT License
24
+ * http://opensource.org/licenses/MIT
25
+ *
26
+ * vis.js may be distributed under either license.
27
+ */
28
+
29
+ import { defineConfig } from 'oxfmt';
30
+
31
+ var index = defineConfig({
32
+ printWidth: 80,
33
+ sortImports: {
34
+ newlinesBetween: false,
35
+ sortSideEffects: true,
36
+ customGroups: [
37
+ {
38
+ groupName: "vis",
39
+ elementNamePattern: ["vis-**"]
40
+ },
41
+ {
42
+ groupName: "side_effect-vis",
43
+ elementNamePattern: ["vis-**"],
44
+ modifiers: ["side_effect"]
45
+ }
46
+ ],
47
+ groups: [
48
+ ["side_effect-builtin"],
49
+ ["side_effect-external"],
50
+ ["side_effect-vis"],
51
+ ["side_effect-internal"],
52
+ ["side_effect-subpath"],
53
+ ["side_effect-parent"],
54
+ ["side_effect-index"],
55
+ ["side_effect-sibling"],
56
+ { newlinesBetween: true },
57
+ ["builtin"],
58
+ { newlinesBetween: true },
59
+ ["external"],
60
+ { newlinesBetween: true },
61
+ ["vis"],
62
+ { newlinesBetween: true },
63
+ ["internal"],
64
+ ["subpath"],
65
+ ["parent"],
66
+ ["index"],
67
+ ["sibling"],
68
+ { newlinesBetween: true },
69
+ ["import"],
70
+ { newlinesBetween: true },
71
+ "unknown"
72
+ ]
73
+ }
74
+ });
75
+
76
+ export { index as default };
77
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../src/oxfmt-shared-config/index.ts"],"sourcesContent":["import { defineConfig } from \"oxfmt\";\nimport type { OxfmtConfig } from \"oxfmt\";\n\nexport default defineConfig<OxfmtConfig>({\n printWidth: 80,\n sortImports: {\n newlinesBetween: false,\n sortSideEffects: true,\n customGroups: [\n {\n groupName: \"vis\",\n elementNamePattern: [\"vis-**\"],\n },\n {\n groupName: \"side_effect-vis\",\n elementNamePattern: [\"vis-**\"],\n modifiers: [\"side_effect\"],\n },\n ],\n groups: [\n [\"side_effect-builtin\"],\n [\"side_effect-external\"],\n [\"side_effect-vis\"],\n [\"side_effect-internal\"],\n [\"side_effect-subpath\"],\n [\"side_effect-parent\"],\n [\"side_effect-index\"],\n [\"side_effect-sibling\"],\n\n { newlinesBetween: true },\n\n [\"builtin\"],\n\n { newlinesBetween: true },\n\n [\"external\"],\n\n { newlinesBetween: true },\n\n [\"vis\"],\n\n { newlinesBetween: true },\n\n [\"internal\"],\n [\"subpath\"],\n [\"parent\"],\n [\"index\"],\n [\"sibling\"],\n\n { newlinesBetween: true },\n\n [\"import\"],\n\n { newlinesBetween: true },\n\n \"unknown\",\n ],\n },\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,YAAe,YAAA,CAA0B;AAAA,EACvC,UAAA,EAAY,EAAA;AAAA,EACZ,WAAA,EAAa;AAAA,IACX,eAAA,EAAiB,KAAA;AAAA,IACjB,eAAA,EAAiB,IAAA;AAAA,IACjB,YAAA,EAAc;AAAA,MACZ;AAAA,QACE,SAAA,EAAW,KAAA;AAAA,QACX,kBAAA,EAAoB,CAAC,QAAQ;AAAA,OAC/B;AAAA,MACA;AAAA,QACE,SAAA,EAAW,iBAAA;AAAA,QACX,kBAAA,EAAoB,CAAC,QAAQ,CAAA;AAAA,QAC7B,SAAA,EAAW,CAAC,aAAa;AAAA;AAC3B,KACF;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,CAAC,qBAAqB,CAAA;AAAA,MACtB,CAAC,sBAAsB,CAAA;AAAA,MACvB,CAAC,iBAAiB,CAAA;AAAA,MAClB,CAAC,sBAAsB,CAAA;AAAA,MACvB,CAAC,qBAAqB,CAAA;AAAA,MACtB,CAAC,oBAAoB,CAAA;AAAA,MACrB,CAAC,mBAAmB,CAAA;AAAA,MACpB,CAAC,qBAAqB,CAAA;AAAA,MAEtB,EAAE,iBAAiB,IAAA,EAAK;AAAA,MAExB,CAAC,SAAS,CAAA;AAAA,MAEV,EAAE,iBAAiB,IAAA,EAAK;AAAA,MAExB,CAAC,UAAU,CAAA;AAAA,MAEX,EAAE,iBAAiB,IAAA,EAAK;AAAA,MAExB,CAAC,KAAK,CAAA;AAAA,MAEN,EAAE,iBAAiB,IAAA,EAAK;AAAA,MAExB,CAAC,UAAU,CAAA;AAAA,MACX,CAAC,SAAS,CAAA;AAAA,MACV,CAAC,QAAQ,CAAA;AAAA,MACT,CAAC,OAAO,CAAA;AAAA,MACR,CAAC,SAAS,CAAA;AAAA,MAEV,EAAE,iBAAiB,IAAA,EAAK;AAAA,MAExB,CAAC,QAAQ,CAAA;AAAA,MAET,EAAE,iBAAiB,IAAA,EAAK;AAAA,MAExB;AAAA;AACF;AAEJ,CAAC,CAAA;;;;"}
@@ -0,0 +1,108 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * vis-dev-utils
5
+ * http://visjs.org/
6
+ *
7
+ * Development utilities for the Vis family projects.
8
+ *
9
+ * @version 7.1.1
10
+ * @date 2026-07-28T16:57:32.533Z
11
+ *
12
+ * @copyright (c) 2011-2017 Almende B.V, http://almende.com
13
+ * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
14
+ *
15
+ * @license
16
+ * vis.js is dual licensed under both
17
+ *
18
+ * 1. The Apache 2.0 License
19
+ * http://www.apache.org/licenses/LICENSE-2.0
20
+ *
21
+ * and
22
+ *
23
+ * 2. The MIT License
24
+ * http://opensource.org/licenses/MIT
25
+ *
26
+ * vis.js may be distributed under either license.
27
+ */
28
+
29
+ 'use strict';
30
+
31
+ //#region src-js/package/config.ts
32
+ /**
33
+ * Define an Oxlint configuration with type inference.
34
+ *
35
+ * @param config - Oxlint configuration
36
+ * @returns Config unchanged
37
+ */
38
+ function defineConfig(config) {
39
+ return config;
40
+ }
41
+
42
+ var index = defineConfig({
43
+ plugins: ["eslint", "import", "oxc", "oxc", "typescript", "unicorn"],
44
+ categories: {
45
+ correctness: "error",
46
+ suspicious: "error"
47
+ },
48
+ rules: {
49
+ // Enabled by the categories but we don't want to enforce
50
+ "eslint/no-unexpected-multiline": "off",
51
+ // Oxfmt handles hits
52
+ "import/no-unassigned-import": "off",
53
+ // We use side-effect imports intentionally to import styles, etc.
54
+ // Enabled beyond the categories
55
+ "eslint/guard-for-in": "error",
56
+ "eslint/no-array-constructor": "error",
57
+ "eslint/no-console": [
58
+ "error",
59
+ {
60
+ allow: [
61
+ "assert",
62
+ "count",
63
+ "countReset",
64
+ "dir",
65
+ "dirxml",
66
+ "error",
67
+ "group",
68
+ "groupCollapsed",
69
+ "groupEnd",
70
+ "info",
71
+ "table",
72
+ "time",
73
+ "timeEnd",
74
+ "timeLog",
75
+ "timeStamp",
76
+ "trace",
77
+ "warn"
78
+ ]
79
+ }
80
+ ],
81
+ "eslint/no-empty": "error",
82
+ "eslint/no-fallthrough": "error",
83
+ "eslint/no-regex-spaces": "error",
84
+ "eslint/no-useless-return": "error",
85
+ "eslint/no-var": "error",
86
+ "eslint/sort-imports": ["error", { ignoreDeclarationSort: true }],
87
+ "eslint/unicode-bom": "error",
88
+ "import/consistent-type-specifier-style": "error",
89
+ "import/no-cycle": "error",
90
+ "import/no-duplicates": "error",
91
+ "import/no-mutable-exports": "error",
92
+ "import/no-named-default": "error",
93
+ "typescript/array-type": "error",
94
+ "typescript/explicit-member-accessibility": "error",
95
+ "typescript/no-import-type-side-effects": "error",
96
+ "typescript/no-non-null-asserted-nullish-coalescing": "error",
97
+ "typescript/non-nullable-type-assertion-style": "error",
98
+ "typescript/only-throw-error": "error",
99
+ "unicorn/no-abusive-eslint-disable": "error",
100
+ "unicorn/no-length-as-slice-end": "error",
101
+ "unicorn/prefer-node-protocol": "error",
102
+ "vitest/consistent-test-it": "error",
103
+ "vitest/no-test-prefixes": "error"
104
+ }
105
+ });
106
+
107
+ module.exports = index;
108
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../node_modules/oxlint/dist/index.js","../src/oxlint-shared-config/index.ts"],"sourcesContent":["//#region src-js/package/config.ts\n/**\n* Define an Oxlint configuration with type inference.\n*\n* @param config - Oxlint configuration\n* @returns Config unchanged\n*/\nfunction defineConfig(config) {\n\treturn config;\n}\n//#endregion\nexport { defineConfig };\n","import { defineConfig } from \"oxlint\";\nimport type { OxlintConfig } from \"oxlint\";\n\nexport default defineConfig<OxlintConfig>({\n plugins: [\"eslint\", \"import\", \"oxc\", \"oxc\", \"typescript\", \"unicorn\"],\n categories: {\n correctness: \"error\",\n suspicious: \"error\",\n },\n rules: {\n // Enabled by the categories but we don't want to enforce\n \"eslint/no-unexpected-multiline\": \"off\", // Oxfmt handles hits\n \"import/no-unassigned-import\": \"off\", // We use side-effect imports intentionally to import styles, etc.\n\n // Enabled beyond the categories\n \"eslint/guard-for-in\": \"error\",\n \"eslint/no-array-constructor\": \"error\",\n \"eslint/no-console\": [\n \"error\",\n {\n allow: [\n \"assert\",\n \"count\",\n \"countReset\",\n \"dir\",\n \"dirxml\",\n \"error\",\n \"group\",\n \"groupCollapsed\",\n \"groupEnd\",\n \"info\",\n \"table\",\n \"time\",\n \"timeEnd\",\n \"timeLog\",\n \"timeStamp\",\n \"trace\",\n \"warn\",\n ],\n },\n ],\n \"eslint/no-empty\": \"error\",\n \"eslint/no-fallthrough\": \"error\",\n \"eslint/no-regex-spaces\": \"error\",\n \"eslint/no-useless-return\": \"error\",\n \"eslint/no-var\": \"error\",\n \"eslint/sort-imports\": [\"error\", { ignoreDeclarationSort: true }],\n \"eslint/unicode-bom\": \"error\",\n \"import/consistent-type-specifier-style\": \"error\",\n \"import/no-cycle\": \"error\",\n \"import/no-duplicates\": \"error\",\n \"import/no-mutable-exports\": \"error\",\n \"import/no-named-default\": \"error\",\n \"typescript/array-type\": \"error\",\n \"typescript/explicit-member-accessibility\": \"error\",\n \"typescript/no-import-type-side-effects\": \"error\",\n \"typescript/no-non-null-asserted-nullish-coalescing\": \"error\",\n \"typescript/non-nullable-type-assertion-style\": \"error\",\n \"typescript/only-throw-error\": \"error\",\n \"unicorn/no-abusive-eslint-disable\": \"error\",\n \"unicorn/no-length-as-slice-end\": \"error\",\n \"unicorn/prefer-node-protocol\": \"error\",\n \"vitest/consistent-test-it\": \"error\",\n \"vitest/no-test-prefixes\": \"error\",\n },\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,YAAY,CAAC,MAAM,EAAE;AAC9B,CAAC,OAAO,MAAM;AACd;;ACNA,YAAe,YAAA,CAA2B;AAAA,EACxC,SAAS,CAAC,QAAA,EAAU,UAAU,KAAA,EAAO,KAAA,EAAO,cAAc,SAAS,CAAA;AAAA,EACnE,UAAA,EAAY;AAAA,IACV,WAAA,EAAa,OAAA;AAAA,IACb,UAAA,EAAY;AAAA,GACd;AAAA,EACA,KAAA,EAAO;AAAA;AAAA,IAEL,gCAAA,EAAkC,KAAA;AAAA;AAAA,IAClC,6BAAA,EAA+B,KAAA;AAAA;AAAA;AAAA,IAG/B,qBAAA,EAAuB,OAAA;AAAA,IACvB,6BAAA,EAA+B,OAAA;AAAA,IAC/B,mBAAA,EAAqB;AAAA,MACnB,OAAA;AAAA,MACA;AAAA,QACE,KAAA,EAAO;AAAA,UACL,QAAA;AAAA,UACA,OAAA;AAAA,UACA,YAAA;AAAA,UACA,KAAA;AAAA,UACA,QAAA;AAAA,UACA,OAAA;AAAA,UACA,OAAA;AAAA,UACA,gBAAA;AAAA,UACA,UAAA;AAAA,UACA,MAAA;AAAA,UACA,OAAA;AAAA,UACA,MAAA;AAAA,UACA,SAAA;AAAA,UACA,SAAA;AAAA,UACA,WAAA;AAAA,UACA,OAAA;AAAA,UACA;AAAA;AACF;AACF,KACF;AAAA,IACA,iBAAA,EAAmB,OAAA;AAAA,IACnB,uBAAA,EAAyB,OAAA;AAAA,IACzB,wBAAA,EAA0B,OAAA;AAAA,IAC1B,0BAAA,EAA4B,OAAA;AAAA,IAC5B,eAAA,EAAiB,OAAA;AAAA,IACjB,uBAAuB,CAAC,OAAA,EAAS,EAAE,qBAAA,EAAuB,MAAM,CAAA;AAAA,IAChE,oBAAA,EAAsB,OAAA;AAAA,IACtB,wCAAA,EAA0C,OAAA;AAAA,IAC1C,iBAAA,EAAmB,OAAA;AAAA,IACnB,sBAAA,EAAwB,OAAA;AAAA,IACxB,2BAAA,EAA6B,OAAA;AAAA,IAC7B,yBAAA,EAA2B,OAAA;AAAA,IAC3B,uBAAA,EAAyB,OAAA;AAAA,IACzB,0CAAA,EAA4C,OAAA;AAAA,IAC5C,wCAAA,EAA0C,OAAA;AAAA,IAC1C,oDAAA,EAAsD,OAAA;AAAA,IACtD,8CAAA,EAAgD,OAAA;AAAA,IAChD,6BAAA,EAA+B,OAAA;AAAA,IAC/B,mCAAA,EAAqC,OAAA;AAAA,IACrC,gCAAA,EAAkC,OAAA;AAAA,IAClC,8BAAA,EAAgC,OAAA;AAAA,IAChC,2BAAA,EAA6B,OAAA;AAAA,IAC7B,yBAAA,EAA2B;AAAA;AAE/B,CAAC,CAAA;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,106 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * vis-dev-utils
5
+ * http://visjs.org/
6
+ *
7
+ * Development utilities for the Vis family projects.
8
+ *
9
+ * @version 7.1.1
10
+ * @date 2026-07-28T16:57:32.533Z
11
+ *
12
+ * @copyright (c) 2011-2017 Almende B.V, http://almende.com
13
+ * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
14
+ *
15
+ * @license
16
+ * vis.js is dual licensed under both
17
+ *
18
+ * 1. The Apache 2.0 License
19
+ * http://www.apache.org/licenses/LICENSE-2.0
20
+ *
21
+ * and
22
+ *
23
+ * 2. The MIT License
24
+ * http://opensource.org/licenses/MIT
25
+ *
26
+ * vis.js may be distributed under either license.
27
+ */
28
+
29
+ //#region src-js/package/config.ts
30
+ /**
31
+ * Define an Oxlint configuration with type inference.
32
+ *
33
+ * @param config - Oxlint configuration
34
+ * @returns Config unchanged
35
+ */
36
+ function defineConfig(config) {
37
+ return config;
38
+ }
39
+
40
+ var index = defineConfig({
41
+ plugins: ["eslint", "import", "oxc", "oxc", "typescript", "unicorn"],
42
+ categories: {
43
+ correctness: "error",
44
+ suspicious: "error"
45
+ },
46
+ rules: {
47
+ // Enabled by the categories but we don't want to enforce
48
+ "eslint/no-unexpected-multiline": "off",
49
+ // Oxfmt handles hits
50
+ "import/no-unassigned-import": "off",
51
+ // We use side-effect imports intentionally to import styles, etc.
52
+ // Enabled beyond the categories
53
+ "eslint/guard-for-in": "error",
54
+ "eslint/no-array-constructor": "error",
55
+ "eslint/no-console": [
56
+ "error",
57
+ {
58
+ allow: [
59
+ "assert",
60
+ "count",
61
+ "countReset",
62
+ "dir",
63
+ "dirxml",
64
+ "error",
65
+ "group",
66
+ "groupCollapsed",
67
+ "groupEnd",
68
+ "info",
69
+ "table",
70
+ "time",
71
+ "timeEnd",
72
+ "timeLog",
73
+ "timeStamp",
74
+ "trace",
75
+ "warn"
76
+ ]
77
+ }
78
+ ],
79
+ "eslint/no-empty": "error",
80
+ "eslint/no-fallthrough": "error",
81
+ "eslint/no-regex-spaces": "error",
82
+ "eslint/no-useless-return": "error",
83
+ "eslint/no-var": "error",
84
+ "eslint/sort-imports": ["error", { ignoreDeclarationSort: true }],
85
+ "eslint/unicode-bom": "error",
86
+ "import/consistent-type-specifier-style": "error",
87
+ "import/no-cycle": "error",
88
+ "import/no-duplicates": "error",
89
+ "import/no-mutable-exports": "error",
90
+ "import/no-named-default": "error",
91
+ "typescript/array-type": "error",
92
+ "typescript/explicit-member-accessibility": "error",
93
+ "typescript/no-import-type-side-effects": "error",
94
+ "typescript/no-non-null-asserted-nullish-coalescing": "error",
95
+ "typescript/non-nullable-type-assertion-style": "error",
96
+ "typescript/only-throw-error": "error",
97
+ "unicorn/no-abusive-eslint-disable": "error",
98
+ "unicorn/no-length-as-slice-end": "error",
99
+ "unicorn/prefer-node-protocol": "error",
100
+ "vitest/consistent-test-it": "error",
101
+ "vitest/no-test-prefixes": "error"
102
+ }
103
+ });
104
+
105
+ export { index as default };
106
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../node_modules/oxlint/dist/index.js","../src/oxlint-shared-config/index.ts"],"sourcesContent":["//#region src-js/package/config.ts\n/**\n* Define an Oxlint configuration with type inference.\n*\n* @param config - Oxlint configuration\n* @returns Config unchanged\n*/\nfunction defineConfig(config) {\n\treturn config;\n}\n//#endregion\nexport { defineConfig };\n","import { defineConfig } from \"oxlint\";\nimport type { OxlintConfig } from \"oxlint\";\n\nexport default defineConfig<OxlintConfig>({\n plugins: [\"eslint\", \"import\", \"oxc\", \"oxc\", \"typescript\", \"unicorn\"],\n categories: {\n correctness: \"error\",\n suspicious: \"error\",\n },\n rules: {\n // Enabled by the categories but we don't want to enforce\n \"eslint/no-unexpected-multiline\": \"off\", // Oxfmt handles hits\n \"import/no-unassigned-import\": \"off\", // We use side-effect imports intentionally to import styles, etc.\n\n // Enabled beyond the categories\n \"eslint/guard-for-in\": \"error\",\n \"eslint/no-array-constructor\": \"error\",\n \"eslint/no-console\": [\n \"error\",\n {\n allow: [\n \"assert\",\n \"count\",\n \"countReset\",\n \"dir\",\n \"dirxml\",\n \"error\",\n \"group\",\n \"groupCollapsed\",\n \"groupEnd\",\n \"info\",\n \"table\",\n \"time\",\n \"timeEnd\",\n \"timeLog\",\n \"timeStamp\",\n \"trace\",\n \"warn\",\n ],\n },\n ],\n \"eslint/no-empty\": \"error\",\n \"eslint/no-fallthrough\": \"error\",\n \"eslint/no-regex-spaces\": \"error\",\n \"eslint/no-useless-return\": \"error\",\n \"eslint/no-var\": \"error\",\n \"eslint/sort-imports\": [\"error\", { ignoreDeclarationSort: true }],\n \"eslint/unicode-bom\": \"error\",\n \"import/consistent-type-specifier-style\": \"error\",\n \"import/no-cycle\": \"error\",\n \"import/no-duplicates\": \"error\",\n \"import/no-mutable-exports\": \"error\",\n \"import/no-named-default\": \"error\",\n \"typescript/array-type\": \"error\",\n \"typescript/explicit-member-accessibility\": \"error\",\n \"typescript/no-import-type-side-effects\": \"error\",\n \"typescript/no-non-null-asserted-nullish-coalescing\": \"error\",\n \"typescript/non-nullable-type-assertion-style\": \"error\",\n \"typescript/only-throw-error\": \"error\",\n \"unicorn/no-abusive-eslint-disable\": \"error\",\n \"unicorn/no-length-as-slice-end\": \"error\",\n \"unicorn/prefer-node-protocol\": \"error\",\n \"vitest/consistent-test-it\": \"error\",\n \"vitest/no-test-prefixes\": \"error\",\n },\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,YAAY,CAAC,MAAM,EAAE;AAC9B,CAAC,OAAO,MAAM;AACd;;ACNA,YAAe,YAAA,CAA2B;AAAA,EACxC,SAAS,CAAC,QAAA,EAAU,UAAU,KAAA,EAAO,KAAA,EAAO,cAAc,SAAS,CAAA;AAAA,EACnE,UAAA,EAAY;AAAA,IACV,WAAA,EAAa,OAAA;AAAA,IACb,UAAA,EAAY;AAAA,GACd;AAAA,EACA,KAAA,EAAO;AAAA;AAAA,IAEL,gCAAA,EAAkC,KAAA;AAAA;AAAA,IAClC,6BAAA,EAA+B,KAAA;AAAA;AAAA;AAAA,IAG/B,qBAAA,EAAuB,OAAA;AAAA,IACvB,6BAAA,EAA+B,OAAA;AAAA,IAC/B,mBAAA,EAAqB;AAAA,MACnB,OAAA;AAAA,MACA;AAAA,QACE,KAAA,EAAO;AAAA,UACL,QAAA;AAAA,UACA,OAAA;AAAA,UACA,YAAA;AAAA,UACA,KAAA;AAAA,UACA,QAAA;AAAA,UACA,OAAA;AAAA,UACA,OAAA;AAAA,UACA,gBAAA;AAAA,UACA,UAAA;AAAA,UACA,MAAA;AAAA,UACA,OAAA;AAAA,UACA,MAAA;AAAA,UACA,SAAA;AAAA,UACA,SAAA;AAAA,UACA,WAAA;AAAA,UACA,OAAA;AAAA,UACA;AAAA;AACF;AACF,KACF;AAAA,IACA,iBAAA,EAAmB,OAAA;AAAA,IACnB,uBAAA,EAAyB,OAAA;AAAA,IACzB,wBAAA,EAA0B,OAAA;AAAA,IAC1B,0BAAA,EAA4B,OAAA;AAAA,IAC5B,eAAA,EAAiB,OAAA;AAAA,IACjB,uBAAuB,CAAC,OAAA,EAAS,EAAE,qBAAA,EAAuB,MAAM,CAAA;AAAA,IAChE,oBAAA,EAAsB,OAAA;AAAA,IACtB,wCAAA,EAA0C,OAAA;AAAA,IAC1C,iBAAA,EAAmB,OAAA;AAAA,IACnB,sBAAA,EAAwB,OAAA;AAAA,IACxB,2BAAA,EAA6B,OAAA;AAAA,IAC7B,yBAAA,EAA2B,OAAA;AAAA,IAC3B,uBAAA,EAAyB,OAAA;AAAA,IACzB,0CAAA,EAA4C,OAAA;AAAA,IAC5C,wCAAA,EAA0C,OAAA;AAAA,IAC1C,oDAAA,EAAsD,OAAA;AAAA,IACtD,8CAAA,EAAgD,OAAA;AAAA,IAChD,6BAAA,EAA+B,OAAA;AAAA,IAC/B,mCAAA,EAAqC,OAAA;AAAA,IACrC,gCAAA,EAAkC,OAAA;AAAA,IAClC,8BAAA,EAAgC,OAAA;AAAA,IAChC,2BAAA,EAA6B,OAAA;AAAA,IAC7B,yBAAA,EAA2B;AAAA;AAE/B,CAAC,CAAA;;;;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,51 +1,41 @@
1
1
  {
2
2
  "name": "vis-dev-utils",
3
- "version": "7.0.2",
3
+ "version": "7.1.1",
4
4
  "description": "Development utilities for the Vis family projects.",
5
+ "keywords": [
6
+ "development",
7
+ "utils",
8
+ "vis"
9
+ ],
5
10
  "homepage": "http://visjs.org/",
11
+ "bugs": {
12
+ "url": "https://github.com/visjs/vis-dev-utils/issues"
13
+ },
6
14
  "license": "(Apache-2.0 OR MIT)",
7
15
  "repository": {
8
16
  "type": "git",
9
17
  "url": "git+https://github.com/visjs/vis-dev-utils.git"
10
18
  },
11
- "bugs": {
12
- "url": "https://github.com/visjs/vis-dev-utils/issues"
19
+ "funding": {
20
+ "type": "opencollective",
21
+ "url": "https://opencollective.com/visjs"
13
22
  },
14
- "keywords": [
15
- "development",
16
- "utils",
17
- "vis"
23
+ "bin": {
24
+ "ci-utils": "bin/ci-utils.js",
25
+ "generate-examples-index": "bin/generate-examples-index.js",
26
+ "test-e2e-interop": "bin/test-e2e-interop.js"
27
+ },
28
+ "files": [
29
+ "LICENSE*",
30
+ "README.md",
31
+ "babel-preset",
32
+ "bin",
33
+ "declarations",
34
+ "dist",
35
+ "oxfmt-shared-config",
36
+ "oxlint-shared-config"
18
37
  ],
19
38
  "type": "module",
20
- "scripts": {
21
- "build": "npm run build:production && npm run build:declarations",
22
- "build:declarations": "npx tsc --project tsconfig.declarations.json",
23
- "build:production": "rollup --config ./rollup.config.js",
24
- "clean": "shx rm -rf \"./{.nyc_output,.rpt2_cache}\" \"./{bin,coverage,declarations,dist,e2e,gen}/*\"",
25
- "style": "oxfmt --check .",
26
- "style-fix": "oxfmt .",
27
- "lint": "oxlint --report-unused-disable-directives-severity error .",
28
- "lint-fix": "oxlint --report-unused-disable-directives-severity error --fix .",
29
- "prepublishOnly": "npm run build",
30
- "test": "npm run test:unit && npm run test:interop",
31
- "test:interop": "node interop.js",
32
- "test:interop:debug": "npm run test:interop -- --fail-command \"$SHELL\"",
33
- "test:unit": "mocha --exit",
34
- "watch": "rollup --watch --config rollup.config.js",
35
- "prepare": "husky"
36
- },
37
- "lint-staged": {
38
- "*.{js,ts,css,html,json,md,yml,yaml}": "oxfmt --no-error-on-unmatched-pattern",
39
- "*.{js,ts}": "oxlint --no-error-on-unmatched-pattern --report-unused-disable-directives-severity error --fix",
40
- ".*.{js,ts,css,html,json,md,yml,yaml}": "oxfmt --no-error-on-unmatched-pattern",
41
- ".*.{js,ts}": "oxlint --no-error-on-unmatched-pattern --report-unused-disable-directives-severity error --fix"
42
- },
43
- "config": {
44
- "snap-shot-it": {
45
- "sortSnapshots": true,
46
- "useRelativePath": true
47
- }
48
- },
49
39
  "main": "dist/vis-dev-utils.cjs",
50
40
  "module": "dist/vis-dev-utils.mjs",
51
41
  "types": "declarations/module/index.d.ts",
@@ -63,23 +53,58 @@
63
53
  "./dist/interop/base-config.json": {
64
54
  "import": "./dist/interop/base-config.json",
65
55
  "require": "./dist/interop/base-config.json"
56
+ },
57
+ "./oxfmt-shared-config": {
58
+ "import": "./oxfmt-shared-config/index.mjs",
59
+ "require": "./oxfmt-shared-config/index.cjs",
60
+ "types": "./declarations/oxfmt-shared-config/index.d.ts"
61
+ },
62
+ "./oxlint-shared-config": {
63
+ "import": "./oxlint-shared-config/index.mjs",
64
+ "require": "./oxlint-shared-config/index.cjs",
65
+ "types": "./declarations/oxlint-shared-config/index.d.ts"
66
66
  }
67
67
  },
68
- "bin": {
69
- "ci-utils": "bin/ci-utils.js",
70
- "generate-examples-index": "bin/generate-examples-index.js",
71
- "test-e2e-interop": "bin/test-e2e-interop.js"
68
+ "scripts": {
69
+ "build": "npm run build:production && npm run build:declarations",
70
+ "build:declarations": "npx tsc --project tsconfig.declarations.json",
71
+ "build:production": "rollup --config ./rollup.config.js",
72
+ "clean": "shx rm -rf \"./{.nyc_output,.rpt2_cache}\" \"./{babel-preset,bin,coverage,declarations,dist,e2e,gen,oxfmt-shared-config,oxlint-shared-config}/*\"",
73
+ "style": "oxfmt --check .",
74
+ "style-fix": "oxfmt .",
75
+ "lint": "oxlint --report-unused-disable-directives-severity error .",
76
+ "lint-fix": "oxlint --report-unused-disable-directives-severity error --fix .",
77
+ "prepublishOnly": "npm run build",
78
+ "test": "npm run test:unit && npm run test:interop",
79
+ "test:interop": "node interop.js",
80
+ "test:interop:debug": "npm run test:interop -- --fail-command \"$SHELL\"",
81
+ "test:unit": "mocha --exit",
82
+ "watch": "rollup --watch --config rollup.config.js",
83
+ "prepare": "husky"
72
84
  },
73
- "files": [
74
- "LICENSE*",
75
- "README.md",
76
- "babel-preset",
77
- "bin",
78
- "declarations",
79
- "dist"
80
- ],
81
85
  "dependencies": {
82
- "fs-extra": "11.4.0"
86
+ "fs-extra": "11.4.0",
87
+ "oxfmt": "0.60.0"
88
+ },
89
+ "devDependencies": {
90
+ "@types/babel__core": "7.20.5",
91
+ "@types/chai": "5.2.3",
92
+ "@types/cheerio": "1.0.0",
93
+ "@types/mocha": "10.0.10",
94
+ "@types/puppeteer": "7.0.4",
95
+ "@types/sinon": "22.0.0",
96
+ "@types/tmp": "0.2.6",
97
+ "@types/yargs": "17.0.35",
98
+ "husky": "9.1.7",
99
+ "lint-staged": "17.2.0",
100
+ "mocha": "11.7.6",
101
+ "oxlint": "1.75.0",
102
+ "oxlint-tsgolint": "7.0.2001",
103
+ "rollup-plugin-esbuild": "6.2.1",
104
+ "rollup-plugin-node-externals": "9.0.1",
105
+ "shx": "0.4.0",
106
+ "sinon": "22.1.0",
107
+ "snap-shot-it": "7.9.10"
83
108
  },
84
109
  "peerDependencies": {
85
110
  "@babel/core": "7.29.7",
@@ -100,7 +125,6 @@
100
125
  "find-up": "8.0.0",
101
126
  "globby": "14.1.0",
102
127
  "jimp": "1.6.1",
103
- "oxfmt": "^0.59.0 || ^0.60.0",
104
128
  "postcss-assets": "6.0.0",
105
129
  "puppeteer": "24.43.1",
106
130
  "rollup": "4.44.2",
@@ -113,28 +137,16 @@
113
137
  "typescript": "5.9.3",
114
138
  "yargs": "18.0.0"
115
139
  },
116
- "devDependencies": {
117
- "@types/babel__core": "7.20.5",
118
- "@types/chai": "5.2.3",
119
- "@types/cheerio": "1.0.0",
120
- "@types/mocha": "10.0.10",
121
- "@types/puppeteer": "7.0.4",
122
- "@types/sinon": "22.0.0",
123
- "@types/tmp": "0.2.6",
124
- "@types/yargs": "17.0.35",
125
- "husky": "9.1.7",
126
- "lint-staged": "17.2.0",
127
- "mocha": "11.7.6",
128
- "oxlint": "1.75.0",
129
- "oxlint-tsgolint": "7.0.2001",
130
- "rollup-plugin-esbuild": "6.2.1",
131
- "rollup-plugin-node-externals": "9.0.1",
132
- "shx": "0.4.0",
133
- "sinon": "22.1.0",
134
- "snap-shot-it": "7.9.10"
140
+ "lint-staged": {
141
+ "*.{js,ts,css,html,json,md,yml,yaml}": "oxfmt --no-error-on-unmatched-pattern",
142
+ "*.{js,ts}": "oxlint --no-error-on-unmatched-pattern --report-unused-disable-directives-severity error --fix",
143
+ ".*.{js,ts,css,html,json,md,yml,yaml}": "oxfmt --no-error-on-unmatched-pattern",
144
+ ".*.{js,ts}": "oxlint --no-error-on-unmatched-pattern --report-unused-disable-directives-severity error --fix"
135
145
  },
136
- "funding": {
137
- "type": "opencollective",
138
- "url": "https://opencollective.com/visjs"
146
+ "config": {
147
+ "snap-shot-it": {
148
+ "sortSnapshots": true,
149
+ "useRelativePath": true
150
+ }
139
151
  }
140
152
  }