eslint-config-complete 1.6.5 → 1.7.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-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-eslint.js"],"names":[],"mappings":"AAwmBA;;;;;;;;GAQG;AACH,6FAMG"}
1
+ {"version":3,"file":"base-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-eslint.js"],"names":[],"mappings":"AAymBA;;;;;;;;GAQG;AACH,6FAMG"}
@@ -55,6 +55,7 @@ const POSSIBLE_PROBLEMS = {
55
55
  "no-sparse-arrays": "warn",
56
56
  "no-template-curly-in-string": "warn",
57
57
  "no-this-before-super": "off", // @typescript-eslint/eslint-recommended`
58
+ "no-unassigned-vars": "warn",
58
59
  "no-undef": "off", // @typescript-eslint/eslint-recommended
59
60
  "no-unexpected-multiline": "off", // eslint-config-prettier
60
61
  "no-unmodified-loop-condition": "warn",
@@ -1 +1 @@
1
- {"version":3,"file":"base-import-x.d.ts","sourceRoot":"","sources":["../../src/base/base-import-x.js"],"names":[],"mappings":"AAuOA;;;;;;;;;GASG;AACH,8FA8EE"}
1
+ {"version":3,"file":"base-import-x.d.ts","sourceRoot":"","sources":["../../src/base/base-import-x.js"],"names":[],"mappings":"AAuOA;;;;;;;;;GASG;AACH,8FAyGE"}
@@ -40,7 +40,7 @@ const HELPFUL_WARNINGS = {
40
40
  "**/protractor.conf.js", // protractor config
41
41
  "**/protractor.conf.*.js", // protractor config
42
42
  "**/karma.conf.js", // karma config
43
- "**/.eslintrc.{js,cjs,mjs,ts,cts,mts}", // eslint config // Modified for extra file extensions.
43
+ "**/.eslintrc.js", // eslint config
44
44
  "**/scripts/**/*.{js,cjs,mjs,ts,cts,mts}", // Files inside of a "scripts" directory.
45
45
  "**/tests/**/*.{js,cjs,mjs,ts,cts,mts}", // Files inside of a "tests" directory.
46
46
  "**/eslint.config.{js,cjs,mjs,ts,cts,mts}", // ESLint config
@@ -244,7 +244,11 @@ export const baseImportX = tseslint.config({
244
244
  "docusaurus.config.js",
245
245
  "docusaurus.config.ts",
246
246
  "eslint.config.js",
247
+ "eslint.config.cjs",
247
248
  "eslint.config.mjs",
249
+ "eslint.config.ts",
250
+ "eslint.config.cts",
251
+ "eslint.config.mts",
248
252
  "jest.config.js",
249
253
  "jest.config.mjs",
250
254
  "knip.js",
@@ -267,4 +271,26 @@ export const baseImportX = tseslint.config({
267
271
  rules: {
268
272
  "import-x/no-default-export": "off",
269
273
  },
274
+ },
275
+ // ESLint configuration files that use "complete-lint" have a false positive with
276
+ // "import-x/no-extraneous-dependencies".
277
+ {
278
+ files: [
279
+ "eslint.config.js",
280
+ "eslint.config.cjs",
281
+ "eslint.config.mjs",
282
+ "eslint.config.ts",
283
+ "eslint.config.cts",
284
+ "eslint.config.mts",
285
+ ],
286
+ rules: {
287
+ "import-x/no-extraneous-dependencies": [
288
+ "warn",
289
+ {
290
+ devDependencies: ["**/eslint.config.{js,cjs,mjs,ts,cts,mts}"],
291
+ optionalDependencies: false,
292
+ whitelist: ["eslint-config-complete", "typescript-eslint"],
293
+ },
294
+ ],
295
+ },
270
296
  });
@@ -1 +1 @@
1
- {"version":3,"file":"base-n.d.ts","sourceRoot":"","sources":["../../src/base/base-n.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wFA+HG"}
1
+ {"version":3,"file":"base-n.d.ts","sourceRoot":"","sources":["../../src/base/base-n.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wFAqIG"}
@@ -57,6 +57,11 @@ export const baseN = tseslint.config({
57
57
  "n/no-restricted-require": "off",
58
58
  /** Disabled since stylistic rules from this plugin are not used. */
59
59
  "n/no-sync": "off",
60
+ /**
61
+ * Disabled since modern ESM projects that are written in TypeScript do not generally have to
62
+ * worry about interop with `require`.
63
+ */
64
+ "n/no-top-level-await": "off",
60
65
  "n/no-unpublished-bin": "warn",
61
66
  /** Superseded by the `import-x/no-extraneous-dependencies` rule. */
62
67
  "n/no-unpublished-import": "off",
@@ -1 +1 @@
1
- {"version":3,"file":"base-typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-typescript-eslint.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,uGAkiBE"}
1
+ {"version":3,"file":"base-typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-typescript-eslint.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,uGAsiBE"}
@@ -23,6 +23,9 @@ export const baseTypeScriptESLint = tseslint.config({
23
23
  "eslint.config.js",
24
24
  "eslint.config.cjs",
25
25
  "eslint.config.mjs",
26
+ "eslint.config.ts",
27
+ "eslint.config.cts",
28
+ "eslint.config.mts",
26
29
  "Gruntfile.js",
27
30
  "Gruntfile.cjs",
28
31
  "Gruntfile.mjs",
@@ -270,6 +273,7 @@ export const baseTypeScriptESLint = tseslint.config({
270
273
  "@typescript-eslint/no-unnecessary-type-arguments": "warn",
271
274
  "@typescript-eslint/no-unnecessary-type-assertion": "warn",
272
275
  "@typescript-eslint/no-unnecessary-type-constraint": "warn",
276
+ "@typescript-eslint/no-unnecessary-type-conversion": "warn",
273
277
  "@typescript-eslint/no-unnecessary-type-parameters": "warn",
274
278
  "@typescript-eslint/no-unsafe-argument": "warn",
275
279
  "@typescript-eslint/no-unsafe-assignment": "warn",
@@ -1 +1 @@
1
- {"version":3,"file":"base-unicorn.d.ts","sourceRoot":"","sources":["../../src/base/base-unicorn.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,8FAqLG"}
1
+ {"version":3,"file":"base-unicorn.d.ts","sourceRoot":"","sources":["../../src/base/base-unicorn.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,8FA0LG"}
@@ -76,6 +76,9 @@ export const baseUnicorn = tseslint.config({
76
76
  /** Superseded by the `@typescript-eslint/no-this-alias` rule. */
77
77
  "unicorn/no-this-assignment": "off",
78
78
  "unicorn/no-typeof-undefined": "warn",
79
+ "unicorn/no-unnecessary-array-flat-depth": "warn",
80
+ "unicorn/no-unnecessary-array-splice-count": "warn",
81
+ "unicorn/no-unnecessary-slice-end": "warn",
79
82
  "unicorn/no-unnecessary-await": "warn",
80
83
  "unicorn/no-unnecessary-polyfills": "warn",
81
84
  "unicorn/no-unreadable-array-destructuring": "warn",
@@ -109,6 +112,7 @@ export const baseUnicorn = tseslint.config({
109
112
  "unicorn/prefer-event-target": "warn",
110
113
  "unicorn/prefer-export-from": "warn",
111
114
  "unicorn/prefer-global-this": "warn",
115
+ "unicorn/prefer-import-meta-properties": "warn",
112
116
  "unicorn/prefer-includes": "warn",
113
117
  /** Disabled because the rule is not compatible with TypeScript. */
114
118
  "unicorn/prefer-json-parse-buffer": "off",
@@ -131,6 +135,7 @@ export const baseUnicorn = tseslint.config({
131
135
  "unicorn/prefer-regexp-test": "warn",
132
136
  "unicorn/prefer-set-has": "warn",
133
137
  "unicorn/prefer-set-size": "warn",
138
+ "unicorn/prefer-single-call": "warn",
134
139
  "unicorn/prefer-spread": "warn",
135
140
  "unicorn/prefer-string-raw": "warn",
136
141
  "unicorn/prefer-string-replace-all": "warn",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-complete",
3
- "version": "1.6.5",
3
+ "version": "1.7.0",
4
4
  "description": "A sharable ESLint config for TypeScript projects.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -35,25 +35,25 @@
35
35
  "lint": "tsx ./scripts/lint.ts"
36
36
  },
37
37
  "dependencies": {
38
- "@stylistic/eslint-plugin": "4.2.0",
38
+ "@stylistic/eslint-plugin": "4.4.1",
39
39
  "confusing-browser-globals": "1.0.11",
40
- "eslint-import-resolver-typescript": "3.8.3",
41
- "eslint-plugin-complete": "1.0.12",
42
- "eslint-plugin-import-x": "4.6.1",
43
- "eslint-plugin-jsdoc": "50.6.3",
44
- "eslint-plugin-n": "17.15.1",
45
- "eslint-plugin-unicorn": "57.0.0",
46
- "typescript-eslint": "8.26.0"
40
+ "eslint-import-resolver-typescript": "4.4.3",
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",
45
+ "eslint-plugin-unicorn": "59.0.1",
46
+ "typescript-eslint": "8.34.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@eslint/js": "9.21.0",
49
+ "@eslint/js": "9.29.0",
50
50
  "@types/confusing-browser-globals": "1.0.3",
51
51
  "@types/eslint-config-prettier": "6.11.3",
52
- "@types/node": "22.13.9",
53
- "complete-common": "1.3.0",
54
- "complete-node": "5.1.1",
55
- "eslint-config-prettier": "10.0.2",
52
+ "@types/node": "24.0.3",
53
+ "complete-common": "2.3.0",
54
+ "complete-node": "7.0.2",
55
+ "eslint-config-prettier": "10.1.5",
56
56
  "extract-comments": "1.1.0",
57
- "typescript": "5.8.2"
57
+ "typescript": "5.8.3"
58
58
  }
59
59
  }