@2digits/eslint-config 3.0.4 → 3.0.6
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -16
- package/dist/index.d.ts +9 -16
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/dist/index.d.cts
CHANGED
|
@@ -2838,7 +2838,7 @@ Backward pagination arguments
|
|
|
2838
2838
|
*/
|
|
2839
2839
|
'react-extra/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
|
|
2840
2840
|
/**
|
|
2841
|
-
* disallow using
|
|
2841
|
+
* disallow using an item's index in the array as its key
|
|
2842
2842
|
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
2843
2843
|
*/
|
|
2844
2844
|
'react-extra/no-array-index-key'?: Linter.RuleEntry<[]>
|
|
@@ -3143,12 +3143,12 @@ Backward pagination arguments
|
|
|
3143
3143
|
*/
|
|
3144
3144
|
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
|
|
3145
3145
|
/**
|
|
3146
|
-
* enforce
|
|
3146
|
+
* enforce naming convention for components
|
|
3147
3147
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
|
|
3148
3148
|
*/
|
|
3149
3149
|
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
|
|
3150
3150
|
/**
|
|
3151
|
-
* enforce context name to
|
|
3151
|
+
* enforce context name to be a valid component name with the suffix 'Context'
|
|
3152
3152
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
3153
3153
|
*/
|
|
3154
3154
|
'react-naming-convention/context-name'?: Linter.RuleEntry<[]>
|
|
@@ -5627,7 +5627,7 @@ Backward pagination arguments
|
|
|
5627
5627
|
*/
|
|
5628
5628
|
'storybook/story-exports'?: Linter.RuleEntry<[]>
|
|
5629
5629
|
/**
|
|
5630
|
-
* Use expect from `@storybook/test` or `@storybook/jest`
|
|
5630
|
+
* Use expect from `@storybook/test`, `storybook/test` or `@storybook/jest`
|
|
5631
5631
|
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/use-storybook-expect.md
|
|
5632
5632
|
*/
|
|
5633
5633
|
'storybook/use-storybook-expect'?: Linter.RuleEntry<[]>
|
|
@@ -9381,18 +9381,7 @@ type NodeNoRestrictedRequire = []|[(string | {
|
|
|
9381
9381
|
// ----- node/no-sync -----
|
|
9382
9382
|
type NodeNoSync = []|[{
|
|
9383
9383
|
allowAtRootLevel?: boolean
|
|
9384
|
-
ignores?:
|
|
9385
|
-
from?: "file"
|
|
9386
|
-
path?: string
|
|
9387
|
-
name?: string[]
|
|
9388
|
-
} | {
|
|
9389
|
-
from?: "lib"
|
|
9390
|
-
name?: string[]
|
|
9391
|
-
} | {
|
|
9392
|
-
from?: "package"
|
|
9393
|
-
package?: string
|
|
9394
|
-
name?: string[]
|
|
9395
|
-
})[]
|
|
9384
|
+
ignores?: string[]
|
|
9396
9385
|
}]
|
|
9397
9386
|
// ----- node/no-unpublished-bin -----
|
|
9398
9387
|
type NodeNoUnpublishedBin = []|[{
|
|
@@ -10891,6 +10880,8 @@ type TsExplicitModuleBoundaryTypes = []|[{
|
|
|
10891
10880
|
|
|
10892
10881
|
allowHigherOrderFunctions?: boolean
|
|
10893
10882
|
|
|
10883
|
+
allowOverloadFunctions?: boolean
|
|
10884
|
+
|
|
10894
10885
|
allowTypedFunctionExpressions?: boolean
|
|
10895
10886
|
}]
|
|
10896
10887
|
// ----- ts/init-declarations -----
|
|
@@ -11922,6 +11913,8 @@ type TsUnboundMethod = []|[{
|
|
|
11922
11913
|
type TsUnifiedSignatures = []|[{
|
|
11923
11914
|
|
|
11924
11915
|
ignoreDifferentlyNamedParameters?: boolean
|
|
11916
|
+
|
|
11917
|
+
ignoreOverloadsWithDifferentJSDoc?: boolean
|
|
11925
11918
|
}]
|
|
11926
11919
|
// ----- turbo/no-undeclared-env-vars -----
|
|
11927
11920
|
type TurboNoUndeclaredEnvVars = []|[{
|
package/dist/index.d.ts
CHANGED
|
@@ -2838,7 +2838,7 @@ Backward pagination arguments
|
|
|
2838
2838
|
*/
|
|
2839
2839
|
'react-extra/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
|
|
2840
2840
|
/**
|
|
2841
|
-
* disallow using
|
|
2841
|
+
* disallow using an item's index in the array as its key
|
|
2842
2842
|
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
2843
2843
|
*/
|
|
2844
2844
|
'react-extra/no-array-index-key'?: Linter.RuleEntry<[]>
|
|
@@ -3143,12 +3143,12 @@ Backward pagination arguments
|
|
|
3143
3143
|
*/
|
|
3144
3144
|
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
|
|
3145
3145
|
/**
|
|
3146
|
-
* enforce
|
|
3146
|
+
* enforce naming convention for components
|
|
3147
3147
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
|
|
3148
3148
|
*/
|
|
3149
3149
|
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
|
|
3150
3150
|
/**
|
|
3151
|
-
* enforce context name to
|
|
3151
|
+
* enforce context name to be a valid component name with the suffix 'Context'
|
|
3152
3152
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
3153
3153
|
*/
|
|
3154
3154
|
'react-naming-convention/context-name'?: Linter.RuleEntry<[]>
|
|
@@ -5627,7 +5627,7 @@ Backward pagination arguments
|
|
|
5627
5627
|
*/
|
|
5628
5628
|
'storybook/story-exports'?: Linter.RuleEntry<[]>
|
|
5629
5629
|
/**
|
|
5630
|
-
* Use expect from `@storybook/test` or `@storybook/jest`
|
|
5630
|
+
* Use expect from `@storybook/test`, `storybook/test` or `@storybook/jest`
|
|
5631
5631
|
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/use-storybook-expect.md
|
|
5632
5632
|
*/
|
|
5633
5633
|
'storybook/use-storybook-expect'?: Linter.RuleEntry<[]>
|
|
@@ -9381,18 +9381,7 @@ type NodeNoRestrictedRequire = []|[(string | {
|
|
|
9381
9381
|
// ----- node/no-sync -----
|
|
9382
9382
|
type NodeNoSync = []|[{
|
|
9383
9383
|
allowAtRootLevel?: boolean
|
|
9384
|
-
ignores?:
|
|
9385
|
-
from?: "file"
|
|
9386
|
-
path?: string
|
|
9387
|
-
name?: string[]
|
|
9388
|
-
} | {
|
|
9389
|
-
from?: "lib"
|
|
9390
|
-
name?: string[]
|
|
9391
|
-
} | {
|
|
9392
|
-
from?: "package"
|
|
9393
|
-
package?: string
|
|
9394
|
-
name?: string[]
|
|
9395
|
-
})[]
|
|
9384
|
+
ignores?: string[]
|
|
9396
9385
|
}]
|
|
9397
9386
|
// ----- node/no-unpublished-bin -----
|
|
9398
9387
|
type NodeNoUnpublishedBin = []|[{
|
|
@@ -10891,6 +10880,8 @@ type TsExplicitModuleBoundaryTypes = []|[{
|
|
|
10891
10880
|
|
|
10892
10881
|
allowHigherOrderFunctions?: boolean
|
|
10893
10882
|
|
|
10883
|
+
allowOverloadFunctions?: boolean
|
|
10884
|
+
|
|
10894
10885
|
allowTypedFunctionExpressions?: boolean
|
|
10895
10886
|
}]
|
|
10896
10887
|
// ----- ts/init-declarations -----
|
|
@@ -11922,6 +11913,8 @@ type TsUnboundMethod = []|[{
|
|
|
11922
11913
|
type TsUnifiedSignatures = []|[{
|
|
11923
11914
|
|
|
11924
11915
|
ignoreDifferentlyNamedParameters?: boolean
|
|
11916
|
+
|
|
11917
|
+
ignoreOverloadsWithDifferentJSDoc?: boolean
|
|
11925
11918
|
}]
|
|
11926
11919
|
// ----- turbo/no-undeclared-env-vars -----
|
|
11927
11920
|
type TurboNoUndeclaredEnvVars = []|[{
|