eslint-config-complete 4.1.2 → 4.1.4
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.js +2 -2
- package/dist/base/base-jsdoc.js +2 -2
- package/dist/base/base-n.js +2 -2
- package/dist/base/base-stylistic.js +2 -2
- package/dist/base/base-typescript-eslint.d.ts.map +1 -1
- package/dist/base/base-typescript-eslint.js +1 -0
- package/dist/base/base-unicorn.js +2 -2
- package/dist/base.js +2 -2
- package/dist/eslint-plugin.js +2 -2
- package/package.json +9 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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>}
|
|
@@ -189,7 +189,7 @@ const ALL_EXTENSIONS = [
|
|
|
189
189
|
export const baseImportX = defineConfig({
|
|
190
190
|
plugins: {
|
|
191
191
|
// @ts-expect-error https://github.com/un-ts/eslint-plugin-import-x/issues/421
|
|
192
|
-
"import-x":
|
|
192
|
+
"import-x": esLintPluginImportX,
|
|
193
193
|
},
|
|
194
194
|
// Beyond just specifying the plugin, additional configuration is necessary to make the plugin
|
|
195
195
|
// work properly with TypeScript:
|
package/dist/base/base-jsdoc.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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:
|
|
9
|
+
jsdoc: esLintPluginJSDoc,
|
|
10
10
|
},
|
|
11
11
|
rules: {
|
|
12
12
|
/** Disabled because it is not needed in TypeScript. */
|
package/dist/base/base-n.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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:
|
|
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
|
|
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":
|
|
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,
|
|
1
|
+
{"version":3,"file":"base-typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-typescript-eslint.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,oEAqiBE"}
|
|
@@ -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",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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:
|
|
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
|
|
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
|
-
...
|
|
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:
|
package/dist/eslint-plugin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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":
|
|
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
|
+
"version": "4.1.4",
|
|
4
4
|
"description": "A sharable ESLint config for TypeScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
"@stylistic/eslint-plugin": "5.6.1",
|
|
36
36
|
"confusing-browser-globals": "1.0.11",
|
|
37
37
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
38
|
-
"eslint-plugin-complete": "1.2.
|
|
38
|
+
"eslint-plugin-complete": "1.2.4",
|
|
39
39
|
"eslint-plugin-eslint-plugin": "7.2.0",
|
|
40
40
|
"eslint-plugin-import-x": "4.16.1",
|
|
41
|
-
"eslint-plugin-jsdoc": "61.
|
|
41
|
+
"eslint-plugin-jsdoc": "61.5.0",
|
|
42
42
|
"eslint-plugin-n": "17.23.1",
|
|
43
43
|
"eslint-plugin-unicorn": "62.0.0",
|
|
44
|
-
"jsonc-eslint-parser": "2.4.
|
|
45
|
-
"typescript-eslint": "8.
|
|
44
|
+
"jsonc-eslint-parser": "2.4.2",
|
|
45
|
+
"typescript-eslint": "8.51.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@eslint/js": "9.39.
|
|
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": "
|
|
52
|
-
"complete-common": "2.
|
|
53
|
-
"complete-node": "
|
|
51
|
+
"@types/node": "25.0.3",
|
|
52
|
+
"complete-common": "2.11.0",
|
|
53
|
+
"complete-node": "16.2.0",
|
|
54
54
|
"eslint-config-prettier": "10.1.8",
|
|
55
55
|
"extract-comments": "1.1.0",
|
|
56
56
|
"typescript": "5.9.3"
|