@2digits/eslint-config 2.4.6 → 2.4.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.2.4/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.2.5/packages/eslint/src/rules/type-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -4050,7 +4050,7 @@ Backward pagination arguments
4050
4050
  */
4051
4051
  'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
4052
4052
  /**
4053
- * Disallow type parameters that only appear once
4053
+ * Disallow type parameters that aren't used multiple times
4054
4054
  * @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
4055
4055
  */
4056
4056
  'ts/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>
@@ -4319,7 +4319,7 @@ Backward pagination arguments
4319
4319
  'ts/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>
4320
4320
  /**
4321
4321
  * Do not allow the use of `process.env` without including the env key in any turbo.json
4322
- * @see https://github.com/vercel/turbo/tree/main/packages/eslint-plugin-turbo/docs/rules/no-undeclared-env-vars.md
4322
+ * @see https://github.com/vercel/turborepo/tree/main/packages/eslint-plugin-turbo/docs/rules/no-undeclared-env-vars.md
4323
4323
  */
4324
4324
  'turbo/no-undeclared-env-vars'?: Linter.RuleEntry<TurboNoUndeclaredEnvVars>
4325
4325
  /**
@@ -8575,6 +8575,7 @@ type TsNoMisusedPromises = []|[{
8575
8575
  checksVoidReturn?: (boolean | {
8576
8576
  arguments?: boolean
8577
8577
  attributes?: boolean
8578
+ inheritedMethods?: boolean
8578
8579
  properties?: boolean
8579
8580
  returns?: boolean
8580
8581
  variables?: boolean
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.2.4/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.2.5/packages/eslint/src/rules/type-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -4050,7 +4050,7 @@ Backward pagination arguments
4050
4050
  */
4051
4051
  'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
4052
4052
  /**
4053
- * Disallow type parameters that only appear once
4053
+ * Disallow type parameters that aren't used multiple times
4054
4054
  * @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
4055
4055
  */
4056
4056
  'ts/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>
@@ -4319,7 +4319,7 @@ Backward pagination arguments
4319
4319
  'ts/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>
4320
4320
  /**
4321
4321
  * Do not allow the use of `process.env` without including the env key in any turbo.json
4322
- * @see https://github.com/vercel/turbo/tree/main/packages/eslint-plugin-turbo/docs/rules/no-undeclared-env-vars.md
4322
+ * @see https://github.com/vercel/turborepo/tree/main/packages/eslint-plugin-turbo/docs/rules/no-undeclared-env-vars.md
4323
4323
  */
4324
4324
  'turbo/no-undeclared-env-vars'?: Linter.RuleEntry<TurboNoUndeclaredEnvVars>
4325
4325
  /**
@@ -8575,6 +8575,7 @@ type TsNoMisusedPromises = []|[{
8575
8575
  checksVoidReturn?: (boolean | {
8576
8576
  arguments?: boolean
8577
8577
  attributes?: boolean
8578
+ inheritedMethods?: boolean
8578
8579
  properties?: boolean
8579
8580
  returns?: boolean
8580
8581
  variables?: boolean
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.4.6",
4
+ "version": "2.4.7",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "public": true,
@@ -28,44 +28,44 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@eslint-react/eslint-plugin": "^1.10.0",
32
- "@eslint/compat": "^1.1.1",
33
- "@eslint/js": "^9.9.0",
34
- "@graphql-eslint/eslint-plugin": "^3.20.1",
35
- "@next/eslint-plugin-next": "^14.2.5",
36
- "@tanstack/eslint-plugin-query": "^5.51.15",
37
- "@typescript-eslint/parser": "^8.0.1",
38
- "eslint-config-flat-gitignore": "^0.1.8",
39
- "eslint-config-prettier": "^9.1.0",
40
- "eslint-flat-config-utils": "^0.3.0",
41
- "eslint-plugin-eslint-comments": "^3.2.0",
42
- "eslint-plugin-jsdoc": "^50.0.1",
43
- "eslint-plugin-n": "^17.10.2",
44
- "eslint-plugin-react": "^7.35.0",
31
+ "@eslint-react/eslint-plugin": "1.10.1",
32
+ "@eslint/compat": "1.1.1",
33
+ "@eslint/js": "9.9.0",
34
+ "@graphql-eslint/eslint-plugin": "3.20.1",
35
+ "@next/eslint-plugin-next": "14.2.5",
36
+ "@tanstack/eslint-plugin-query": "5.51.15",
37
+ "@typescript-eslint/parser": "8.1.0",
38
+ "eslint-config-flat-gitignore": "0.1.8",
39
+ "eslint-config-prettier": "9.1.0",
40
+ "eslint-flat-config-utils": "0.3.0",
41
+ "eslint-plugin-eslint-comments": "3.2.0",
42
+ "eslint-plugin-jsdoc": "50.2.2",
43
+ "eslint-plugin-n": "17.10.2",
44
+ "eslint-plugin-react": "7.35.0",
45
45
  "eslint-plugin-react-compiler": "0.0.0-experimental-9ed098e-20240725",
46
- "eslint-plugin-react-hooks": "^4.6.2",
47
- "eslint-plugin-sonarjs": "^1.0.4",
48
- "eslint-plugin-storybook": "^0.8.0",
49
- "eslint-plugin-tailwindcss": "^3.17.4",
50
- "eslint-plugin-turbo": "^2.0.12",
51
- "eslint-plugin-unicorn": "^55.0.0",
52
- "find-up": "^7.0.0",
53
- "globals": "^15.9.0",
54
- "local-pkg": "^0.5.0",
55
- "typescript-eslint": "^8.0.1",
56
- "@2digits/constants": "0.2.4",
57
- "@2digits/eslint-plugin": "2.2.4"
46
+ "eslint-plugin-react-hooks": "4.6.2",
47
+ "eslint-plugin-sonarjs": "1.0.4",
48
+ "eslint-plugin-storybook": "0.8.0",
49
+ "eslint-plugin-tailwindcss": "3.17.4",
50
+ "eslint-plugin-turbo": "2.0.14",
51
+ "eslint-plugin-unicorn": "55.0.0",
52
+ "find-up": "7.0.0",
53
+ "globals": "15.9.0",
54
+ "local-pkg": "0.5.0",
55
+ "typescript-eslint": "8.1.0",
56
+ "@2digits/constants": "0.2.5",
57
+ "@2digits/eslint-plugin": "2.2.5"
58
58
  },
59
59
  "devDependencies": {
60
- "@types/eslint": "^9.6.0",
61
- "@types/eslint__js": "^8.42.3",
62
- "@types/node": "^20.14.15",
63
- "@typescript-eslint/utils": "8.0.1",
64
- "eslint": "^9.9.0",
65
- "eslint-typegen": "^0.3.0",
66
- "tsup": "^8.2.4",
67
- "typescript": "^5.5.4",
68
- "@2digits/tsconfig": "0.5.0"
60
+ "@types/eslint": "9.6.0",
61
+ "@types/eslint__js": "8.42.3",
62
+ "@types/node": "20.14.15",
63
+ "@typescript-eslint/utils": "8.1.0",
64
+ "eslint": "9.9.0",
65
+ "eslint-typegen": "0.3.1",
66
+ "tsup": "8.2.4",
67
+ "typescript": "5.5.4",
68
+ "@2digits/tsconfig": "0.5.1"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "tsup",