eslint-config-complete 4.1.3 → 4.1.5

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":"AA8NA;;;;;;;;;GASG;AACH,2DAuFE"}
1
+ {"version":3,"file":"base-import-x.d.ts","sourceRoot":"","sources":["../../src/base/base-import-x.js"],"names":[],"mappings":"AA+NA;;;;;;;;;GASG;AACH,2DAuFE"}
@@ -1,4 +1,4 @@
1
- import ESLintPluginImportX from "eslint-plugin-import-x";
1
+ import esLintPluginImportX from "eslint-plugin-import-x";
2
2
  import { defineConfig } from "eslint/config";
3
3
  /**
4
4
  * @type {Record<string, import("@typescript-eslint/utils").TSESLint.SharedConfig.RuleEntry>}
@@ -34,6 +34,7 @@ const HELPFUL_WARNINGS = {
34
34
  "**/scripts/**", // Files inside of a "scripts" directory.
35
35
  "**/test/**", // Files inside of a "test" directory.
36
36
  "**/tests/**", // Files inside of a "tests" directory.
37
+ "**/*.test.{js,cjs,mjs,ts,cts,mts}", // Test files
37
38
  "**/*.config.{js,cjs,mjs,ts,cts,mts}", // Config files like "eslint.config.mjs"
38
39
  "**/*.config.*.{js,cjs,mjs,ts,cts,mts}", // Config files like "eslint.config.json.mjs"
39
40
  ],
@@ -189,7 +190,7 @@ const ALL_EXTENSIONS = [
189
190
  export const baseImportX = defineConfig({
190
191
  plugins: {
191
192
  // @ts-expect-error https://github.com/un-ts/eslint-plugin-import-x/issues/421
192
- "import-x": ESLintPluginImportX,
193
+ "import-x": esLintPluginImportX,
193
194
  },
194
195
  // Beyond just specifying the plugin, additional configuration is necessary to make the plugin
195
196
  // work properly with TypeScript:
@@ -1,4 +1,4 @@
1
- import ESLintPluginJSDoc from "eslint-plugin-jsdoc";
1
+ import esLintPluginJSDoc from "eslint-plugin-jsdoc";
2
2
  import { defineConfig } from "eslint/config";
3
3
  /**
4
4
  * This ESLint config only contains rules from `eslint-plugin-jsdoc`:
@@ -6,7 +6,7 @@ import { defineConfig } from "eslint/config";
6
6
  */
7
7
  export const baseJSDoc = defineConfig({
8
8
  plugins: {
9
- jsdoc: ESLintPluginJSDoc,
9
+ jsdoc: esLintPluginJSDoc,
10
10
  },
11
11
  rules: {
12
12
  /** Disabled because it is not needed in TypeScript. */
@@ -1,4 +1,4 @@
1
- import ESLintPluginN from "eslint-plugin-n";
1
+ import esLintPluginN from "eslint-plugin-n";
2
2
  import { defineConfig } from "eslint/config";
3
3
  /**
4
4
  * This ESLint config only contains rules from `eslint-plugin-n`:
@@ -7,7 +7,7 @@ import { defineConfig } from "eslint/config";
7
7
  */
8
8
  export const baseN = defineConfig({
9
9
  plugins: {
10
- n: ESLintPluginN,
10
+ n: esLintPluginN,
11
11
  },
12
12
  rules: {
13
13
  /** Disabled since stylistic rules from this plugin are not used. */
@@ -1,4 +1,4 @@
1
- import ESLintPluginStylistic from "@stylistic/eslint-plugin";
1
+ import esLintPluginStylistic from "@stylistic/eslint-plugin";
2
2
  import { defineConfig } from "eslint/config";
3
3
  /**
4
4
  * This ESLint config only contains rules from `@stylistic/eslint-plugin`:
@@ -6,7 +6,7 @@ import { defineConfig } from "eslint/config";
6
6
  */
7
7
  export const baseStylistic = defineConfig({
8
8
  plugins: {
9
- "@stylistic": ESLintPluginStylistic,
9
+ "@stylistic": esLintPluginStylistic,
10
10
  },
11
11
  rules: {
12
12
  /** This rule is not handled by Prettier, so we must use ESLint to enforce it. */
@@ -1 +1 @@
1
- {"version":3,"file":"base-typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-typescript-eslint.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,oEAoiBE"}
1
+ {"version":3,"file":"base-typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-typescript-eslint.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,oEAuiBE"}
@@ -297,6 +297,7 @@ export const baseTypeScriptESLint = defineConfig({
297
297
  /** Disabled because it can prevent code from being structured sequentially. */
298
298
  "@typescript-eslint/no-use-before-define": "off",
299
299
  "@typescript-eslint/no-useless-constructor": "error",
300
+ "@typescript-eslint/no-useless-default-assignment": "error",
300
301
  "@typescript-eslint/no-useless-empty-export": "error",
301
302
  "@typescript-eslint/no-var-requires": "error",
302
303
  "@typescript-eslint/no-wrapper-object-types": "error",
@@ -401,6 +402,7 @@ export const baseTypeScriptESLint = defineConfig({
401
402
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
402
403
  },
403
404
  ],
405
+ "@typescript-eslint/strict-void-return": "error",
404
406
  /**
405
407
  * The `allowDefaultCaseForExhaustiveSwitch` option is disabled and the
406
408
  * `requireDefaultForNonUnion` option is enabled to make the rule stricter. The
@@ -1,4 +1,4 @@
1
- import ESLintPluginUnicorn from "eslint-plugin-unicorn";
1
+ import esLintPluginUnicorn from "eslint-plugin-unicorn";
2
2
  import { defineConfig } from "eslint/config";
3
3
  /**
4
4
  * This ESLint config only contains rules from `eslint-plugin-unicorn`:
@@ -6,7 +6,7 @@ import { defineConfig } from "eslint/config";
6
6
  */
7
7
  export const baseUnicorn = defineConfig({
8
8
  plugins: {
9
- unicorn: ESLintPluginUnicorn,
9
+ unicorn: esLintPluginUnicorn,
10
10
  },
11
11
  rules: {
12
12
  "unicorn/better-regex": "error",
package/dist/base.js CHANGED
@@ -1,4 +1,4 @@
1
- import ESLintPluginComplete from "eslint-plugin-complete";
1
+ import esLintPluginComplete from "eslint-plugin-complete";
2
2
  import { defineConfig } from "eslint/config";
3
3
  import { baseESLint } from "./base/base-eslint.js";
4
4
  import { baseImportX } from "./base/base-import-x.js";
@@ -21,7 +21,7 @@ export const completeConfigBase = defineConfig(
21
21
  ...baseUnicorn,
22
22
  // TODO: The `defineConfig` helper function is bugged.
23
23
  // @ts-expect-error https://github.com/typescript-eslint/typescript-eslint/issues/11543
24
- ...ESLintPluginComplete.configs.recommended, {
24
+ ...esLintPluginComplete.configs.recommended, {
25
25
  // By default, ESLint ignores "**/node_modules/" and ".git/":
26
26
  // https://eslint.org/docs/latest/use/configure/ignore#ignoring-files
27
27
  // We also want to ignore:
@@ -1,4 +1,4 @@
1
- import ESLintPluginESLintPlugin from "eslint-plugin-eslint-plugin";
1
+ import esLintPluginESLintPlugin from "eslint-plugin-eslint-plugin";
2
2
  import { defineConfig } from "eslint/config";
3
3
  /**
4
4
  * This ESLint config is meant to be used as a base for all TypeScript projects.
@@ -8,7 +8,7 @@ import { defineConfig } from "eslint/config";
8
8
  */
9
9
  export const completeConfigESLintPlugin = defineConfig({
10
10
  plugins: {
11
- "eslint-plugin": ESLintPluginESLintPlugin,
11
+ "eslint-plugin": esLintPluginESLintPlugin,
12
12
  },
13
13
  rules: {
14
14
  "eslint-plugin/consistent-output": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-complete",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "description": "A sharable ESLint config for TypeScript projects.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -27,30 +27,31 @@
27
27
  "dist"
28
28
  ],
29
29
  "scripts": {
30
- "build": "tsx ./scripts/build.ts",
31
- "docs": "tsx ./scripts/docs.ts",
32
- "lint": "tsx ./scripts/lint.ts"
30
+ "build": "bun run ./scripts/build.ts",
31
+ "docs": "bun run ./scripts/docs.ts",
32
+ "lint": "bun run ./scripts/lint.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@stylistic/eslint-plugin": "5.6.1",
35
+ "@stylistic/eslint-plugin": "5.7.0",
36
36
  "confusing-browser-globals": "1.0.11",
37
37
  "eslint-import-resolver-typescript": "4.4.4",
38
- "eslint-plugin-complete": "1.2.3",
39
- "eslint-plugin-eslint-plugin": "7.2.0",
38
+ "eslint-plugin-complete": "1.2.4",
39
+ "eslint-plugin-eslint-plugin": "7.3.0",
40
40
  "eslint-plugin-import-x": "4.16.1",
41
- "eslint-plugin-jsdoc": "61.5.0",
42
- "eslint-plugin-n": "17.23.1",
41
+ "eslint-plugin-jsdoc": "62.0.0",
42
+ "eslint-plugin-n": "17.23.2",
43
43
  "eslint-plugin-unicorn": "62.0.0",
44
44
  "jsonc-eslint-parser": "2.4.2",
45
- "typescript-eslint": "8.49.0"
45
+ "typescript-eslint": "8.53.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@eslint/js": "9.39.1",
48
+ "@eslint/js": "9.39.2",
49
49
  "@types/confusing-browser-globals": "1.0.3",
50
50
  "@types/eslint-config-prettier": "6.11.3",
51
- "@types/node": "24.10.2",
52
- "complete-common": "2.10.0",
53
- "complete-node": "13.0.0",
51
+ "@types/node": "25.0.9",
52
+ "@typescript-eslint/utils": "8.53.0",
53
+ "complete-common": "2.16.0",
54
+ "complete-node": "16.2.0",
54
55
  "eslint-config-prettier": "10.1.8",
55
56
  "extract-comments": "1.1.0",
56
57
  "typescript": "5.9.3"