@2digits/eslint-config 4.5.2 → 4.5.3
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 +26 -15
- package/dist/index.d.ts +26 -15
- package/package.json +12 -12
package/dist/index.d.mts
CHANGED
|
@@ -5182,77 +5182,82 @@ Backward pagination arguments
|
|
|
5182
5182
|
'spaced-comment'?: Linter.RuleEntry<SpacedComment>
|
|
5183
5183
|
/**
|
|
5184
5184
|
* Interactions should be awaited
|
|
5185
|
-
* @see https://github.com/storybookjs/
|
|
5185
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/await-interactions.md
|
|
5186
5186
|
*/
|
|
5187
5187
|
'storybook/await-interactions'?: Linter.RuleEntry<[]>
|
|
5188
5188
|
/**
|
|
5189
5189
|
* Pass a context when invoking play function of another story
|
|
5190
|
-
* @see https://github.com/storybookjs/
|
|
5190
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/context-in-play-function.md
|
|
5191
5191
|
*/
|
|
5192
5192
|
'storybook/context-in-play-function'?: Linter.RuleEntry<[]>
|
|
5193
5193
|
/**
|
|
5194
5194
|
* The component property should be set
|
|
5195
|
-
* @see https://github.com/storybookjs/
|
|
5195
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/csf-component.md
|
|
5196
5196
|
*/
|
|
5197
5197
|
'storybook/csf-component'?: Linter.RuleEntry<[]>
|
|
5198
5198
|
/**
|
|
5199
5199
|
* Story files should have a default export
|
|
5200
|
-
* @see https://github.com/storybookjs/
|
|
5200
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/default-exports.md
|
|
5201
5201
|
*/
|
|
5202
5202
|
'storybook/default-exports'?: Linter.RuleEntry<[]>
|
|
5203
5203
|
/**
|
|
5204
5204
|
* Deprecated hierarchy separator in title property
|
|
5205
|
-
* @see https://github.com/storybookjs/
|
|
5205
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/hierarchy-separator.md
|
|
5206
5206
|
*/
|
|
5207
5207
|
'storybook/hierarchy-separator'?: Linter.RuleEntry<[]>
|
|
5208
5208
|
/**
|
|
5209
5209
|
* Meta should only have inline properties
|
|
5210
|
-
* @see https://github.com/storybookjs/
|
|
5210
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/meta-inline-properties.md
|
|
5211
5211
|
*/
|
|
5212
5212
|
'storybook/meta-inline-properties'?: Linter.RuleEntry<StorybookMetaInlineProperties>
|
|
5213
5213
|
/**
|
|
5214
5214
|
* Meta should use `satisfies Meta`
|
|
5215
|
-
* @see https://github.com/storybookjs/
|
|
5215
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/meta-satisfies-type.md
|
|
5216
5216
|
*/
|
|
5217
5217
|
'storybook/meta-satisfies-type'?: Linter.RuleEntry<[]>
|
|
5218
5218
|
/**
|
|
5219
5219
|
* A story should not have a redundant name property
|
|
5220
|
-
* @see https://github.com/storybookjs/
|
|
5220
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-redundant-story-name.md
|
|
5221
5221
|
*/
|
|
5222
5222
|
'storybook/no-redundant-story-name'?: Linter.RuleEntry<[]>
|
|
5223
|
+
/**
|
|
5224
|
+
* Do not import renderer packages directly in stories
|
|
5225
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-renderer-packages.md
|
|
5226
|
+
*/
|
|
5227
|
+
'storybook/no-renderer-packages'?: Linter.RuleEntry<[]>
|
|
5223
5228
|
/**
|
|
5224
5229
|
* storiesOf is deprecated and should not be used
|
|
5225
|
-
* @see https://github.com/storybookjs/
|
|
5230
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-stories-of.md
|
|
5226
5231
|
*/
|
|
5227
5232
|
'storybook/no-stories-of'?: Linter.RuleEntry<[]>
|
|
5228
5233
|
/**
|
|
5229
5234
|
* Do not define a title in meta
|
|
5230
|
-
* @see https://github.com/storybookjs/
|
|
5235
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-title-property-in-meta.md
|
|
5231
5236
|
*/
|
|
5232
5237
|
'storybook/no-title-property-in-meta'?: Linter.RuleEntry<[]>
|
|
5233
5238
|
/**
|
|
5234
5239
|
* This rule identifies storybook addons that are invalid because they are either not installed or contain a typo in their name.
|
|
5235
|
-
* @see https://github.com/storybookjs/
|
|
5240
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-uninstalled-addons.md
|
|
5236
5241
|
*/
|
|
5237
5242
|
'storybook/no-uninstalled-addons'?: Linter.RuleEntry<StorybookNoUninstalledAddons>
|
|
5238
5243
|
/**
|
|
5239
5244
|
* Stories should use PascalCase
|
|
5240
|
-
* @see https://github.com/storybookjs/
|
|
5245
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/prefer-pascal-case.md
|
|
5241
5246
|
*/
|
|
5242
5247
|
'storybook/prefer-pascal-case'?: Linter.RuleEntry<[]>
|
|
5243
5248
|
/**
|
|
5244
5249
|
* A story file must contain at least one story export
|
|
5245
|
-
* @see https://github.com/storybookjs/
|
|
5250
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/story-exports.md
|
|
5246
5251
|
*/
|
|
5247
5252
|
'storybook/story-exports'?: Linter.RuleEntry<[]>
|
|
5248
5253
|
/**
|
|
5249
5254
|
* Use expect from `@storybook/test`, `storybook/test` or `@storybook/jest`
|
|
5250
|
-
* @see https://github.com/storybookjs/
|
|
5255
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/use-storybook-expect.md
|
|
5251
5256
|
*/
|
|
5252
5257
|
'storybook/use-storybook-expect'?: Linter.RuleEntry<[]>
|
|
5253
5258
|
/**
|
|
5254
5259
|
* Do not use testing-library directly on stories
|
|
5255
|
-
* @see https://github.com/storybookjs/
|
|
5260
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/use-storybook-testing-library.md
|
|
5256
5261
|
*/
|
|
5257
5262
|
'storybook/use-storybook-testing-library'?: Linter.RuleEntry<[]>
|
|
5258
5263
|
/**
|
|
@@ -5802,6 +5807,11 @@ Backward pagination arguments
|
|
|
5802
5807
|
* @see https://tanstack.com/query/latest/docs/eslint/infinite-query-property-order
|
|
5803
5808
|
*/
|
|
5804
5809
|
'tanstack/infinite-query-property-order'?: Linter.RuleEntry<[]>
|
|
5810
|
+
/**
|
|
5811
|
+
* Ensure correct order of inference-sensitive properties in useMutation()
|
|
5812
|
+
* @see https://tanstack.com/query/latest/docs/eslint/mutation-property-order
|
|
5813
|
+
*/
|
|
5814
|
+
'tanstack/mutation-property-order'?: Linter.RuleEntry<[]>
|
|
5805
5815
|
/**
|
|
5806
5816
|
* Disallows rest destructuring in queries
|
|
5807
5817
|
* @see https://tanstack.com/query/latest/docs/eslint/no-rest-destructuring
|
|
@@ -6478,6 +6488,7 @@ Backward pagination arguments
|
|
|
6478
6488
|
/**
|
|
6479
6489
|
* Require type annotations in certain places
|
|
6480
6490
|
* @see https://typescript-eslint.io/rules/typedef
|
|
6491
|
+
* @deprecated
|
|
6481
6492
|
*/
|
|
6482
6493
|
'ts/typedef'?: Linter.RuleEntry<TsTypedef>
|
|
6483
6494
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -5182,77 +5182,82 @@ Backward pagination arguments
|
|
|
5182
5182
|
'spaced-comment'?: Linter.RuleEntry<SpacedComment>
|
|
5183
5183
|
/**
|
|
5184
5184
|
* Interactions should be awaited
|
|
5185
|
-
* @see https://github.com/storybookjs/
|
|
5185
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/await-interactions.md
|
|
5186
5186
|
*/
|
|
5187
5187
|
'storybook/await-interactions'?: Linter.RuleEntry<[]>
|
|
5188
5188
|
/**
|
|
5189
5189
|
* Pass a context when invoking play function of another story
|
|
5190
|
-
* @see https://github.com/storybookjs/
|
|
5190
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/context-in-play-function.md
|
|
5191
5191
|
*/
|
|
5192
5192
|
'storybook/context-in-play-function'?: Linter.RuleEntry<[]>
|
|
5193
5193
|
/**
|
|
5194
5194
|
* The component property should be set
|
|
5195
|
-
* @see https://github.com/storybookjs/
|
|
5195
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/csf-component.md
|
|
5196
5196
|
*/
|
|
5197
5197
|
'storybook/csf-component'?: Linter.RuleEntry<[]>
|
|
5198
5198
|
/**
|
|
5199
5199
|
* Story files should have a default export
|
|
5200
|
-
* @see https://github.com/storybookjs/
|
|
5200
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/default-exports.md
|
|
5201
5201
|
*/
|
|
5202
5202
|
'storybook/default-exports'?: Linter.RuleEntry<[]>
|
|
5203
5203
|
/**
|
|
5204
5204
|
* Deprecated hierarchy separator in title property
|
|
5205
|
-
* @see https://github.com/storybookjs/
|
|
5205
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/hierarchy-separator.md
|
|
5206
5206
|
*/
|
|
5207
5207
|
'storybook/hierarchy-separator'?: Linter.RuleEntry<[]>
|
|
5208
5208
|
/**
|
|
5209
5209
|
* Meta should only have inline properties
|
|
5210
|
-
* @see https://github.com/storybookjs/
|
|
5210
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/meta-inline-properties.md
|
|
5211
5211
|
*/
|
|
5212
5212
|
'storybook/meta-inline-properties'?: Linter.RuleEntry<StorybookMetaInlineProperties>
|
|
5213
5213
|
/**
|
|
5214
5214
|
* Meta should use `satisfies Meta`
|
|
5215
|
-
* @see https://github.com/storybookjs/
|
|
5215
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/meta-satisfies-type.md
|
|
5216
5216
|
*/
|
|
5217
5217
|
'storybook/meta-satisfies-type'?: Linter.RuleEntry<[]>
|
|
5218
5218
|
/**
|
|
5219
5219
|
* A story should not have a redundant name property
|
|
5220
|
-
* @see https://github.com/storybookjs/
|
|
5220
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-redundant-story-name.md
|
|
5221
5221
|
*/
|
|
5222
5222
|
'storybook/no-redundant-story-name'?: Linter.RuleEntry<[]>
|
|
5223
|
+
/**
|
|
5224
|
+
* Do not import renderer packages directly in stories
|
|
5225
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-renderer-packages.md
|
|
5226
|
+
*/
|
|
5227
|
+
'storybook/no-renderer-packages'?: Linter.RuleEntry<[]>
|
|
5223
5228
|
/**
|
|
5224
5229
|
* storiesOf is deprecated and should not be used
|
|
5225
|
-
* @see https://github.com/storybookjs/
|
|
5230
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-stories-of.md
|
|
5226
5231
|
*/
|
|
5227
5232
|
'storybook/no-stories-of'?: Linter.RuleEntry<[]>
|
|
5228
5233
|
/**
|
|
5229
5234
|
* Do not define a title in meta
|
|
5230
|
-
* @see https://github.com/storybookjs/
|
|
5235
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-title-property-in-meta.md
|
|
5231
5236
|
*/
|
|
5232
5237
|
'storybook/no-title-property-in-meta'?: Linter.RuleEntry<[]>
|
|
5233
5238
|
/**
|
|
5234
5239
|
* This rule identifies storybook addons that are invalid because they are either not installed or contain a typo in their name.
|
|
5235
|
-
* @see https://github.com/storybookjs/
|
|
5240
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-uninstalled-addons.md
|
|
5236
5241
|
*/
|
|
5237
5242
|
'storybook/no-uninstalled-addons'?: Linter.RuleEntry<StorybookNoUninstalledAddons>
|
|
5238
5243
|
/**
|
|
5239
5244
|
* Stories should use PascalCase
|
|
5240
|
-
* @see https://github.com/storybookjs/
|
|
5245
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/prefer-pascal-case.md
|
|
5241
5246
|
*/
|
|
5242
5247
|
'storybook/prefer-pascal-case'?: Linter.RuleEntry<[]>
|
|
5243
5248
|
/**
|
|
5244
5249
|
* A story file must contain at least one story export
|
|
5245
|
-
* @see https://github.com/storybookjs/
|
|
5250
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/story-exports.md
|
|
5246
5251
|
*/
|
|
5247
5252
|
'storybook/story-exports'?: Linter.RuleEntry<[]>
|
|
5248
5253
|
/**
|
|
5249
5254
|
* Use expect from `@storybook/test`, `storybook/test` or `@storybook/jest`
|
|
5250
|
-
* @see https://github.com/storybookjs/
|
|
5255
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/use-storybook-expect.md
|
|
5251
5256
|
*/
|
|
5252
5257
|
'storybook/use-storybook-expect'?: Linter.RuleEntry<[]>
|
|
5253
5258
|
/**
|
|
5254
5259
|
* Do not use testing-library directly on stories
|
|
5255
|
-
* @see https://github.com/storybookjs/
|
|
5260
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/use-storybook-testing-library.md
|
|
5256
5261
|
*/
|
|
5257
5262
|
'storybook/use-storybook-testing-library'?: Linter.RuleEntry<[]>
|
|
5258
5263
|
/**
|
|
@@ -5802,6 +5807,11 @@ Backward pagination arguments
|
|
|
5802
5807
|
* @see https://tanstack.com/query/latest/docs/eslint/infinite-query-property-order
|
|
5803
5808
|
*/
|
|
5804
5809
|
'tanstack/infinite-query-property-order'?: Linter.RuleEntry<[]>
|
|
5810
|
+
/**
|
|
5811
|
+
* Ensure correct order of inference-sensitive properties in useMutation()
|
|
5812
|
+
* @see https://tanstack.com/query/latest/docs/eslint/mutation-property-order
|
|
5813
|
+
*/
|
|
5814
|
+
'tanstack/mutation-property-order'?: Linter.RuleEntry<[]>
|
|
5805
5815
|
/**
|
|
5806
5816
|
* Disallows rest destructuring in queries
|
|
5807
5817
|
* @see https://tanstack.com/query/latest/docs/eslint/no-rest-destructuring
|
|
@@ -6478,6 +6488,7 @@ Backward pagination arguments
|
|
|
6478
6488
|
/**
|
|
6479
6489
|
* Require type annotations in certain places
|
|
6480
6490
|
* @see https://typescript-eslint.io/rules/typedef
|
|
6491
|
+
* @deprecated
|
|
6481
6492
|
*/
|
|
6482
6493
|
'ts/typedef'?: Linter.RuleEntry<TsTypedef>
|
|
6483
6494
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.3",
|
|
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": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"public": true,
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
32
|
-
"@eslint-react/eslint-plugin": "1.
|
|
32
|
+
"@eslint-react/eslint-plugin": "1.50.0",
|
|
33
33
|
"@eslint/compat": "1.2.9",
|
|
34
34
|
"@eslint/css": "0.8.1",
|
|
35
35
|
"@eslint/js": "9.27.0",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
38
38
|
"@next/eslint-plugin-next": "15.3.2",
|
|
39
39
|
"@stylistic/eslint-plugin": "4.4.0",
|
|
40
|
-
"@tanstack/eslint-plugin-query": "5.
|
|
41
|
-
"@typescript-eslint/parser": "8.
|
|
42
|
-
"@typescript-eslint/utils": "8.
|
|
40
|
+
"@tanstack/eslint-plugin-query": "5.78.0",
|
|
41
|
+
"@typescript-eslint/parser": "8.33.0",
|
|
42
|
+
"@typescript-eslint/utils": "8.33.0",
|
|
43
43
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
44
44
|
"eslint-config-prettier": "10.1.5",
|
|
45
45
|
"eslint-flat-config-utils": "2.1.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
56
56
|
"eslint-plugin-regexp": "2.7.0",
|
|
57
57
|
"eslint-plugin-sonarjs": "3.0.2",
|
|
58
|
-
"eslint-plugin-storybook": "0.
|
|
58
|
+
"eslint-plugin-storybook": "9.0.0",
|
|
59
59
|
"eslint-plugin-tailwindcss": "3.18.0",
|
|
60
60
|
"eslint-plugin-turbo": "2.5.3",
|
|
61
61
|
"eslint-plugin-unicorn": "59.0.1",
|
|
@@ -65,21 +65,21 @@
|
|
|
65
65
|
"graphql-config": "5.1.5",
|
|
66
66
|
"jsonc-eslint-parser": "2.4.0",
|
|
67
67
|
"local-pkg": "1.1.1",
|
|
68
|
-
"typescript-eslint": "8.
|
|
68
|
+
"typescript-eslint": "8.33.0",
|
|
69
69
|
"yaml-eslint-parser": "1.3.0",
|
|
70
70
|
"@2digits/constants": "1.0.0",
|
|
71
|
-
"@2digits/eslint-plugin": "3.0.
|
|
71
|
+
"@2digits/eslint-plugin": "3.0.10"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@eslint/config-inspector": "1.0.2",
|
|
75
|
-
"@types/node": "22.15.
|
|
76
|
-
"@types/react": "19.1.
|
|
75
|
+
"@types/node": "22.15.24",
|
|
76
|
+
"@types/react": "19.1.6",
|
|
77
77
|
"dedent": "1.6.0",
|
|
78
78
|
"eslint": "9.27.0",
|
|
79
79
|
"eslint-typegen": "2.2.0",
|
|
80
|
-
"execa": "9.
|
|
80
|
+
"execa": "9.6.0",
|
|
81
81
|
"react": "19.1.0",
|
|
82
|
-
"tinyglobby": "0.2.
|
|
82
|
+
"tinyglobby": "0.2.14",
|
|
83
83
|
"typescript": "5.8.3",
|
|
84
84
|
"unbuild": "3.5.0",
|
|
85
85
|
"vitest": "3.1.4",
|