eslint-config-complete 1.6.6 → 1.7.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-eslint.d.ts.map +1 -1
- package/dist/base/base-eslint.js +1 -0
- package/dist/base/base-import-x.d.ts.map +1 -1
- package/dist/base/base-import-x.js +28 -1
- package/dist/base/base-n.d.ts.map +1 -1
- package/dist/base/base-n.js +5 -0
- package/dist/base/base-typescript-eslint.d.ts.map +1 -1
- package/dist/base/base-typescript-eslint.js +4 -0
- package/dist/base/base-unicorn.d.ts.map +1 -1
- package/dist/base/base-unicorn.js +5 -0
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-eslint.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-eslint.js"],"names":[],"mappings":"AAymBA;;;;;;;;GAQG;AACH,6FAMG"}
|
package/dist/base/base-eslint.js
CHANGED
|
@@ -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":"
|
|
1
|
+
{"version":3,"file":"base-import-x.d.ts","sourceRoot":"","sources":["../../src/base/base-import-x.js"],"names":[],"mappings":"AAyOA;;;;;;;;;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.
|
|
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
|
|
@@ -172,6 +172,7 @@ const STYLE_GUIDE = {
|
|
|
172
172
|
* exports).
|
|
173
173
|
*/
|
|
174
174
|
"import-x/prefer-default-export": "off",
|
|
175
|
+
"import-x/prefer-namespace-import": "warn",
|
|
175
176
|
};
|
|
176
177
|
/**
|
|
177
178
|
* Omit `.d.ts` because:
|
|
@@ -244,7 +245,11 @@ export const baseImportX = tseslint.config({
|
|
|
244
245
|
"docusaurus.config.js",
|
|
245
246
|
"docusaurus.config.ts",
|
|
246
247
|
"eslint.config.js",
|
|
248
|
+
"eslint.config.cjs",
|
|
247
249
|
"eslint.config.mjs",
|
|
250
|
+
"eslint.config.ts",
|
|
251
|
+
"eslint.config.cts",
|
|
252
|
+
"eslint.config.mts",
|
|
248
253
|
"jest.config.js",
|
|
249
254
|
"jest.config.mjs",
|
|
250
255
|
"knip.js",
|
|
@@ -267,4 +272,26 @@ export const baseImportX = tseslint.config({
|
|
|
267
272
|
rules: {
|
|
268
273
|
"import-x/no-default-export": "off",
|
|
269
274
|
},
|
|
275
|
+
},
|
|
276
|
+
// ESLint configuration files that use "complete-lint" have a false positive with
|
|
277
|
+
// "import-x/no-extraneous-dependencies".
|
|
278
|
+
{
|
|
279
|
+
files: [
|
|
280
|
+
"eslint.config.js",
|
|
281
|
+
"eslint.config.cjs",
|
|
282
|
+
"eslint.config.mjs",
|
|
283
|
+
"eslint.config.ts",
|
|
284
|
+
"eslint.config.cts",
|
|
285
|
+
"eslint.config.mts",
|
|
286
|
+
],
|
|
287
|
+
rules: {
|
|
288
|
+
"import-x/no-extraneous-dependencies": [
|
|
289
|
+
"warn",
|
|
290
|
+
{
|
|
291
|
+
devDependencies: ["**/eslint.config.{js,cjs,mjs,ts,cts,mts}"],
|
|
292
|
+
optionalDependencies: false,
|
|
293
|
+
whitelist: ["eslint-config-complete", "typescript-eslint"],
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
},
|
|
270
297
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-n.d.ts","sourceRoot":"","sources":["../../src/base/base-n.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"base-n.d.ts","sourceRoot":"","sources":["../../src/base/base-n.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wFAqIG"}
|
package/dist/base/base-n.js
CHANGED
|
@@ -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,
|
|
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,
|
|
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.
|
|
3
|
+
"version": "1.7.1",
|
|
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": "
|
|
38
|
+
"@stylistic/eslint-plugin": "5.0.0",
|
|
39
39
|
"confusing-browser-globals": "1.0.11",
|
|
40
|
-
"eslint-import-resolver-typescript": "
|
|
41
|
-
"eslint-plugin-complete": "1.0
|
|
42
|
-
"eslint-plugin-import-x": "4.
|
|
43
|
-
"eslint-plugin-jsdoc": "
|
|
44
|
-
"eslint-plugin-n": "17.
|
|
45
|
-
"eslint-plugin-unicorn": "
|
|
46
|
-
"typescript-eslint": "8.
|
|
40
|
+
"eslint-import-resolver-typescript": "4.4.4",
|
|
41
|
+
"eslint-plugin-complete": "1.1.0",
|
|
42
|
+
"eslint-plugin-import-x": "4.16.1",
|
|
43
|
+
"eslint-plugin-jsdoc": "51.2.3",
|
|
44
|
+
"eslint-plugin-n": "17.20.0",
|
|
45
|
+
"eslint-plugin-unicorn": "59.0.1",
|
|
46
|
+
"typescript-eslint": "8.35.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@eslint/js": "9.
|
|
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": "
|
|
53
|
-
"complete-common": "2.
|
|
54
|
-
"complete-node": "
|
|
55
|
-
"eslint-config-prettier": "10.1.
|
|
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",
|
|
56
56
|
"extract-comments": "1.1.0",
|
|
57
|
-
"typescript": "5.8.
|
|
57
|
+
"typescript": "5.8.3"
|
|
58
58
|
}
|
|
59
59
|
}
|