@2digits/eslint-config 4.6.0 → 4.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.d.mts +32 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -2531,6 +2531,11 @@ interface RuleOptions {
|
|
|
2531
2531
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
|
|
2532
2532
|
*/
|
|
2533
2533
|
'node/no-sync'?: Linter.RuleEntry<NodeNoSync>;
|
|
2534
|
+
/**
|
|
2535
|
+
* disallow top-level `await` in published modules
|
|
2536
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-top-level-await.md
|
|
2537
|
+
*/
|
|
2538
|
+
'node/no-top-level-await'?: Linter.RuleEntry<NodeNoTopLevelAwait>;
|
|
2534
2539
|
/**
|
|
2535
2540
|
* disallow `bin` files that npm ignores
|
|
2536
2541
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
|
|
@@ -9610,7 +9615,33 @@ type NodeNoRestrictedRequire = [] | [(string | {
|
|
|
9610
9615
|
// ----- node/no-sync -----
|
|
9611
9616
|
type NodeNoSync = [] | [{
|
|
9612
9617
|
allowAtRootLevel?: boolean;
|
|
9613
|
-
ignores?: string
|
|
9618
|
+
ignores?: (string | {
|
|
9619
|
+
from?: "file";
|
|
9620
|
+
path?: string;
|
|
9621
|
+
name?: string[];
|
|
9622
|
+
} | {
|
|
9623
|
+
from?: "lib";
|
|
9624
|
+
name?: string[];
|
|
9625
|
+
} | {
|
|
9626
|
+
from?: "package";
|
|
9627
|
+
package?: string;
|
|
9628
|
+
name?: string[];
|
|
9629
|
+
})[];
|
|
9630
|
+
}];
|
|
9631
|
+
// ----- node/no-top-level-await -----
|
|
9632
|
+
type NodeNoTopLevelAwait = [] | [{
|
|
9633
|
+
ignoreBin?: boolean;
|
|
9634
|
+
convertPath?: ({
|
|
9635
|
+
[k: string]: [string, string];
|
|
9636
|
+
} | [{
|
|
9637
|
+
include: [string, ...(string)[]];
|
|
9638
|
+
exclude?: string[];
|
|
9639
|
+
replace: [string, string];
|
|
9640
|
+
}, ...({
|
|
9641
|
+
include: [string, ...(string)[]];
|
|
9642
|
+
exclude?: string[];
|
|
9643
|
+
replace: [string, string];
|
|
9644
|
+
})[]]);
|
|
9614
9645
|
}];
|
|
9615
9646
|
// ----- node/no-unpublished-bin -----
|
|
9616
9647
|
type NodeNoUnpublishedBin = [] | [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.1",
|
|
4
4
|
"description": "Effortlessly enforce best practices and catch errors with this comprehensive ESLint configuration for TypeScript, featuring popular plugins like @typescript-eslint, eslint-plugin-react, and eslint-plugin-unicorn.",
|
|
5
5
|
"homepage": "https://2d-configs.vercel.app/",
|
|
6
6
|
"repository": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@next/eslint-plugin-next": "15.3.3",
|
|
37
37
|
"@stylistic/eslint-plugin": "4.4.0",
|
|
38
38
|
"@tanstack/eslint-plugin-query": "5.78.0",
|
|
39
|
-
"@typescript-eslint/parser": "8.33.
|
|
40
|
-
"@typescript-eslint/utils": "8.33.
|
|
39
|
+
"@typescript-eslint/parser": "8.33.1",
|
|
40
|
+
"@typescript-eslint/utils": "8.33.1",
|
|
41
41
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
42
42
|
"eslint-config-prettier": "10.1.5",
|
|
43
43
|
"eslint-flat-config-utils": "2.1.0",
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
"eslint-plugin-antfu": "3.1.1",
|
|
46
46
|
"eslint-plugin-de-morgan": "1.2.1",
|
|
47
47
|
"eslint-plugin-drizzle": "0.2.3",
|
|
48
|
-
"eslint-plugin-jsdoc": "50.7.
|
|
48
|
+
"eslint-plugin-jsdoc": "50.7.1",
|
|
49
49
|
"eslint-plugin-jsonc": "2.20.1",
|
|
50
|
-
"eslint-plugin-n": "17.
|
|
50
|
+
"eslint-plugin-n": "17.19.0",
|
|
51
51
|
"eslint-plugin-pnpm": "0.3.1",
|
|
52
52
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
53
53
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
54
54
|
"eslint-plugin-regexp": "2.7.0",
|
|
55
55
|
"eslint-plugin-sonarjs": "3.0.2",
|
|
56
|
-
"eslint-plugin-storybook": "9.0.
|
|
56
|
+
"eslint-plugin-storybook": "9.0.4",
|
|
57
57
|
"eslint-plugin-tailwindcss": "3.18.0",
|
|
58
58
|
"eslint-plugin-turbo": "2.5.4",
|
|
59
59
|
"eslint-plugin-unicorn": "59.0.1",
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
"graphql-config": "5.1.5",
|
|
64
64
|
"jsonc-eslint-parser": "2.4.0",
|
|
65
65
|
"local-pkg": "1.1.1",
|
|
66
|
-
"typescript-eslint": "8.33.
|
|
66
|
+
"typescript-eslint": "8.33.1",
|
|
67
67
|
"yaml-eslint-parser": "1.3.0",
|
|
68
|
-
"@2digits/
|
|
69
|
-
"@2digits/
|
|
68
|
+
"@2digits/constants": "1.1.0",
|
|
69
|
+
"@2digits/eslint-plugin": "3.1.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@eslint/config-inspector": "1.0.2",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"tinyglobby": "0.2.14",
|
|
81
81
|
"tsdown": "0.12.6",
|
|
82
82
|
"typescript": "5.8.3",
|
|
83
|
-
"vitest": "3.
|
|
83
|
+
"vitest": "3.2.0",
|
|
84
84
|
"@2digits/tsconfig": "0.7.1"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|