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.
- package/dist/base/base-import-x.d.ts.map +1 -1
- package/dist/base/base-import-x.js +6 -4
- package/dist/base/base-stylistic.js +1 -1
- package/dist/base/base-typescript-eslint.d.ts.map +1 -1
- package/dist/base/base-typescript-eslint.js +16 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +11 -11
- package/dist/monorepo.d.ts +0 -6
- package/dist/monorepo.d.ts.map +0 -1
- package/dist/monorepo.js +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-import-x.d.ts","sourceRoot":"","sources":["../../src/base/base-import-x.js"],"names":[],"mappings":"AAyOA;;;;;;;;;GASG;AACH,
|
|
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
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-typescript-eslint.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,
|
|
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
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-complete",
|
|
3
|
-
"version": "
|
|
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.
|
|
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.
|
|
41
|
+
"eslint-plugin-complete": "1.1.1",
|
|
42
42
|
"eslint-plugin-import-x": "4.16.1",
|
|
43
|
-
"eslint-plugin-jsdoc": "51.
|
|
44
|
-
"eslint-plugin-n": "17.
|
|
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.
|
|
46
|
+
"typescript-eslint": "8.37.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@eslint/js": "9.
|
|
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.
|
|
53
|
-
"complete-common": "2.
|
|
54
|
-
"complete-node": "7.
|
|
55
|
-
"eslint-config-prettier": "10.1.
|
|
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
|
}
|
package/dist/monorepo.d.ts
DELETED
|
@@ -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
|
package/dist/monorepo.d.ts.map
DELETED
|
@@ -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
|
-
});
|