@exadev/eslint-config 2.10.0 → 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 CHANGED
@@ -25,6 +25,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
25
  }) : target, mod));
26
26
  //#endregion
27
27
  let node_module = require("node:module");
28
+ let _eslint_js = require("@eslint/js");
29
+ _eslint_js = __toESM(_eslint_js, 1);
28
30
  let typescript_eslint = require("typescript-eslint");
29
31
  typescript_eslint = __toESM(typescript_eslint, 1);
30
32
  let node_path = require("node:path");
@@ -110,7 +112,7 @@ function buildReactConfig(options = {}) {
110
112
  }
111
113
  //#endregion
112
114
  //#region package.json
113
- var version = "2.10.0";
115
+ var version = "2.10.2";
114
116
  //#endregion
115
117
  //#region src/rules/barrel-helpers.ts
116
118
  const INDEX_BASENAME$1 = /^index\.[cm]?[tj]sx?$/;
@@ -1228,6 +1230,7 @@ function isFlatPropertyType(checker, type) {
1228
1230
  return checker.getSignaturesOfType(type, typescript.SignatureKind.Call).length > 0 && checker.getPropertiesOfType(type).length === 0 && checker.getIndexInfosOfType(type).length === 0;
1229
1231
  }
1230
1232
  function isFlatObjectType(checker, type, location) {
1233
+ if ((type.flags & typescript.TypeFlags.Object) === 0) return false;
1231
1234
  if (type.flags & (typescript.TypeFlags.Union | typescript.TypeFlags.Intersection | typescript.TypeFlags.TypeParameter)) return false;
1232
1235
  if (checker.isArrayType(type) || checker.isTupleType(type)) return false;
1233
1236
  if (checker.getSignaturesOfType(type, typescript.SignatureKind.Call).length > 0) return false;
@@ -1339,6 +1342,7 @@ const plugin = {
1339
1342
  //#region src/recommended-type-checked.ts
1340
1343
  const TEST_FILE_PATTERNS = "**/*.{test,spec}.{ts,tsx,mts,cts,js,jsx,mjs,cjs}";
1341
1344
  const recommendedTypeChecked = [
1345
+ _eslint_js.default.configs.recommended,
1342
1346
  ...typescript_eslint.default.configs.strictTypeChecked,
1343
1347
  ...typescript_eslint.default.configs.stylisticTypeChecked,
1344
1348
  {
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
+ import js from "@eslint/js";
2
3
  import tseslint from "typescript-eslint";
3
4
  import { posix } from "node:path";
4
5
  import { AST_NODE_TYPES, ESLintUtils, TSESLint } from "@typescript-eslint/utils";
@@ -82,7 +83,7 @@ function buildReactConfig(options = {}) {
82
83
  }
83
84
  //#endregion
84
85
  //#region package.json
85
- var version = "2.10.0";
86
+ var version = "2.10.2";
86
87
  //#endregion
87
88
  //#region src/rules/barrel-helpers.ts
88
89
  const INDEX_BASENAME$1 = /^index\.[cm]?[tj]sx?$/;
@@ -1200,6 +1201,7 @@ function isFlatPropertyType(checker, type) {
1200
1201
  return checker.getSignaturesOfType(type, ts.SignatureKind.Call).length > 0 && checker.getPropertiesOfType(type).length === 0 && checker.getIndexInfosOfType(type).length === 0;
1201
1202
  }
1202
1203
  function isFlatObjectType(checker, type, location) {
1204
+ if ((type.flags & ts.TypeFlags.Object) === 0) return false;
1203
1205
  if (type.flags & (ts.TypeFlags.Union | ts.TypeFlags.Intersection | ts.TypeFlags.TypeParameter)) return false;
1204
1206
  if (checker.isArrayType(type) || checker.isTupleType(type)) return false;
1205
1207
  if (checker.getSignaturesOfType(type, ts.SignatureKind.Call).length > 0) return false;
@@ -1311,6 +1313,7 @@ const plugin = {
1311
1313
  //#region src/recommended-type-checked.ts
1312
1314
  const TEST_FILE_PATTERNS = "**/*.{test,spec}.{ts,tsx,mts,cts,js,jsx,mjs,cjs}";
1313
1315
  const recommendedTypeChecked = [
1316
+ js.configs.recommended,
1314
1317
  ...tseslint.configs.strictTypeChecked,
1315
1318
  ...tseslint.configs.stylisticTypeChecked,
1316
1319
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exadev/eslint-config",
3
- "version": "2.10.0",
3
+ "version": "2.10.2",
4
4
  "description": "Shared custom ESLint rules and plugin for ExaDev projects",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -64,7 +64,6 @@
64
64
  "@arethetypeswrong/cli": "^0.18.5",
65
65
  "@commitlint/cli": "^21.2.1",
66
66
  "@commitlint/config-conventional": "^21.2.0",
67
- "@eslint/js": "^10.0.1",
68
67
  "@next/eslint-plugin-next": "^16.3.2",
69
68
  "@semantic-release/changelog": "^7.0.0",
70
69
  "@semantic-release/git": "^11.0.1",
@@ -99,6 +98,7 @@
99
98
  "release": "semantic-release"
100
99
  },
101
100
  "dependencies": {
101
+ "@eslint/js": "^10.0.1",
102
102
  "@typescript-eslint/utils": "^8.67.0",
103
103
  "ts-api-utils": "^2.5.0"
104
104
  }