@tsslint/config 3.1.2 → 3.1.4
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/lib/eslint.js +7 -1
- package/package.json +4 -4
package/lib/eslint.js
CHANGED
|
@@ -132,7 +132,13 @@ function detectRuleLoader(pluginName, probeRuleName) {
|
|
|
132
132
|
const thunk = new Function('requireFn', `return ({ ${key}: () => requireFn() })[${key}];\n//# sourceURL=tsslint-rule-loader/${pluginName}/${ruleName}.js`)(() => {
|
|
133
133
|
try {
|
|
134
134
|
const m = require(filePath);
|
|
135
|
-
|
|
135
|
+
if (m && 'default' in m)
|
|
136
|
+
return m.default;
|
|
137
|
+
if (m && typeof m === 'object' && typeof m.create === 'function')
|
|
138
|
+
return m;
|
|
139
|
+
// Unrecognized format (e.g. named exports) — return
|
|
140
|
+
// undefined so loadRule falls back to whole-plugin load.
|
|
141
|
+
return undefined;
|
|
136
142
|
}
|
|
137
143
|
catch {
|
|
138
144
|
return undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsslint/config",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.6.0"
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"directory": "packages/config"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tsslint/types": "3.1.
|
|
21
|
+
"@tsslint/types": "3.1.4",
|
|
22
22
|
"minimatch": "^10.0.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@tsslint/compat-eslint": "3.1.
|
|
25
|
+
"@tsslint/compat-eslint": "3.1.4",
|
|
26
26
|
"tslint": "^6.1.3"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"optional": true
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "126783d934ea120fdd5ba37f31c0a1a54ee0d470"
|
|
41
41
|
}
|