eslint-config-complete 3.2.0 → 3.2.2
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":"
|
|
1
|
+
{"version":3,"file":"base-import-x.d.ts","sourceRoot":"","sources":["../../src/base/base-import-x.js"],"names":[],"mappings":"AA+NA;;;;;;;;;GASG;AACH,gGAuFE"}
|
|
@@ -27,30 +27,16 @@ const HELPFUL_WARNINGS = {
|
|
|
27
27
|
"test.{js,jsx}", // repos with a single test file
|
|
28
28
|
"test-*.{js,jsx}", // repos with multiple top-level test files
|
|
29
29
|
"**/*{.,_}{test,spec}.{js,jsx}", // tests where the extension or filename suffix denotes that it is a test
|
|
30
|
-
"**/jest.config.{js,cjs,mjs,ts,cts,mts}", // jest config // Modified for extra file extensions.
|
|
31
|
-
"**/jest.setup.{js,cjs,mjs,ts,cts,mts}", // jest setup // Modified for extra file extensions.
|
|
32
|
-
"**/vue.config.js", // vue-cli config
|
|
33
|
-
"**/webpack.config.js", // webpack config
|
|
34
|
-
"**/webpack.config.*.js", // webpack config
|
|
35
|
-
"**/rollup.config.js", // rollup config
|
|
36
|
-
"**/rollup.config.*.js", // rollup config
|
|
37
30
|
"**/gulpfile.js", // gulp config
|
|
38
31
|
"**/gulpfile.*.js", // gulp config
|
|
39
32
|
"**/Gruntfile{,.js}", // grunt config
|
|
40
33
|
"**/protractor.conf.js", // protractor config
|
|
41
34
|
"**/protractor.conf.*.js", // protractor config
|
|
42
35
|
"**/karma.conf.js", // karma config
|
|
43
|
-
"**/.eslintrc.js", // eslint config
|
|
44
36
|
"**/scripts/**/*.{js,cjs,mjs,ts,cts,mts}", // Files inside of a "scripts" directory.
|
|
45
37
|
"**/tests/**/*.{js,cjs,mjs,ts,cts,mts}", // Files inside of a "tests" directory.
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"**/eslint.config.*.{js,cjs,mjs,ts,cts,mts}",
|
|
49
|
-
"**/eslint-doc-generator.config.{js,cjs,mjs,ts,cts,mts}",
|
|
50
|
-
"**/prettier.config.{js,cjs,mjs,ts,cts,mts}",
|
|
51
|
-
"**/typedoc.config.{js,cjs,mjs,ts,cts,mts}",
|
|
52
|
-
"**/typedoc.config.*.{js,cjs,mjs,ts,cts,mts}",
|
|
53
|
-
"**/vite.config.{js,cjs,mjs,ts,cts,mts}",
|
|
38
|
+
"**/*.config.{js,cjs,mjs,ts,cts,mts}", // Config files like "eslint.config.mjs"
|
|
39
|
+
"**/*.config.*.{js,cjs,mjs,ts,cts,mts}", // Config files like "eslint.config.json.mjs"
|
|
54
40
|
],
|
|
55
41
|
optionalDependencies: false,
|
|
56
42
|
},
|
|
@@ -245,50 +231,18 @@ export const baseImportX = defineConfig({
|
|
|
245
231
|
// Some configuration files must export a default object as a design limitation.
|
|
246
232
|
{
|
|
247
233
|
files: [
|
|
248
|
-
".
|
|
249
|
-
".
|
|
250
|
-
"docusaurus.config.js",
|
|
251
|
-
"docusaurus.config.ts",
|
|
252
|
-
"eslint.config.js",
|
|
253
|
-
"eslint.config.mjs",
|
|
254
|
-
"eslint.config.ts",
|
|
255
|
-
"eslint.config.mts",
|
|
256
|
-
"eslint.config.*.js",
|
|
257
|
-
"eslint.config.*.mjs",
|
|
258
|
-
"eslint.config.*.ts",
|
|
259
|
-
"eslint.config.*.mts",
|
|
260
|
-
"eslint-doc-generator.config.js",
|
|
261
|
-
"eslint-doc-generator.config.mjs",
|
|
262
|
-
"jest.config.js",
|
|
263
|
-
"jest.config.mjs",
|
|
264
|
-
"knip.js",
|
|
265
|
-
"knip.ts",
|
|
266
|
-
"knip.config.js",
|
|
267
|
-
"knip.config.ts",
|
|
268
|
-
"prettier.config.js",
|
|
269
|
-
"prettier.config.mjs",
|
|
270
|
-
"rollup.config.js",
|
|
271
|
-
"rollup.config.mjs",
|
|
234
|
+
"**/*.config.{js,mjs,ts,mts}", // Config files like "eslint.config.mjs"
|
|
235
|
+
"**/*.config.*.{js,mjs,ts,mts}", // Config files like "eslint.config.json.mjs"
|
|
272
236
|
"sidebars.js", // Docusaurus config file
|
|
273
237
|
"sidebars.ts", // Docusaurus config file
|
|
274
|
-
"typedoc.config.js",
|
|
275
|
-
"typedoc.config.mjs",
|
|
276
|
-
"vite.config.js",
|
|
277
|
-
"vite.config.mjs",
|
|
278
|
-
"webpack.config.js",
|
|
279
|
-
"webpack.config.mjs",
|
|
280
238
|
],
|
|
281
239
|
rules: {
|
|
282
240
|
"import-x/no-default-export": "off",
|
|
283
241
|
},
|
|
284
242
|
}, {
|
|
285
243
|
files: [
|
|
286
|
-
"eslint.config.js",
|
|
287
|
-
"eslint.config
|
|
288
|
-
"eslint.config.mjs",
|
|
289
|
-
"eslint.config.ts",
|
|
290
|
-
"eslint.config.cts",
|
|
291
|
-
"eslint.config.mts",
|
|
244
|
+
"**/eslint.config.{js,cjs,mjs,ts,cts,mts}", // Config files like "eslint.config.mjs"
|
|
245
|
+
"**/eslint.config.*.{js,cjs,mjs,ts,cts,mts}", // Config files like "eslint.config.json.mjs"
|
|
292
246
|
],
|
|
293
247
|
rules: {
|
|
294
248
|
// TypeScript projects that use "complete-lint" have a false positive when importing
|
|
@@ -298,7 +252,10 @@ export const baseImportX = defineConfig({
|
|
|
298
252
|
"import-x/no-extraneous-dependencies": [
|
|
299
253
|
"warn",
|
|
300
254
|
{
|
|
301
|
-
devDependencies: [
|
|
255
|
+
devDependencies: [
|
|
256
|
+
"**/eslint.config.{js,cjs,mjs,ts,cts,mts}",
|
|
257
|
+
"**/eslint.config.*.{js,cjs,mjs,ts,cts,mts}",
|
|
258
|
+
],
|
|
302
259
|
optionalDependencies: false,
|
|
303
260
|
whitelist: ["eslint", "eslint-config-complete"],
|
|
304
261
|
},
|
|
@@ -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,yGAiiBE"}
|
|
@@ -18,52 +18,11 @@ export const baseTypeScriptESLint = defineConfig({
|
|
|
18
18
|
// We whitelist some specific configuration files that downstream users may have in their
|
|
19
19
|
// projects. These files should be linted but should not be included in compiled output.
|
|
20
20
|
allowDefaultProject: [
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"babel.config.mjs",
|
|
24
|
-
"esbuild.config.js",
|
|
25
|
-
"esbuild.config.cjs",
|
|
26
|
-
"esbuild.config.mjs",
|
|
27
|
-
"eslint.config.js",
|
|
28
|
-
"eslint.config.cjs",
|
|
29
|
-
"eslint.config.mjs",
|
|
30
|
-
"eslint.config.ts",
|
|
31
|
-
"eslint.config.cts",
|
|
32
|
-
"eslint.config.mts",
|
|
33
|
-
"eslint.config.*.js",
|
|
34
|
-
"eslint.config.*.cjs",
|
|
35
|
-
"eslint.config.*.mjs",
|
|
36
|
-
"eslint.config.*.ts",
|
|
37
|
-
"eslint.config.*.cts",
|
|
38
|
-
"eslint.config.*.mts",
|
|
39
|
-
"eslint-doc-generator.config.js",
|
|
40
|
-
"eslint-doc-generator.config.cjs",
|
|
41
|
-
"eslint-doc-generator.config.mjs",
|
|
21
|
+
"*.config.{js,cjs,mjs,ts,cts,mts}", // Config files like "eslint.config.mjs"
|
|
22
|
+
"*.config.*.{js,cjs,mjs,ts,cts,mts}", // Config files like "eslint.config.json.mjs"
|
|
42
23
|
"Gruntfile.js",
|
|
43
24
|
"Gruntfile.cjs",
|
|
44
25
|
"Gruntfile.mjs",
|
|
45
|
-
"jest.config.js",
|
|
46
|
-
"jest.config.cjs",
|
|
47
|
-
"jest.config.mjs",
|
|
48
|
-
"knip.js",
|
|
49
|
-
"knip.ts",
|
|
50
|
-
"knip.config.js",
|
|
51
|
-
"knip.config.ts",
|
|
52
|
-
"prettier.config.js",
|
|
53
|
-
"prettier.config.cjs",
|
|
54
|
-
"prettier.config.mjs",
|
|
55
|
-
"rollup.config.js",
|
|
56
|
-
"rollup.config.cjs",
|
|
57
|
-
"rollup.config.mjs",
|
|
58
|
-
"typedoc.config.js",
|
|
59
|
-
"typedoc.config.cjs",
|
|
60
|
-
"typedoc.config.mjs",
|
|
61
|
-
"vite.config.js",
|
|
62
|
-
"vite.config.cjs",
|
|
63
|
-
"vite.config.mjs",
|
|
64
|
-
"webpack.config.js",
|
|
65
|
-
"webpack.config.cjs",
|
|
66
|
-
"webpack.config.mjs",
|
|
67
26
|
],
|
|
68
27
|
// By default, the whitelisted files above will use the default TypeScript compiler
|
|
69
28
|
// options. However, certain ESLint rules such as
|
package/dist/base.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH,uGAkBE"}
|
package/dist/base.js
CHANGED
|
@@ -14,14 +14,7 @@ import { baseUnicorn } from "./base/base-unicorn.js";
|
|
|
14
14
|
* originating plugin) .
|
|
15
15
|
*/
|
|
16
16
|
export const completeConfigBase = defineConfig(...baseESLint, ...baseTypeScriptESLint, ...baseStylistic, ...baseImportX, ...baseJSDoc, ...baseN, // "n" stands for Node.
|
|
17
|
-
...baseUnicorn, ...baseComplete,
|
|
18
|
-
// We prefer the official `reportUnusedDisableDirectives` linter option over the 3rd-party plugin
|
|
19
|
-
// of "eslint-plugin-eslint-comments".
|
|
20
|
-
{
|
|
21
|
-
linterOptions: {
|
|
22
|
-
reportUnusedDisableDirectives: "warn",
|
|
23
|
-
},
|
|
24
|
-
}, {
|
|
17
|
+
...baseUnicorn, ...baseComplete, {
|
|
25
18
|
// By default, ESLint ignores "**/node_modules/" and ".git/":
|
|
26
19
|
// https://eslint.org/docs/latest/use/configure/ignore#ignoring-files
|
|
27
20
|
// We also want to ignore:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-complete",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "A sharable ESLint config for TypeScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"eslint-plugin-complete": "1.1.3",
|
|
39
39
|
"eslint-plugin-eslint-plugin": "7.0.0",
|
|
40
40
|
"eslint-plugin-import-x": "4.16.1",
|
|
41
|
-
"eslint-plugin-jsdoc": "61.1.
|
|
41
|
+
"eslint-plugin-jsdoc": "61.1.2",
|
|
42
42
|
"eslint-plugin-n": "17.23.1",
|
|
43
43
|
"eslint-plugin-unicorn": "61.0.2",
|
|
44
44
|
"jsonc-eslint-parser": "2.4.1",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@types/confusing-browser-globals": "1.0.3",
|
|
50
50
|
"@types/eslint-config-prettier": "6.11.3",
|
|
51
51
|
"@types/node": "24.7.2",
|
|
52
|
-
"complete-common": "2.
|
|
52
|
+
"complete-common": "2.8.0",
|
|
53
53
|
"complete-node": "12.2.1",
|
|
54
54
|
"eslint-config-prettier": "10.1.8",
|
|
55
55
|
"extract-comments": "1.1.0",
|