@companion-module/tools 2.2.3 → 2.4.0-nightly-main-20250928-111647-5f0ff50

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 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 {{ enableJest?: boolean, enableTypescript?: boolean, ignores?: string[] }} [options={}] - Options to customize the config
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,65 +1,66 @@
1
1
  {
2
- "name": "@companion-module/tools",
3
- "version": "2.2.3",
4
- "type": "module",
5
- "main": "index.js",
6
- "license": "MIT",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/bitfocus/companion-module-tools.git"
10
- },
11
- "bin": {
12
- "companion-generate-manifest": "scripts/generate-manifest.js",
13
- "companion-module-build": "scripts/build.js",
14
- "companion-module-check": "scripts/check.js"
15
- },
16
- "engines": {
17
- "node": "^18.18 || ^22.8"
18
- },
19
- "files": [
20
- "eslint",
21
- "scripts",
22
- "tsconfig",
23
- ".prettierrc.json",
24
- "index.js",
25
- "CHANGELOG.md",
26
- "webpack.*"
27
- ],
28
- "dependencies": {
29
- "@eslint/js": "^9.19.0",
30
- "eslint-config-prettier": "^10.0.1",
31
- "eslint-plugin-n": "^17.15.1",
32
- "eslint-plugin-prettier": "^5.2.3",
33
- "find-up": "^7.0.0",
34
- "parse-author": "^2.0.0",
35
- "semver": "^7.7.1",
36
- "tar": "^7.4.3",
37
- "webpack": "^5.97.1",
38
- "webpack-cli": "^6.0.1",
39
- "zx": "^8.3.2"
40
- },
41
- "peerDependencies": {
42
- "@companion-module/base": "^1.11.0",
43
- "eslint": "^9.0.0",
44
- "prettier": "^3.0.0",
45
- "typescript-eslint": "^8.2.0"
46
- },
47
- "peerDependenciesMeta": {
48
- "eslint": {
49
- "optional": true
50
- },
51
- "prettier": {
52
- "optional": true
53
- },
54
- "typescript-eslint": {
55
- "optional": true
56
- }
57
- },
58
- "devDependencies": {
59
- "@types/eslint": "^9.6.1",
60
- "eslint": "^9.19.0",
61
- "prettier": "^3.4.2",
62
- "typescript-eslint": "^8.23.0"
63
- },
64
- "packageManager": "yarn@4.5.3"
65
- }
2
+ "name": "@companion-module/tools",
3
+ "version": "2.4.0-nightly-main-20250928-111647-5f0ff50",
4
+ "type": "module",
5
+ "main": "index.js",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/bitfocus/companion-module-tools.git"
10
+ },
11
+ "bin": {
12
+ "companion-generate-manifest": "scripts/generate-manifest.js",
13
+ "companion-module-build": "scripts/build.js",
14
+ "companion-module-check": "scripts/check.js"
15
+ },
16
+ "engines": {
17
+ "node": "^18.18 || ^22.18"
18
+ },
19
+ "files": [
20
+ "eslint",
21
+ "scripts",
22
+ "tsconfig",
23
+ ".prettierrc.json",
24
+ "index.js",
25
+ "CHANGELOG.md",
26
+ "webpack.*"
27
+ ],
28
+ "dependencies": {
29
+ "@eslint/js": "^9.36.0",
30
+ "eslint-config-prettier": "^10.1.8",
31
+ "eslint-plugin-n": "^17.23.1",
32
+ "eslint-plugin-prettier": "^5.5.4",
33
+ "find-up": "^7.0.0",
34
+ "parse-author": "^2.0.0",
35
+ "semver": "^7.7.2",
36
+ "tar": "^7.5.1",
37
+ "webpack": "^5.101.3",
38
+ "webpack-cli": "^6.0.1",
39
+ "zx": "^8.8.4"
40
+ },
41
+ "peerDependencies": {
42
+ "@companion-module/base": "^1.12.0",
43
+ "eslint": "^9.36.0",
44
+ "prettier": "^3.6.2",
45
+ "typescript-eslint": "^8.44.1"
46
+ },
47
+ "peerDependenciesMeta": {
48
+ "eslint": {
49
+ "optional": true
50
+ },
51
+ "prettier": {
52
+ "optional": true
53
+ },
54
+ "typescript-eslint": {
55
+ "optional": true
56
+ }
57
+ },
58
+ "devDependencies": {
59
+ "@types/eslint": "^9.6.1",
60
+ "eslint": "^9.36.0",
61
+ "prettier": "^3.6.2",
62
+ "typescript-eslint": "^8.44.1"
63
+ },
64
+ "packageManager": "yarn@4.10.3",
65
+ "stableVersion": "2.4.0"
66
+ }