@exadev/eslint-config 2.10.1 → 2.10.2
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/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -112,7 +112,7 @@ function buildReactConfig(options = {}) {
|
|
|
112
112
|
}
|
|
113
113
|
//#endregion
|
|
114
114
|
//#region package.json
|
|
115
|
-
var version = "2.10.
|
|
115
|
+
var version = "2.10.2";
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region src/rules/barrel-helpers.ts
|
|
118
118
|
const INDEX_BASENAME$1 = /^index\.[cm]?[tj]sx?$/;
|
|
@@ -1230,6 +1230,7 @@ function isFlatPropertyType(checker, type) {
|
|
|
1230
1230
|
return checker.getSignaturesOfType(type, typescript.SignatureKind.Call).length > 0 && checker.getPropertiesOfType(type).length === 0 && checker.getIndexInfosOfType(type).length === 0;
|
|
1231
1231
|
}
|
|
1232
1232
|
function isFlatObjectType(checker, type, location) {
|
|
1233
|
+
if ((type.flags & typescript.TypeFlags.Object) === 0) return false;
|
|
1233
1234
|
if (type.flags & (typescript.TypeFlags.Union | typescript.TypeFlags.Intersection | typescript.TypeFlags.TypeParameter)) return false;
|
|
1234
1235
|
if (checker.isArrayType(type) || checker.isTupleType(type)) return false;
|
|
1235
1236
|
if (checker.getSignaturesOfType(type, typescript.SignatureKind.Call).length > 0) return false;
|
package/dist/index.js
CHANGED
|
@@ -83,7 +83,7 @@ function buildReactConfig(options = {}) {
|
|
|
83
83
|
}
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region package.json
|
|
86
|
-
var version = "2.10.
|
|
86
|
+
var version = "2.10.2";
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region src/rules/barrel-helpers.ts
|
|
89
89
|
const INDEX_BASENAME$1 = /^index\.[cm]?[tj]sx?$/;
|
|
@@ -1201,6 +1201,7 @@ function isFlatPropertyType(checker, type) {
|
|
|
1201
1201
|
return checker.getSignaturesOfType(type, ts.SignatureKind.Call).length > 0 && checker.getPropertiesOfType(type).length === 0 && checker.getIndexInfosOfType(type).length === 0;
|
|
1202
1202
|
}
|
|
1203
1203
|
function isFlatObjectType(checker, type, location) {
|
|
1204
|
+
if ((type.flags & ts.TypeFlags.Object) === 0) return false;
|
|
1204
1205
|
if (type.flags & (ts.TypeFlags.Union | ts.TypeFlags.Intersection | ts.TypeFlags.TypeParameter)) return false;
|
|
1205
1206
|
if (checker.isArrayType(type) || checker.isTupleType(type)) return false;
|
|
1206
1207
|
if (checker.getSignaturesOfType(type, ts.SignatureKind.Call).length > 0) return false;
|