@companion-module/tools 2.2.3 → 2.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.
- package/CHANGELOG.md +14 -0
- package/eslint/config.mjs +11 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.4.0](https://github.com/bitfocus/companion-module-tools/compare/v2.3.0...v2.4.0) (2025-09-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update dependencies ([676e87b](https://github.com/bitfocus/companion-module-tools/commit/676e87ba08140c19c0e344ed13f50e07c347f0c3))
|
|
9
|
+
|
|
10
|
+
## [2.3.0](https://github.com/bitfocus/companion-module-tools/compare/v2.2.3...v2.3.0) (2025-04-12)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* Allow additional rules to be provided to the eslint config generator ([#48](https://github.com/bitfocus/companion-module-tools/issues/48)) ([6fb9125](https://github.com/bitfocus/companion-module-tools/commit/6fb9125b1097b598d4b1ba552890034a44c45235))
|
|
16
|
+
|
|
3
17
|
## [2.2.3](https://github.com/bitfocus/companion-module-tools/compare/v2.2.2...v2.2.3) (2025-04-12)
|
|
4
18
|
|
|
5
19
|
|
package/eslint/config.mjs
CHANGED
|
@@ -22,7 +22,13 @@ function compactObj(obj) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/***
|
|
25
|
-
* @param {{
|
|
25
|
+
* @param {{
|
|
26
|
+
* enableJest?: boolean,
|
|
27
|
+
* enableTypescript?: boolean,
|
|
28
|
+
* ignores?: string[],
|
|
29
|
+
* commonRules?: Readonly<import('eslint').Linter.RulesRecord>,
|
|
30
|
+
* typescriptRules?: Readonly<import('eslint').Linter.RulesRecord>,
|
|
31
|
+
* }} [options={}] - Options to customize the config
|
|
26
32
|
* @returns {Promise<import('eslint').Linter.Config[]>}
|
|
27
33
|
*/
|
|
28
34
|
export async function generateEslintConfig(options = {}) {
|
|
@@ -46,6 +52,8 @@ export async function generateEslintConfig(options = {}) {
|
|
|
46
52
|
'no-use-before-define': 'off',
|
|
47
53
|
'no-warning-comments': ['error', { terms: ['nocommit', '@nocommit', '@no-commit'] }],
|
|
48
54
|
// 'jest/no-mocks-import': 'off',
|
|
55
|
+
|
|
56
|
+
...(options.commonRules || {}),
|
|
49
57
|
},
|
|
50
58
|
}
|
|
51
59
|
|
|
@@ -101,6 +109,8 @@ export async function generateEslintConfig(options = {}) {
|
|
|
101
109
|
'@typescript-eslint/restrict-plus-operands': 0,
|
|
102
110
|
'@typescript-eslint/no-redundant-type-constituents': 0,
|
|
103
111
|
/** End 'recommended-requiring-type-checking' overrides */
|
|
112
|
+
|
|
113
|
+
...(options.typescriptRules || {}),
|
|
104
114
|
},
|
|
105
115
|
}
|
|
106
116
|
: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@companion-module/tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"companion-module-check": "scripts/check.js"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": "^18.18 || ^22.
|
|
17
|
+
"node": "^18.18 || ^22.18"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"eslint",
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
"webpack.*"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@eslint/js": "^9.
|
|
30
|
-
"eslint-config-prettier": "^10.
|
|
31
|
-
"eslint-plugin-n": "^17.
|
|
32
|
-
"eslint-plugin-prettier": "^5.
|
|
29
|
+
"@eslint/js": "^9.34.0",
|
|
30
|
+
"eslint-config-prettier": "^10.1.8",
|
|
31
|
+
"eslint-plugin-n": "^17.21.3",
|
|
32
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
33
33
|
"find-up": "^7.0.0",
|
|
34
34
|
"parse-author": "^2.0.0",
|
|
35
|
-
"semver": "^7.7.
|
|
35
|
+
"semver": "^7.7.2",
|
|
36
36
|
"tar": "^7.4.3",
|
|
37
|
-
"webpack": "^5.
|
|
37
|
+
"webpack": "^5.101.3",
|
|
38
38
|
"webpack-cli": "^6.0.1",
|
|
39
|
-
"zx": "^8.
|
|
39
|
+
"zx": "^8.8.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@companion-module/base": "^1.
|
|
42
|
+
"@companion-module/base": "^1.12.0",
|
|
43
43
|
"eslint": "^9.0.0",
|
|
44
44
|
"prettier": "^3.0.0",
|
|
45
45
|
"typescript-eslint": "^8.2.0"
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/eslint": "^9.6.1",
|
|
60
|
-
"eslint": "^9.
|
|
61
|
-
"prettier": "^3.
|
|
62
|
-
"typescript-eslint": "^8.
|
|
60
|
+
"eslint": "^9.34.0",
|
|
61
|
+
"prettier": "^3.6.2",
|
|
62
|
+
"typescript-eslint": "^8.42.0"
|
|
63
63
|
},
|
|
64
|
-
"packageManager": "yarn@4.
|
|
64
|
+
"packageManager": "yarn@4.9.4"
|
|
65
65
|
}
|