@2digits/eslint-config 5.1.19 → 5.1.20
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 +33 -27
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -4383,6 +4383,11 @@ interface RuleOptions {
|
|
|
4383
4383
|
* @see https://sonarsource.github.io/rspec/#/rspec/S3525/javascript
|
|
4384
4384
|
*/
|
|
4385
4385
|
'sonar/class-prototype'?: Linter.RuleEntry<[]>;
|
|
4386
|
+
/**
|
|
4387
|
+
* Dynamically executing code is security-sensitive
|
|
4388
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1523/javascript
|
|
4389
|
+
*/
|
|
4390
|
+
'sonar/code-eval'?: Linter.RuleEntry<[]>;
|
|
4386
4391
|
/**
|
|
4387
4392
|
* Cognitive Complexity of functions should not be too high
|
|
4388
4393
|
* @see https://sonarsource.github.io/rspec/#/rspec/S3776/javascript
|
|
@@ -11491,33 +11496,33 @@ type StylisticExpListStyle = [] | [{
|
|
|
11491
11496
|
singleLine?: _StylisticExpListStyle_SingleLineConfig;
|
|
11492
11497
|
multiLine?: _StylisticExpListStyle_MultiLineConfig;
|
|
11493
11498
|
overrides?: {
|
|
11494
|
-
"()"?: _StylisticExpListStyle_BaseConfig;
|
|
11495
|
-
"[]"?: _StylisticExpListStyle_BaseConfig;
|
|
11496
|
-
"{}"?: _StylisticExpListStyle_BaseConfig;
|
|
11497
|
-
"<>"?: _StylisticExpListStyle_BaseConfig;
|
|
11498
|
-
ArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
11499
|
-
ArrayPattern?: _StylisticExpListStyle_BaseConfig;
|
|
11500
|
-
ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
11501
|
-
CallExpression?: _StylisticExpListStyle_BaseConfig;
|
|
11502
|
-
ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
11503
|
-
FunctionDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
11504
|
-
FunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
11505
|
-
IfStatement?: _StylisticExpListStyle_BaseConfig;
|
|
11506
|
-
ImportAttributes?: _StylisticExpListStyle_BaseConfig;
|
|
11507
|
-
ImportDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
11508
|
-
JSONArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
11509
|
-
JSONObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
11510
|
-
NewExpression?: _StylisticExpListStyle_BaseConfig;
|
|
11511
|
-
ObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
11512
|
-
ObjectPattern?: _StylisticExpListStyle_BaseConfig;
|
|
11513
|
-
TSDeclareFunction?: _StylisticExpListStyle_BaseConfig;
|
|
11514
|
-
TSEnumBody?: _StylisticExpListStyle_BaseConfig;
|
|
11515
|
-
TSFunctionType?: _StylisticExpListStyle_BaseConfig;
|
|
11516
|
-
TSInterfaceBody?: _StylisticExpListStyle_BaseConfig;
|
|
11517
|
-
TSTupleType?: _StylisticExpListStyle_BaseConfig;
|
|
11518
|
-
TSTypeLiteral?: _StylisticExpListStyle_BaseConfig;
|
|
11519
|
-
TSTypeParameterDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
11520
|
-
TSTypeParameterInstantiation?: _StylisticExpListStyle_BaseConfig;
|
|
11499
|
+
"()"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11500
|
+
"[]"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11501
|
+
"{}"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11502
|
+
"<>"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11503
|
+
ArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11504
|
+
ArrayPattern?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11505
|
+
ArrowFunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11506
|
+
CallExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11507
|
+
ExportNamedDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11508
|
+
FunctionDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11509
|
+
FunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11510
|
+
IfStatement?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11511
|
+
ImportAttributes?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11512
|
+
ImportDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11513
|
+
JSONArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11514
|
+
JSONObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11515
|
+
NewExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11516
|
+
ObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11517
|
+
ObjectPattern?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11518
|
+
TSDeclareFunction?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11519
|
+
TSEnumBody?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11520
|
+
TSFunctionType?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11521
|
+
TSInterfaceBody?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11522
|
+
TSTupleType?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11523
|
+
TSTypeLiteral?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11524
|
+
TSTypeParameterDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11525
|
+
TSTypeParameterInstantiation?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
11521
11526
|
};
|
|
11522
11527
|
}];
|
|
11523
11528
|
interface _StylisticExpListStyle_SingleLineConfig {
|
|
@@ -12388,6 +12393,7 @@ type StylisticPaddingLineBetweenStatements = {
|
|
|
12388
12393
|
}[];
|
|
12389
12394
|
interface _StylisticPaddingLineBetweenStatements_SelectorOption {
|
|
12390
12395
|
selector: string;
|
|
12396
|
+
lineMode?: ("any" | "singleline" | "multiline");
|
|
12391
12397
|
} // ----- stylistic/quote-props -----
|
|
12392
12398
|
type StylisticQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
12393
12399
|
keywords?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.20",
|
|
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": {
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@eslint-community/eslint-plugin-eslint-comments": "4.7.1",
|
|
28
28
|
"@eslint-react/eslint-plugin": "2.13.0",
|
|
29
|
-
"@eslint/compat": "2.0.
|
|
29
|
+
"@eslint/compat": "2.0.3",
|
|
30
30
|
"@eslint/css": "0.14.1",
|
|
31
31
|
"@eslint/js": "10.0.1",
|
|
32
32
|
"@eslint/markdown": "7.5.1",
|
|
33
33
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
34
34
|
"@next/eslint-plugin-next": "16.1.6",
|
|
35
|
-
"@stylistic/eslint-plugin": "5.
|
|
35
|
+
"@stylistic/eslint-plugin": "5.10.0",
|
|
36
36
|
"@tanstack/eslint-plugin-query": "5.91.4",
|
|
37
37
|
"@tanstack/eslint-plugin-router": "1.161.4",
|
|
38
38
|
"@typescript-eslint/parser": "8.56.1",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
55
55
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
56
56
|
"eslint-plugin-regexp": "3.0.0",
|
|
57
|
-
"eslint-plugin-sonarjs": "4.0.
|
|
58
|
-
"eslint-plugin-storybook": "10.2.
|
|
57
|
+
"eslint-plugin-sonarjs": "4.0.1",
|
|
58
|
+
"eslint-plugin-storybook": "10.2.16",
|
|
59
59
|
"eslint-plugin-tailwindcss": "3.18.2",
|
|
60
60
|
"eslint-plugin-toml": "1.3.1",
|
|
61
|
-
"eslint-plugin-turbo": "2.8.
|
|
61
|
+
"eslint-plugin-turbo": "2.8.14",
|
|
62
62
|
"eslint-plugin-unicorn": "63.0.0",
|
|
63
63
|
"eslint-plugin-yml": "3.3.1",
|
|
64
64
|
"eslint-plugin-zod": "3.4.0",
|
|
65
65
|
"globals": "17.4.0",
|
|
66
|
-
"graphql-config": "5.1.
|
|
66
|
+
"graphql-config": "5.1.6",
|
|
67
67
|
"jsonc-eslint-parser": "3.1.0",
|
|
68
68
|
"local-pkg": "1.1.2",
|
|
69
69
|
"pkg-types": "2.3.0",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"@arethetypeswrong/core": "0.18.2",
|
|
78
78
|
"@eslint/config-inspector": "1.5.0",
|
|
79
79
|
"@types/react": "19.2.14",
|
|
80
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
80
|
+
"@typescript/native-preview": "7.0.0-dev.20260307.1",
|
|
81
81
|
"dedent": "1.7.2",
|
|
82
|
-
"eslint": "10.0.
|
|
82
|
+
"eslint": "10.0.3",
|
|
83
83
|
"eslint-typegen": "2.3.1",
|
|
84
84
|
"publint": "0.3.18",
|
|
85
85
|
"react": "19.2.4",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@2digits/tsconfig": "0.8.6"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"eslint": "10.0.
|
|
95
|
+
"eslint": "10.0.3"
|
|
96
96
|
},
|
|
97
97
|
"engines": {
|
|
98
98
|
"node": "24.14.0"
|