@2digits/eslint-config 2.7.2 → 2.7.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.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.2/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.3/packages/eslint/src/rules/type-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -3624,7 +3624,7 @@ Backward pagination arguments
3624
3624
  */
3625
3625
  'storybook/story-exports'?: Linter.RuleEntry<[]>
3626
3626
  /**
3627
- * Use expect from `@storybook/jest`
3627
+ * Use expect from `@storybook/test` or `@storybook/jest`
3628
3628
  * @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/use-storybook-expect.md
3629
3629
  */
3630
3630
  'storybook/use-storybook-expect'?: Linter.RuleEntry<[]>
@@ -5903,6 +5903,7 @@ type JsdocRequireParam = []|[{
5903
5903
  enableRestElementFixer?: boolean
5904
5904
  enableRootFixer?: boolean
5905
5905
  exemptedBy?: string[]
5906
+ ignoreWhenAllParamsMissing?: boolean
5906
5907
  unnamedRootBase?: string[]
5907
5908
  useDefaultObjectProperties?: boolean
5908
5909
  }]
@@ -7405,22 +7406,22 @@ type ReactForbidComponentProps = []|[{
7405
7406
  forbid?: (string | {
7406
7407
  propName?: string
7407
7408
  allowedFor?: string[]
7409
+ allowedForPatterns?: string[]
7408
7410
  message?: string
7411
+ } | ({
7412
+ [k: string]: unknown | undefined
7409
7413
  } | {
7410
- propName?: string
7411
-
7412
- disallowedFor: [string, ...(string)[]]
7413
- message?: string
7414
- } | {
7414
+ [k: string]: unknown | undefined
7415
+ }) | {
7415
7416
  propNamePattern?: string
7416
7417
  allowedFor?: string[]
7418
+ allowedForPatterns?: string[]
7417
7419
  message?: string
7420
+ } | ({
7421
+ [k: string]: unknown | undefined
7418
7422
  } | {
7419
- propNamePattern?: string
7420
-
7421
- disallowedFor: [string, ...(string)[]]
7422
- message?: string
7423
- })[]
7423
+ [k: string]: unknown | undefined
7424
+ }))[]
7424
7425
  [k: string]: unknown | undefined
7425
7426
  }]
7426
7427
  // ----- react/forbid-dom-props -----
@@ -7757,6 +7758,7 @@ type ReactNoUnsafe = []|[{
7757
7758
  type ReactNoUnstableNestedComponents = []|[{
7758
7759
  customValidators?: string[]
7759
7760
  allowAsProps?: boolean
7761
+ propNamePattern?: string
7760
7762
  }]
7761
7763
  // ----- react/no-unused-prop-types -----
7762
7764
  type ReactNoUnusedPropTypes = []|[{
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.2/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.3/packages/eslint/src/rules/type-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -3624,7 +3624,7 @@ Backward pagination arguments
3624
3624
  */
3625
3625
  'storybook/story-exports'?: Linter.RuleEntry<[]>
3626
3626
  /**
3627
- * Use expect from `@storybook/jest`
3627
+ * Use expect from `@storybook/test` or `@storybook/jest`
3628
3628
  * @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/use-storybook-expect.md
3629
3629
  */
3630
3630
  'storybook/use-storybook-expect'?: Linter.RuleEntry<[]>
@@ -5903,6 +5903,7 @@ type JsdocRequireParam = []|[{
5903
5903
  enableRestElementFixer?: boolean
5904
5904
  enableRootFixer?: boolean
5905
5905
  exemptedBy?: string[]
5906
+ ignoreWhenAllParamsMissing?: boolean
5906
5907
  unnamedRootBase?: string[]
5907
5908
  useDefaultObjectProperties?: boolean
5908
5909
  }]
@@ -7405,22 +7406,22 @@ type ReactForbidComponentProps = []|[{
7405
7406
  forbid?: (string | {
7406
7407
  propName?: string
7407
7408
  allowedFor?: string[]
7409
+ allowedForPatterns?: string[]
7408
7410
  message?: string
7411
+ } | ({
7412
+ [k: string]: unknown | undefined
7409
7413
  } | {
7410
- propName?: string
7411
-
7412
- disallowedFor: [string, ...(string)[]]
7413
- message?: string
7414
- } | {
7414
+ [k: string]: unknown | undefined
7415
+ }) | {
7415
7416
  propNamePattern?: string
7416
7417
  allowedFor?: string[]
7418
+ allowedForPatterns?: string[]
7417
7419
  message?: string
7420
+ } | ({
7421
+ [k: string]: unknown | undefined
7418
7422
  } | {
7419
- propNamePattern?: string
7420
-
7421
- disallowedFor: [string, ...(string)[]]
7422
- message?: string
7423
- })[]
7423
+ [k: string]: unknown | undefined
7424
+ }))[]
7424
7425
  [k: string]: unknown | undefined
7425
7426
  }]
7426
7427
  // ----- react/forbid-dom-props -----
@@ -7757,6 +7758,7 @@ type ReactNoUnsafe = []|[{
7757
7758
  type ReactNoUnstableNestedComponents = []|[{
7758
7759
  customValidators?: string[]
7759
7760
  allowAsProps?: boolean
7761
+ propNamePattern?: string
7760
7762
  }]
7761
7763
  // ----- react/no-unused-prop-types -----
7762
7764
  type ReactNoUnusedPropTypes = []|[{
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.7.2",
4
+ "version": "2.7.3",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "public": true,
@@ -29,23 +29,23 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@eslint-community/eslint-plugin-eslint-comments": "4.4.0",
32
- "@eslint-react/eslint-plugin": "1.14.2",
32
+ "@eslint-react/eslint-plugin": "1.14.3",
33
33
  "@eslint/compat": "1.1.1",
34
34
  "@eslint/js": "9.11.1",
35
35
  "@graphql-eslint/eslint-plugin": "3.20.1",
36
36
  "@next/eslint-plugin-next": "14.2.13",
37
- "@tanstack/eslint-plugin-query": "5.57.2",
37
+ "@tanstack/eslint-plugin-query": "5.58.1",
38
38
  "@typescript-eslint/parser": "8.7.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",
42
- "eslint-plugin-jsdoc": "50.2.4",
42
+ "eslint-plugin-jsdoc": "50.3.0",
43
43
  "eslint-plugin-n": "17.10.3",
44
- "eslint-plugin-react": "7.36.1",
45
- "eslint-plugin-react-compiler": "0.0.0-experimental-92aaa43-20240924",
44
+ "eslint-plugin-react": "7.37.0",
45
+ "eslint-plugin-react-compiler": "0.0.0-experimental-f444e11-20240926",
46
46
  "eslint-plugin-react-hooks": "4.6.2",
47
47
  "eslint-plugin-sonarjs": "1.0.4",
48
- "eslint-plugin-storybook": "0.8.0",
48
+ "eslint-plugin-storybook": "0.9.0",
49
49
  "eslint-plugin-tailwindcss": "3.17.4",
50
50
  "eslint-plugin-turbo": "2.1.2",
51
51
  "eslint-plugin-unicorn": "55.0.0",
@@ -53,12 +53,12 @@
53
53
  "globals": "15.9.0",
54
54
  "local-pkg": "0.5.0",
55
55
  "typescript-eslint": "8.7.0",
56
- "@2digits/eslint-plugin": "2.3.2",
57
- "@2digits/constants": "0.3.1"
56
+ "@2digits/constants": "0.3.1",
57
+ "@2digits/eslint-plugin": "2.3.3"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/eslint__js": "8.42.3",
61
- "@types/node": "20.16.6",
61
+ "@types/node": "20.16.10",
62
62
  "@typescript-eslint/utils": "8.7.0",
63
63
  "eslint": "9.11.1",
64
64
  "eslint-typegen": "0.3.2",