@2digits/eslint-config 4.8.1 → 4.8.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.
- package/dist/index.d.mts +56 -44
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -5596,8 +5596,9 @@ interface RuleOptions {
|
|
|
5596
5596
|
*/
|
|
5597
5597
|
'stylistic/jsx-pascal-case'?: Linter.RuleEntry<StylisticJsxPascalCase>;
|
|
5598
5598
|
/**
|
|
5599
|
-
* Disallow multiple spaces between inline JSX props
|
|
5599
|
+
* Disallow multiple spaces between inline JSX props. Deprecated, use `no-multi-spaces` rule instead.
|
|
5600
5600
|
* @see https://eslint.style/rules/jsx-props-no-multi-spaces
|
|
5601
|
+
* @deprecated
|
|
5601
5602
|
*/
|
|
5602
5603
|
'stylistic/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>;
|
|
5603
5604
|
/**
|
|
@@ -8483,6 +8484,7 @@ type JsdocRequireReturnsType = [] | [{
|
|
|
8483
8484
|
}];
|
|
8484
8485
|
// ----- jsdoc/require-template -----
|
|
8485
8486
|
type JsdocRequireTemplate = [] | [{
|
|
8487
|
+
exemptedBy?: string[];
|
|
8486
8488
|
requireSeparateTemplates?: boolean;
|
|
8487
8489
|
}];
|
|
8488
8490
|
// ----- jsdoc/require-throws -----
|
|
@@ -10817,6 +10819,7 @@ type StylisticIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
10817
10819
|
const?: (number | ("first" | "off"));
|
|
10818
10820
|
using?: (number | ("first" | "off"));
|
|
10819
10821
|
});
|
|
10822
|
+
assignmentOperator?: (number | "off");
|
|
10820
10823
|
outerIIFEBody?: (number | "off");
|
|
10821
10824
|
MemberExpression?: (number | "off");
|
|
10822
10825
|
FunctionDeclaration?: {
|
|
@@ -11049,6 +11052,22 @@ type StylisticKeywordSpacing = [] | [{
|
|
|
11049
11052
|
before?: boolean;
|
|
11050
11053
|
after?: boolean;
|
|
11051
11054
|
};
|
|
11055
|
+
arguments?: {
|
|
11056
|
+
before?: boolean;
|
|
11057
|
+
after?: boolean;
|
|
11058
|
+
};
|
|
11059
|
+
as?: {
|
|
11060
|
+
before?: boolean;
|
|
11061
|
+
after?: boolean;
|
|
11062
|
+
};
|
|
11063
|
+
async?: {
|
|
11064
|
+
before?: boolean;
|
|
11065
|
+
after?: boolean;
|
|
11066
|
+
};
|
|
11067
|
+
await?: {
|
|
11068
|
+
before?: boolean;
|
|
11069
|
+
after?: boolean;
|
|
11070
|
+
};
|
|
11052
11071
|
boolean?: {
|
|
11053
11072
|
before?: boolean;
|
|
11054
11073
|
after?: boolean;
|
|
@@ -11113,6 +11132,10 @@ type StylisticKeywordSpacing = [] | [{
|
|
|
11113
11132
|
before?: boolean;
|
|
11114
11133
|
after?: boolean;
|
|
11115
11134
|
};
|
|
11135
|
+
eval?: {
|
|
11136
|
+
before?: boolean;
|
|
11137
|
+
after?: boolean;
|
|
11138
|
+
};
|
|
11116
11139
|
export?: {
|
|
11117
11140
|
before?: boolean;
|
|
11118
11141
|
after?: boolean;
|
|
@@ -11141,10 +11164,18 @@ type StylisticKeywordSpacing = [] | [{
|
|
|
11141
11164
|
before?: boolean;
|
|
11142
11165
|
after?: boolean;
|
|
11143
11166
|
};
|
|
11167
|
+
from?: {
|
|
11168
|
+
before?: boolean;
|
|
11169
|
+
after?: boolean;
|
|
11170
|
+
};
|
|
11144
11171
|
function?: {
|
|
11145
11172
|
before?: boolean;
|
|
11146
11173
|
after?: boolean;
|
|
11147
11174
|
};
|
|
11175
|
+
get?: {
|
|
11176
|
+
before?: boolean;
|
|
11177
|
+
after?: boolean;
|
|
11178
|
+
};
|
|
11148
11179
|
goto?: {
|
|
11149
11180
|
before?: boolean;
|
|
11150
11181
|
after?: boolean;
|
|
@@ -11177,6 +11208,10 @@ type StylisticKeywordSpacing = [] | [{
|
|
|
11177
11208
|
before?: boolean;
|
|
11178
11209
|
after?: boolean;
|
|
11179
11210
|
};
|
|
11211
|
+
let?: {
|
|
11212
|
+
before?: boolean;
|
|
11213
|
+
after?: boolean;
|
|
11214
|
+
};
|
|
11180
11215
|
long?: {
|
|
11181
11216
|
before?: boolean;
|
|
11182
11217
|
after?: boolean;
|
|
@@ -11193,6 +11228,10 @@ type StylisticKeywordSpacing = [] | [{
|
|
|
11193
11228
|
before?: boolean;
|
|
11194
11229
|
after?: boolean;
|
|
11195
11230
|
};
|
|
11231
|
+
of?: {
|
|
11232
|
+
before?: boolean;
|
|
11233
|
+
after?: boolean;
|
|
11234
|
+
};
|
|
11196
11235
|
package?: {
|
|
11197
11236
|
before?: boolean;
|
|
11198
11237
|
after?: boolean;
|
|
@@ -11213,6 +11252,10 @@ type StylisticKeywordSpacing = [] | [{
|
|
|
11213
11252
|
before?: boolean;
|
|
11214
11253
|
after?: boolean;
|
|
11215
11254
|
};
|
|
11255
|
+
set?: {
|
|
11256
|
+
before?: boolean;
|
|
11257
|
+
after?: boolean;
|
|
11258
|
+
};
|
|
11216
11259
|
short?: {
|
|
11217
11260
|
before?: boolean;
|
|
11218
11261
|
after?: boolean;
|
|
@@ -11257,59 +11300,43 @@ type StylisticKeywordSpacing = [] | [{
|
|
|
11257
11300
|
before?: boolean;
|
|
11258
11301
|
after?: boolean;
|
|
11259
11302
|
};
|
|
11260
|
-
|
|
11261
|
-
before?: boolean;
|
|
11262
|
-
after?: boolean;
|
|
11263
|
-
};
|
|
11264
|
-
var?: {
|
|
11265
|
-
before?: boolean;
|
|
11266
|
-
after?: boolean;
|
|
11267
|
-
};
|
|
11268
|
-
void?: {
|
|
11269
|
-
before?: boolean;
|
|
11270
|
-
after?: boolean;
|
|
11271
|
-
};
|
|
11272
|
-
volatile?: {
|
|
11273
|
-
before?: boolean;
|
|
11274
|
-
after?: boolean;
|
|
11275
|
-
};
|
|
11276
|
-
while?: {
|
|
11303
|
+
type?: {
|
|
11277
11304
|
before?: boolean;
|
|
11278
11305
|
after?: boolean;
|
|
11279
11306
|
};
|
|
11280
|
-
|
|
11307
|
+
typeof?: {
|
|
11281
11308
|
before?: boolean;
|
|
11282
11309
|
after?: boolean;
|
|
11283
11310
|
};
|
|
11284
|
-
|
|
11311
|
+
using?: {
|
|
11285
11312
|
before?: boolean;
|
|
11286
11313
|
after?: boolean;
|
|
11287
11314
|
};
|
|
11288
|
-
|
|
11315
|
+
var?: {
|
|
11289
11316
|
before?: boolean;
|
|
11290
11317
|
after?: boolean;
|
|
11291
11318
|
};
|
|
11292
|
-
|
|
11319
|
+
void?: {
|
|
11293
11320
|
before?: boolean;
|
|
11294
11321
|
after?: boolean;
|
|
11295
11322
|
};
|
|
11296
|
-
|
|
11323
|
+
volatile?: {
|
|
11297
11324
|
before?: boolean;
|
|
11298
11325
|
after?: boolean;
|
|
11299
11326
|
};
|
|
11300
|
-
|
|
11327
|
+
while?: {
|
|
11301
11328
|
before?: boolean;
|
|
11302
11329
|
after?: boolean;
|
|
11303
11330
|
};
|
|
11304
|
-
|
|
11331
|
+
with?: {
|
|
11305
11332
|
before?: boolean;
|
|
11306
11333
|
after?: boolean;
|
|
11307
11334
|
};
|
|
11308
|
-
|
|
11335
|
+
yield?: {
|
|
11309
11336
|
before?: boolean;
|
|
11310
11337
|
after?: boolean;
|
|
11311
11338
|
};
|
|
11312
|
-
|
|
11339
|
+
accessor?: {
|
|
11313
11340
|
before?: boolean;
|
|
11314
11341
|
after?: boolean;
|
|
11315
11342
|
};
|
|
@@ -11317,22 +11344,6 @@ type StylisticKeywordSpacing = [] | [{
|
|
|
11317
11344
|
before?: boolean;
|
|
11318
11345
|
after?: boolean;
|
|
11319
11346
|
};
|
|
11320
|
-
set?: {
|
|
11321
|
-
before?: boolean;
|
|
11322
|
-
after?: boolean;
|
|
11323
|
-
};
|
|
11324
|
-
using?: {
|
|
11325
|
-
before?: boolean;
|
|
11326
|
-
after?: boolean;
|
|
11327
|
-
};
|
|
11328
|
-
yield?: {
|
|
11329
|
-
before?: boolean;
|
|
11330
|
-
after?: boolean;
|
|
11331
|
-
};
|
|
11332
|
-
type?: {
|
|
11333
|
-
before?: boolean;
|
|
11334
|
-
after?: boolean;
|
|
11335
|
-
};
|
|
11336
11347
|
};
|
|
11337
11348
|
}];
|
|
11338
11349
|
// ----- stylistic/line-comment-position -----
|
|
@@ -11532,6 +11543,7 @@ type StylisticNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
|
|
|
11532
11543
|
LogicalExpression?: boolean;
|
|
11533
11544
|
AwaitExpression?: boolean;
|
|
11534
11545
|
};
|
|
11546
|
+
ignoredNodes?: string[];
|
|
11535
11547
|
}]);
|
|
11536
11548
|
// ----- stylistic/no-mixed-operators -----
|
|
11537
11549
|
type StylisticNoMixedOperators = [] | [{
|
|
@@ -11647,7 +11659,7 @@ type StylisticPaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
11647
11659
|
// ----- stylistic/padding-line-between-statements -----
|
|
11648
11660
|
type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
11649
11661
|
type _StylisticPaddingLineBetweenStatementsStatementOption = (_StylisticPaddingLineBetweenStatementsStatementType | [_StylisticPaddingLineBetweenStatementsStatementType, ...(_StylisticPaddingLineBetweenStatementsStatementType)[]]);
|
|
11650
|
-
type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "
|
|
11662
|
+
type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "return" | "singleline-return" | "multiline-return" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using" | "type" | "singleline-type" | "multiline-type");
|
|
11651
11663
|
type StylisticPaddingLineBetweenStatements = {
|
|
11652
11664
|
blankLine: _StylisticPaddingLineBetweenStatementsPaddingType;
|
|
11653
11665
|
prev: _StylisticPaddingLineBetweenStatementsStatementOption;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.2",
|
|
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": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"@eslint/markdown": "7.2.0",
|
|
35
35
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
36
36
|
"@next/eslint-plugin-next": "15.5.2",
|
|
37
|
-
"@stylistic/eslint-plugin": "5.
|
|
37
|
+
"@stylistic/eslint-plugin": "5.3.1",
|
|
38
38
|
"@tanstack/eslint-plugin-query": "5.83.1",
|
|
39
|
-
"@typescript-eslint/parser": "8.
|
|
40
|
-
"@typescript-eslint/utils": "8.
|
|
39
|
+
"@typescript-eslint/parser": "8.42.0",
|
|
40
|
+
"@typescript-eslint/utils": "8.42.0",
|
|
41
41
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
42
42
|
"eslint-config-prettier": "10.1.8",
|
|
43
43
|
"eslint-flat-config-utils": "2.1.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"eslint-plugin-de-morgan": "1.3.1",
|
|
47
47
|
"eslint-plugin-drizzle": "0.2.3",
|
|
48
48
|
"eslint-plugin-github-action": "0.0.16",
|
|
49
|
-
"eslint-plugin-jsdoc": "54.
|
|
49
|
+
"eslint-plugin-jsdoc": "54.3.0",
|
|
50
50
|
"eslint-plugin-jsonc": "2.20.1",
|
|
51
51
|
"eslint-plugin-n": "17.21.3",
|
|
52
52
|
"eslint-plugin-pnpm": "1.1.1",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
55
55
|
"eslint-plugin-regexp": "2.10.0",
|
|
56
56
|
"eslint-plugin-sonarjs": "3.0.5",
|
|
57
|
-
"eslint-plugin-storybook": "9.1.
|
|
57
|
+
"eslint-plugin-storybook": "9.1.4",
|
|
58
58
|
"eslint-plugin-tailwindcss": "3.18.2",
|
|
59
59
|
"eslint-plugin-turbo": "2.5.6",
|
|
60
60
|
"eslint-plugin-unicorn": "60.0.0",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"graphql-config": "5.1.5",
|
|
65
65
|
"jsonc-eslint-parser": "2.4.0",
|
|
66
66
|
"local-pkg": "1.1.2",
|
|
67
|
-
"tailwind-csstree": "0.1.
|
|
68
|
-
"typescript-eslint": "8.
|
|
67
|
+
"tailwind-csstree": "0.1.4",
|
|
68
|
+
"typescript-eslint": "8.42.0",
|
|
69
69
|
"yaml-eslint-parser": "1.3.0",
|
|
70
|
-
"@2digits/
|
|
71
|
-
"@2digits/
|
|
70
|
+
"@2digits/eslint-plugin": "3.1.16",
|
|
71
|
+
"@2digits/constants": "1.1.7"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@eslint/config-inspector": "1.2.0",
|