@2digits/eslint-config 2.10.5 → 2.10.7

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
@@ -10,7 +10,7 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
10
10
  interface RuleOptions {
11
11
  /**
12
12
  * Enforce giving proper names to type parameters when there are two or more
13
- * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.16/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.17/packages/eslint/src/rules/type-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -2633,6 +2633,11 @@ Backward pagination arguments
2633
2633
  * @see https://eslint-react.xyz/docs/rules/no-component-will-update
2634
2634
  */
2635
2635
  'react-extra/no-component-will-update'?: Linter.RuleEntry<[]>
2636
+ /**
2637
+ * disallow the use of '<Context.Provider>'
2638
+ * @see https://eslint-react.xyz/docs/rules/no-context-provider
2639
+ */
2640
+ 'react-extra/no-context-provider'?: Linter.RuleEntry<[]>
2636
2641
  /**
2637
2642
  * disallow using 'createRef' in function components
2638
2643
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
@@ -2653,6 +2658,11 @@ Backward pagination arguments
2653
2658
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
2654
2659
  */
2655
2660
  'react-extra/no-duplicate-key'?: Linter.RuleEntry<[]>
2661
+ /**
2662
+ * disallow the use of 'forwardRef'
2663
+ * @see https://eslint-react.xyz/docs/rules/no-forward-ref
2664
+ */
2665
+ 'react-extra/no-forward-ref'?: Linter.RuleEntry<[]>
2656
2666
  /**
2657
2667
  * disallow implicit 'key' props
2658
2668
  * @see https://eslint-react.xyz/docs/rules/no-implicit-key
@@ -9839,6 +9849,8 @@ type TsSwitchExhaustivenessCheck = []|[{
9839
9849
 
9840
9850
  considerDefaultExhaustiveForUnions?: boolean
9841
9851
 
9852
+ defaultCaseCommentPattern?: string
9853
+
9842
9854
  requireDefaultForNonUnion?: boolean
9843
9855
  }]
9844
9856
  // ----- ts/triple-slash-reference -----
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
10
10
  interface RuleOptions {
11
11
  /**
12
12
  * Enforce giving proper names to type parameters when there are two or more
13
- * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.16/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.17/packages/eslint/src/rules/type-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -2633,6 +2633,11 @@ Backward pagination arguments
2633
2633
  * @see https://eslint-react.xyz/docs/rules/no-component-will-update
2634
2634
  */
2635
2635
  'react-extra/no-component-will-update'?: Linter.RuleEntry<[]>
2636
+ /**
2637
+ * disallow the use of '<Context.Provider>'
2638
+ * @see https://eslint-react.xyz/docs/rules/no-context-provider
2639
+ */
2640
+ 'react-extra/no-context-provider'?: Linter.RuleEntry<[]>
2636
2641
  /**
2637
2642
  * disallow using 'createRef' in function components
2638
2643
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
@@ -2653,6 +2658,11 @@ Backward pagination arguments
2653
2658
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
2654
2659
  */
2655
2660
  'react-extra/no-duplicate-key'?: Linter.RuleEntry<[]>
2661
+ /**
2662
+ * disallow the use of 'forwardRef'
2663
+ * @see https://eslint-react.xyz/docs/rules/no-forward-ref
2664
+ */
2665
+ 'react-extra/no-forward-ref'?: Linter.RuleEntry<[]>
2656
2666
  /**
2657
2667
  * disallow implicit 'key' props
2658
2668
  * @see https://eslint-react.xyz/docs/rules/no-implicit-key
@@ -9839,6 +9849,8 @@ type TsSwitchExhaustivenessCheck = []|[{
9839
9849
 
9840
9850
  considerDefaultExhaustiveForUnions?: boolean
9841
9851
 
9852
+ defaultCaseCommentPattern?: string
9853
+
9842
9854
  requireDefaultForNonUnion?: boolean
9843
9855
  }]
9844
9856
  // ----- ts/triple-slash-reference -----
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
3
  "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.",
4
- "version": "2.10.5",
4
+ "version": "2.10.7",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "public": true,
@@ -29,13 +29,13 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
32
- "@eslint-react/eslint-plugin": "1.17.3",
33
- "@eslint/compat": "1.2.3",
32
+ "@eslint-react/eslint-plugin": "1.19.0",
33
+ "@eslint/compat": "1.2.4",
34
34
  "@eslint/js": "9.16.0",
35
- "@graphql-eslint/eslint-plugin": "4.2.1",
36
- "@next/eslint-plugin-next": "15.0.3",
35
+ "@graphql-eslint/eslint-plugin": "4.3.0",
36
+ "@next/eslint-plugin-next": "15.0.4",
37
37
  "@tanstack/eslint-plugin-query": "5.62.1",
38
- "@typescript-eslint/parser": "8.17.0",
38
+ "@typescript-eslint/parser": "8.18.0",
39
39
  "eslint-config-flat-gitignore": "0.3.0",
40
40
  "eslint-config-prettier": "9.1.0",
41
41
  "eslint-flat-config-utils": "0.4.0",
@@ -44,7 +44,7 @@
44
44
  "eslint-plugin-n": "17.14.0",
45
45
  "eslint-plugin-react": "7.37.2",
46
46
  "eslint-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124",
47
- "eslint-plugin-react-hooks": "5.0.0",
47
+ "eslint-plugin-react-hooks": "5.1.0",
48
48
  "eslint-plugin-regexp": "2.7.0",
49
49
  "eslint-plugin-sonarjs": "1.0.4",
50
50
  "eslint-plugin-storybook": "0.11.1",
@@ -55,14 +55,14 @@
55
55
  "globals": "15.13.0",
56
56
  "graphql-config": "5.1.3",
57
57
  "local-pkg": "0.5.1",
58
- "typescript-eslint": "8.17.0",
58
+ "typescript-eslint": "8.18.0",
59
59
  "@2digits/constants": "0.3.4",
60
- "@2digits/eslint-plugin": "2.3.16"
60
+ "@2digits/eslint-plugin": "2.3.17"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/eslint__js": "8.42.3",
64
64
  "@types/node": "22.10.1",
65
- "@typescript-eslint/utils": "8.17.0",
65
+ "@typescript-eslint/utils": "8.18.0",
66
66
  "eslint": "9.16.0",
67
67
  "eslint-typegen": "0.3.2",
68
68
  "tsup": "8.3.5",