@2digits/eslint-config 3.0.3 → 3.0.5

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.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 Array index as 'key'
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,10 +3143,15 @@ Backward pagination arguments
3143
3143
  */
3144
3144
  'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
3145
3145
  /**
3146
- * enforce component naming convention to 'PascalCase' or 'CONSTANT_CASE'
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
+ /**
3151
+ * enforce context name to be a valid component name with the suffix 'Context'
3152
+ * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
3153
+ */
3154
+ 'react-naming-convention/context-name'?: Linter.RuleEntry<[]>
3150
3155
  /**
3151
3156
  * enforce naming convention for JSX filenames
3152
3157
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename
@@ -9376,7 +9381,18 @@ type NodeNoRestrictedRequire = []|[(string | {
9376
9381
  // ----- node/no-sync -----
9377
9382
  type NodeNoSync = []|[{
9378
9383
  allowAtRootLevel?: boolean
9379
- ignores?: string[]
9384
+ ignores?: (string | {
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
+ })[]
9380
9396
  }]
9381
9397
  // ----- node/no-unpublished-bin -----
9382
9398
  type NodeNoUnpublishedBin = []|[{
@@ -10875,6 +10891,8 @@ type TsExplicitModuleBoundaryTypes = []|[{
10875
10891
 
10876
10892
  allowHigherOrderFunctions?: boolean
10877
10893
 
10894
+ allowOverloadFunctions?: boolean
10895
+
10878
10896
  allowTypedFunctionExpressions?: boolean
10879
10897
  }]
10880
10898
  // ----- ts/init-declarations -----
@@ -11906,6 +11924,8 @@ type TsUnboundMethod = []|[{
11906
11924
  type TsUnifiedSignatures = []|[{
11907
11925
 
11908
11926
  ignoreDifferentlyNamedParameters?: boolean
11927
+
11928
+ ignoreOverloadsWithDifferentJSDoc?: boolean
11909
11929
  }]
11910
11930
  // ----- turbo/no-undeclared-env-vars -----
11911
11931
  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 Array index as 'key'
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,10 +3143,15 @@ Backward pagination arguments
3143
3143
  */
3144
3144
  'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
3145
3145
  /**
3146
- * enforce component naming convention to 'PascalCase' or 'CONSTANT_CASE'
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
+ /**
3151
+ * enforce context name to be a valid component name with the suffix 'Context'
3152
+ * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
3153
+ */
3154
+ 'react-naming-convention/context-name'?: Linter.RuleEntry<[]>
3150
3155
  /**
3151
3156
  * enforce naming convention for JSX filenames
3152
3157
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename
@@ -9376,7 +9381,18 @@ type NodeNoRestrictedRequire = []|[(string | {
9376
9381
  // ----- node/no-sync -----
9377
9382
  type NodeNoSync = []|[{
9378
9383
  allowAtRootLevel?: boolean
9379
- ignores?: string[]
9384
+ ignores?: (string | {
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
+ })[]
9380
9396
  }]
9381
9397
  // ----- node/no-unpublished-bin -----
9382
9398
  type NodeNoUnpublishedBin = []|[{
@@ -10875,6 +10891,8 @@ type TsExplicitModuleBoundaryTypes = []|[{
10875
10891
 
10876
10892
  allowHigherOrderFunctions?: boolean
10877
10893
 
10894
+ allowOverloadFunctions?: boolean
10895
+
10878
10896
  allowTypedFunctionExpressions?: boolean
10879
10897
  }]
10880
10898
  // ----- ts/init-declarations -----
@@ -11906,6 +11924,8 @@ type TsUnboundMethod = []|[{
11906
11924
  type TsUnifiedSignatures = []|[{
11907
11925
 
11908
11926
  ignoreDifferentlyNamedParameters?: boolean
11927
+
11928
+ ignoreOverloadsWithDifferentJSDoc?: boolean
11909
11929
  }]
11910
11930
  // ----- turbo/no-undeclared-env-vars -----
11911
11931
  type TurboNoUndeclaredEnvVars = []|[{