eslint-config-complete 1.7.1 → 2.0.1

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":"AAyOA;;;;;;;;;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"}
@@ -272,10 +272,7 @@ export const baseImportX = tseslint.config({
272
272
  rules: {
273
273
  "import-x/no-default-export": "off",
274
274
  },
275
- },
276
- // ESLint configuration files that use "complete-lint" have a false positive with
277
- // "import-x/no-extraneous-dependencies".
278
- {
275
+ }, {
279
276
  files: [
280
277
  "eslint.config.js",
281
278
  "eslint.config.cjs",
@@ -285,6 +282,8 @@ export const baseImportX = tseslint.config({
285
282
  "eslint.config.mts",
286
283
  ],
287
284
  rules: {
285
+ // ESLint configuration files that use "complete-lint" have a false positive with
286
+ // "import-x/no-extraneous-dependencies".
288
287
  "import-x/no-extraneous-dependencies": [
289
288
  "warn",
290
289
  {
@@ -293,5 +292,8 @@ export const baseImportX = tseslint.config({
293
292
  whitelist: ["eslint-config-complete", "typescript-eslint"],
294
293
  },
295
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",
296
298
  },
297
299
  });
@@ -27,7 +27,7 @@ export const baseStylistic = tseslint.config({
27
27
  "double",
28
28
  {
29
29
  avoidEscape: true,
30
- allowTemplateLiterals: false,
30
+ allowTemplateLiterals: "never",
31
31
  },
32
32
  ],
33
33
  /**
@@ -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.1",
3
+ "version": "2.0.1",
4
4
  "description": "A sharable ESLint config for TypeScript projects.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -35,24 +35,24 @@
35
35
  "lint": "tsx ./scripts/lint.ts"
36
36
  },
37
37
  "dependencies": {
38
- "@stylistic/eslint-plugin": "5.0.0",
38
+ "@stylistic/eslint-plugin": "5.2.0",
39
39
  "confusing-browser-globals": "1.0.11",
40
40
  "eslint-import-resolver-typescript": "4.4.4",
41
- "eslint-plugin-complete": "1.1.0",
41
+ "eslint-plugin-complete": "1.1.1",
42
42
  "eslint-plugin-import-x": "4.16.1",
43
- "eslint-plugin-jsdoc": "51.2.3",
44
- "eslint-plugin-n": "17.20.0",
43
+ "eslint-plugin-jsdoc": "51.4.1",
44
+ "eslint-plugin-n": "17.21.0",
45
45
  "eslint-plugin-unicorn": "59.0.1",
46
- "typescript-eslint": "8.35.0"
46
+ "typescript-eslint": "8.37.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@eslint/js": "9.29.0",
49
+ "@eslint/js": "9.31.0",
50
50
  "@types/confusing-browser-globals": "1.0.3",
51
51
  "@types/eslint-config-prettier": "6.11.3",
52
- "@types/node": "24.0.4",
53
- "complete-common": "2.3.1",
54
- "complete-node": "7.2.0",
55
- "eslint-config-prettier": "10.1.5",
52
+ "@types/node": "24.0.15",
53
+ "complete-common": "2.4.0",
54
+ "complete-node": "7.4.0",
55
+ "eslint-config-prettier": "10.1.8",
56
56
  "extract-comments": "1.1.0",
57
57
  "typescript": "5.8.3"
58
58
  }
@@ -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
- });