eslint-config-complete 1.7.0 → 2.0.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"base-import-x.d.ts","sourceRoot":"","sources":["../../src/base/base-import-x.js"],"names":[],"mappings":"AAuOA;;;;;;;;;GASG;AACH,8FAyGE"}
1
+ {"version":3,"file":"base-import-x.d.ts","sourceRoot":"","sources":["../../src/base/base-import-x.js"],"names":[],"mappings":"AAyOA;;;;;;;;;GASG;AACH,8FA6GE"}
@@ -172,6 +172,7 @@ const STYLE_GUIDE = {
172
172
  * exports).
173
173
  */
174
174
  "import-x/prefer-default-export": "off",
175
+ "import-x/prefer-namespace-import": "warn",
175
176
  };
176
177
  /**
177
178
  * Omit `.d.ts` because:
@@ -271,10 +272,7 @@ export const baseImportX = tseslint.config({
271
272
  rules: {
272
273
  "import-x/no-default-export": "off",
273
274
  },
274
- },
275
- // ESLint configuration files that use "complete-lint" have a false positive with
276
- // "import-x/no-extraneous-dependencies".
277
- {
275
+ }, {
278
276
  files: [
279
277
  "eslint.config.js",
280
278
  "eslint.config.cjs",
@@ -284,6 +282,8 @@ export const baseImportX = tseslint.config({
284
282
  "eslint.config.mts",
285
283
  ],
286
284
  rules: {
285
+ // ESLint configuration files that use "complete-lint" have a false positive with
286
+ // "import-x/no-extraneous-dependencies".
287
287
  "import-x/no-extraneous-dependencies": [
288
288
  "warn",
289
289
  {
@@ -292,5 +292,8 @@ export const baseImportX = tseslint.config({
292
292
  whitelist: ["eslint-config-complete", "typescript-eslint"],
293
293
  },
294
294
  ],
295
+ // ESLint configuration files in monorepos often intentionally import from the "packages"
296
+ // subdirectory, because the config files are JavaScript so they cannot use tsconfig-paths.
297
+ "import-x/no-relative-packages": "off",
295
298
  },
296
299
  });
@@ -1 +1 @@
1
- {"version":3,"file":"base-typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-typescript-eslint.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,uGAsiBE"}
1
+ {"version":3,"file":"base-typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-typescript-eslint.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,uGAwjBE"}
@@ -472,6 +472,14 @@ export const baseTypeScriptESLint = tseslint.config({
472
472
  "@typescript-eslint/no-floating-promises": "off",
473
473
  },
474
474
  },
475
+ // We want to be allowed to import from the "src" directory in script files that are located in a
476
+ // separate "scripts" directory.
477
+ {
478
+ files: ["**/scripts/**"],
479
+ rules: {
480
+ "@typescript-eslint/no-restricted-imports": "off",
481
+ },
482
+ },
475
483
  // We want to be allowed to import from the "src" directory in test files that are located in a
476
484
  // separate "tests" directory.
477
485
  {
@@ -479,4 +487,12 @@ export const baseTypeScriptESLint = tseslint.config({
479
487
  rules: {
480
488
  "@typescript-eslint/no-restricted-imports": "off",
481
489
  },
490
+ },
491
+ // ESLint configs in monorepos often intentionally import from the "src" subdirectory (because the
492
+ // config files are JavaScript so they cannot use tsconfig-paths).
493
+ {
494
+ files: ["eslint.config.mjs"],
495
+ rules: {
496
+ "@typescript-eslint/no-restricted-imports": "off",
497
+ },
482
498
  });
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export { completeConfigBase } from "./base.js";
2
- export { completeConfigMonorepo } from "./monorepo.js";
3
2
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,2 +1 @@
1
1
  export { completeConfigBase } from "./base.js";
2
- export { completeConfigMonorepo } from "./monorepo.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-complete",
3
- "version": "1.7.0",
3
+ "version": "2.0.0",
4
4
  "description": "A sharable ESLint config for TypeScript projects.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -35,23 +35,23 @@
35
35
  "lint": "tsx ./scripts/lint.ts"
36
36
  },
37
37
  "dependencies": {
38
- "@stylistic/eslint-plugin": "4.4.1",
38
+ "@stylistic/eslint-plugin": "5.1.0",
39
39
  "confusing-browser-globals": "1.0.11",
40
- "eslint-import-resolver-typescript": "4.4.3",
40
+ "eslint-import-resolver-typescript": "4.4.4",
41
41
  "eslint-plugin-complete": "1.1.0",
42
- "eslint-plugin-import-x": "4.15.2",
43
- "eslint-plugin-jsdoc": "51.1.2",
44
- "eslint-plugin-n": "17.20.0",
42
+ "eslint-plugin-import-x": "4.16.1",
43
+ "eslint-plugin-jsdoc": "51.3.3",
44
+ "eslint-plugin-n": "17.21.0",
45
45
  "eslint-plugin-unicorn": "59.0.1",
46
- "typescript-eslint": "8.34.1"
46
+ "typescript-eslint": "8.35.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@eslint/js": "9.29.0",
49
+ "@eslint/js": "9.30.1",
50
50
  "@types/confusing-browser-globals": "1.0.3",
51
51
  "@types/eslint-config-prettier": "6.11.3",
52
- "@types/node": "24.0.3",
53
- "complete-common": "2.3.0",
54
- "complete-node": "7.0.2",
52
+ "@types/node": "24.0.10",
53
+ "complete-common": "2.3.1",
54
+ "complete-node": "7.3.1",
55
55
  "eslint-config-prettier": "10.1.5",
56
56
  "extract-comments": "1.1.0",
57
57
  "typescript": "5.8.3"
@@ -1,6 +0,0 @@
1
- /**
2
- * This ESLint config is meant to be used in monorepos that install dependencies at the root (in
3
- * addition to the `completeBase` config).
4
- */
5
- export const completeConfigMonorepo: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
6
- //# sourceMappingURL=monorepo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"monorepo.d.ts","sourceRoot":"","sources":["../src/monorepo.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,yGAWG"}
package/dist/monorepo.js DELETED
@@ -1,16 +0,0 @@
1
- import tseslint from "typescript-eslint";
2
- /**
3
- * This ESLint config is meant to be used in monorepos that install dependencies at the root (in
4
- * addition to the `completeBase` config).
5
- */
6
- export const completeConfigMonorepo = tseslint.config({
7
- files: ["eslint.config.mjs"],
8
- rules: {
9
- // ESLint configs in monorepos often intentionally import from the "src" subdirectory (because
10
- // the config files are JavaScript so they cannot use tsconfig-paths).
11
- "@typescript-eslint/no-restricted-imports": "off",
12
- // ESLint configs in monorepos often intentionally import from the "packages" subdirectory
13
- // (because the config files are JavaScript so they cannot use tsconfig-paths).
14
- "import-x/no-relative-packages": "off",
15
- },
16
- });