@tsslint/config 3.1.2 → 3.1.3

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.
Files changed (2) hide show
  1. package/lib/eslint.js +7 -1
  2. 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
- return (m && 'default' in m ? m.default : m);
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.2",
3
+ "version": "3.1.3",
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.2",
21
+ "@tsslint/types": "3.1.3",
22
22
  "minimatch": "^10.0.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@tsslint/compat-eslint": "3.1.2",
25
+ "@tsslint/compat-eslint": "3.1.3",
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": "e6fb08d18e9f4feb2b0191199cecce4bdf3c4a29"
40
+ "gitHead": "107a771f947c4de0e25b6542b332a75307f38a8b"
41
41
  }