@debbl/eslint-config 3.6.0 → 3.6.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/index.cjs +9 -15
- package/dist/index.js +9 -15
- package/package.json +18 -19
package/dist/index.cjs
CHANGED
|
@@ -466,16 +466,6 @@ var javascript = async (options) => {
|
|
|
466
466
|
"prefer-rest-params": "error",
|
|
467
467
|
"prefer-spread": "error",
|
|
468
468
|
"prefer-template": "error",
|
|
469
|
-
"sort-imports": [
|
|
470
|
-
"error",
|
|
471
|
-
{
|
|
472
|
-
allowSeparatedGroups: false,
|
|
473
|
-
ignoreCase: false,
|
|
474
|
-
ignoreDeclarationSort: true,
|
|
475
|
-
ignoreMemberSort: false,
|
|
476
|
-
memberSyntaxSortOrder: ["none", "all", "multiple", "single"]
|
|
477
|
-
}
|
|
478
|
-
],
|
|
479
469
|
"symbol-description": "error",
|
|
480
470
|
"unicode-bom": ["error", "never"],
|
|
481
471
|
"unused-imports/no-unused-imports": "warn",
|
|
@@ -612,15 +602,16 @@ var jsonc = async (options) => {
|
|
|
612
602
|
// src/configs/markdown.ts
|
|
613
603
|
var markdown = async (options) => {
|
|
614
604
|
const { componentExts = [], overrides = {} } = options;
|
|
615
|
-
const [pluginMdx,
|
|
605
|
+
const [pluginMdx, pluginMarkdown] = await Promise.all([
|
|
616
606
|
interopDefault(import("eslint-plugin-mdx")),
|
|
617
|
-
interopDefault(import("eslint
|
|
607
|
+
interopDefault(import("@eslint/markdown"))
|
|
618
608
|
]);
|
|
619
609
|
return [
|
|
620
610
|
{
|
|
621
611
|
name: "eslint/markdown/setup",
|
|
622
612
|
plugins: {
|
|
623
|
-
mdx: pluginMdx
|
|
613
|
+
mdx: pluginMdx,
|
|
614
|
+
markdown: pluginMarkdown
|
|
624
615
|
}
|
|
625
616
|
},
|
|
626
617
|
{
|
|
@@ -628,7 +619,7 @@ var markdown = async (options) => {
|
|
|
628
619
|
files: [GLOB_MARKDOWN, GLOB_MDX],
|
|
629
620
|
languageOptions: {
|
|
630
621
|
ecmaVersion: "latest",
|
|
631
|
-
parser:
|
|
622
|
+
parser: parserPlain,
|
|
632
623
|
sourceType: "module"
|
|
633
624
|
},
|
|
634
625
|
processor: "mdx/remark",
|
|
@@ -1319,7 +1310,10 @@ async function unicorn() {
|
|
|
1319
1310
|
// Pass error message when throwing errors
|
|
1320
1311
|
"unicorn/error-message": "error",
|
|
1321
1312
|
// Uppercase regex escapes
|
|
1322
|
-
"unicorn/
|
|
1313
|
+
"unicorn/consistent-function-scoping": [
|
|
1314
|
+
"error",
|
|
1315
|
+
{ checkArrowFunctions: false }
|
|
1316
|
+
],
|
|
1323
1317
|
// Array.isArray instead of instanceof
|
|
1324
1318
|
"unicorn/no-instanceof-array": "error",
|
|
1325
1319
|
// Ban `new Array` as `Array` constructor's params are ambiguous
|
package/dist/index.js
CHANGED
|
@@ -383,16 +383,6 @@ var javascript = async (options) => {
|
|
|
383
383
|
"prefer-rest-params": "error",
|
|
384
384
|
"prefer-spread": "error",
|
|
385
385
|
"prefer-template": "error",
|
|
386
|
-
"sort-imports": [
|
|
387
|
-
"error",
|
|
388
|
-
{
|
|
389
|
-
allowSeparatedGroups: false,
|
|
390
|
-
ignoreCase: false,
|
|
391
|
-
ignoreDeclarationSort: true,
|
|
392
|
-
ignoreMemberSort: false,
|
|
393
|
-
memberSyntaxSortOrder: ["none", "all", "multiple", "single"]
|
|
394
|
-
}
|
|
395
|
-
],
|
|
396
386
|
"symbol-description": "error",
|
|
397
387
|
"unicode-bom": ["error", "never"],
|
|
398
388
|
"unused-imports/no-unused-imports": "warn",
|
|
@@ -529,15 +519,16 @@ var jsonc = async (options) => {
|
|
|
529
519
|
// src/configs/markdown.ts
|
|
530
520
|
var markdown = async (options) => {
|
|
531
521
|
const { componentExts = [], overrides = {} } = options;
|
|
532
|
-
const [pluginMdx,
|
|
522
|
+
const [pluginMdx, pluginMarkdown] = await Promise.all([
|
|
533
523
|
interopDefault(import("eslint-plugin-mdx")),
|
|
534
|
-
interopDefault(import("eslint
|
|
524
|
+
interopDefault(import("@eslint/markdown"))
|
|
535
525
|
]);
|
|
536
526
|
return [
|
|
537
527
|
{
|
|
538
528
|
name: "eslint/markdown/setup",
|
|
539
529
|
plugins: {
|
|
540
|
-
mdx: pluginMdx
|
|
530
|
+
mdx: pluginMdx,
|
|
531
|
+
markdown: pluginMarkdown
|
|
541
532
|
}
|
|
542
533
|
},
|
|
543
534
|
{
|
|
@@ -545,7 +536,7 @@ var markdown = async (options) => {
|
|
|
545
536
|
files: [GLOB_MARKDOWN, GLOB_MDX],
|
|
546
537
|
languageOptions: {
|
|
547
538
|
ecmaVersion: "latest",
|
|
548
|
-
parser:
|
|
539
|
+
parser: parserPlain,
|
|
549
540
|
sourceType: "module"
|
|
550
541
|
},
|
|
551
542
|
processor: "mdx/remark",
|
|
@@ -1236,7 +1227,10 @@ async function unicorn() {
|
|
|
1236
1227
|
// Pass error message when throwing errors
|
|
1237
1228
|
"unicorn/error-message": "error",
|
|
1238
1229
|
// Uppercase regex escapes
|
|
1239
|
-
"unicorn/
|
|
1230
|
+
"unicorn/consistent-function-scoping": [
|
|
1231
|
+
"error",
|
|
1232
|
+
{ checkArrowFunctions: false }
|
|
1233
|
+
],
|
|
1240
1234
|
// Array.isArray instead of instanceof
|
|
1241
1235
|
"unicorn/no-instanceof-array": "error",
|
|
1242
1236
|
// Ban `new Array` as `Array` constructor's params are ambiguous
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@debbl/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.6.
|
|
4
|
+
"version": "3.6.1",
|
|
5
5
|
"description": "Brendan Dash's ESLint config",
|
|
6
6
|
"author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -26,30 +26,29 @@
|
|
|
26
26
|
"eslint": ">=8.40.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"@eslint/markdown": "^6.1.0",
|
|
29
30
|
"@next/eslint-plugin-next": "15.0.0-rc.0",
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
31
|
-
"@typescript-eslint/parser": "^8.
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^8.6.0",
|
|
32
|
+
"@typescript-eslint/parser": "^8.6.0",
|
|
32
33
|
"eslint-config-prettier": "^9.1.0",
|
|
33
|
-
"eslint-mdx": "^3.1.5",
|
|
34
34
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
35
35
|
"eslint-plugin-import-x": "^4.2.1",
|
|
36
|
-
"eslint-plugin-jsdoc": "^50.2.
|
|
36
|
+
"eslint-plugin-jsdoc": "^50.2.4",
|
|
37
37
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
38
|
-
"eslint-plugin-markdown": "^5.1.0",
|
|
39
38
|
"eslint-plugin-mdx": "^3.1.5",
|
|
40
|
-
"eslint-plugin-n": "^17.10.
|
|
39
|
+
"eslint-plugin-n": "^17.10.3",
|
|
41
40
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
42
|
-
"eslint-plugin-perfectionist": "^3.
|
|
41
|
+
"eslint-plugin-perfectionist": "^3.6.0",
|
|
43
42
|
"eslint-plugin-prettier": "^5.2.1",
|
|
44
|
-
"eslint-plugin-react": "^7.
|
|
45
|
-
"eslint-plugin-react-compiler": "0.0.0-experimental-
|
|
46
|
-
"eslint-plugin-react-hooks": "0.0.0-experimental-
|
|
47
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
43
|
+
"eslint-plugin-react": "^7.36.1",
|
|
44
|
+
"eslint-plugin-react-compiler": "0.0.0-experimental-b6997ec-20240909",
|
|
45
|
+
"eslint-plugin-react-hooks": "0.0.0-experimental-e210d081-20240909",
|
|
46
|
+
"eslint-plugin-react-refresh": "^0.4.12",
|
|
48
47
|
"eslint-plugin-solid": "^0.14.3",
|
|
49
48
|
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
50
49
|
"eslint-plugin-toml": "^0.11.1",
|
|
51
50
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
52
|
-
"eslint-plugin-unused-imports": "^4.1.
|
|
51
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
53
52
|
"eslint-plugin-vitest": "^0.5.4",
|
|
54
53
|
"eslint-plugin-vue": "^9.28.0",
|
|
55
54
|
"eslint-plugin-yml": "^1.14.0",
|
|
@@ -64,18 +63,18 @@
|
|
|
64
63
|
"devDependencies": {
|
|
65
64
|
"@eslint/config-inspector": "^0.5.4",
|
|
66
65
|
"@types/eslint": "^9.6.1",
|
|
67
|
-
"@types/node": "^22.5.
|
|
68
|
-
"@types/react": "^18.3.
|
|
66
|
+
"@types/node": "^22.5.5",
|
|
67
|
+
"@types/react": "^18.3.7",
|
|
69
68
|
"bumpp": "^9.5.2",
|
|
70
69
|
"eslint": "^9.10.0",
|
|
71
|
-
"execa": "^9.
|
|
70
|
+
"execa": "^9.4.0",
|
|
72
71
|
"fast-glob": "^3.3.2",
|
|
73
72
|
"fs-extra": "^11.2.0",
|
|
74
73
|
"react": "^18.3.1",
|
|
75
74
|
"sucrase": "^3.35.0",
|
|
76
|
-
"tsup": "^8.
|
|
77
|
-
"typescript": "^5.
|
|
78
|
-
"vitest": "^2.
|
|
75
|
+
"tsup": "^8.3.0",
|
|
76
|
+
"typescript": "^5.6.2",
|
|
77
|
+
"vitest": "^2.1.1"
|
|
79
78
|
},
|
|
80
79
|
"scripts": {
|
|
81
80
|
"build": "tsup --format esm,cjs --clean --dts",
|