@2digits/eslint-config 2.10.2 → 2.10.4

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.14/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.16/packages/eslint/src/rules/type-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -1363,7 +1363,7 @@ Backward pagination arguments
1363
1363
  */
1364
1364
  'no-class-assign'?: Linter.RuleEntry<[]>
1365
1365
  /**
1366
- * Disallow comparing against -0
1366
+ * Disallow comparing against `-0`
1367
1367
  * @see https://eslint.org/docs/latest/rules/no-compare-neg-zero
1368
1368
  */
1369
1369
  'no-compare-neg-zero'?: Linter.RuleEntry<[]>
@@ -5946,6 +5946,18 @@ interface _GqlNamingConvention_AsObject {
5946
5946
  prefix?: string
5947
5947
  suffix?: string
5948
5948
 
5949
+ forbiddenPatterns?: [{
5950
+ [k: string]: unknown | undefined
5951
+ }, ...({
5952
+ [k: string]: unknown | undefined
5953
+ })[]]
5954
+
5955
+ requiredPatterns?: [{
5956
+ [k: string]: unknown | undefined
5957
+ }, ...({
5958
+ [k: string]: unknown | undefined
5959
+ })[]]
5960
+
5949
5961
  forbiddenPrefixes?: [string, ...(string)[]]
5950
5962
 
5951
5963
  forbiddenSuffixes?: [string, ...(string)[]]
@@ -5987,9 +5999,11 @@ type GqlRequireDeprecationDate = []|[{
5987
5999
  // ----- gql/require-description -----
5988
6000
  type GqlRequireDescription = [{
5989
6001
 
5990
- types?: boolean
6002
+ types?: true
5991
6003
 
5992
- rootField?: boolean
6004
+ rootField?: true
6005
+
6006
+ ignoredSelectors?: [string, ...(string)[]]
5993
6007
 
5994
6008
  DirectiveDefinition?: boolean
5995
6009
 
@@ -6016,6 +6030,8 @@ type GqlRequireDescription = [{
6016
6030
  // ----- gql/require-selections -----
6017
6031
  type GqlRequireSelections = []|[{
6018
6032
  fieldName?: (_GqlRequireSelectionsAsString | _GqlRequireSelections_AsArray)
6033
+
6034
+ requireAllFields?: boolean
6019
6035
  }]
6020
6036
  type _GqlRequireSelectionsAsString = string
6021
6037
  type _GqlRequireSelections_AsArray = [string, ...(string)[]]
@@ -8585,6 +8601,7 @@ type SortKeys = []|[("asc" | "desc")]|[("asc" | "desc"), {
8585
8601
  natural?: boolean
8586
8602
  minKeys?: number
8587
8603
  allowLineSeparatedGroups?: boolean
8604
+ ignoreComputedKeys?: boolean
8588
8605
  }]
8589
8606
  // ----- sort-vars -----
8590
8607
  type SortVars = []|[{
@@ -9679,6 +9696,10 @@ type TsPreferOptionalChain = []|[{
9679
9696
  type TsPreferPromiseRejectErrors = []|[{
9680
9697
 
9681
9698
  allowEmptyReject?: boolean
9699
+
9700
+ allowThrowingAny?: boolean
9701
+
9702
+ allowThrowingUnknown?: boolean
9682
9703
  }]
9683
9704
  // ----- ts/prefer-readonly -----
9684
9705
  type TsPreferReadonly = []|[{
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.14/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.16/packages/eslint/src/rules/type-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -1363,7 +1363,7 @@ Backward pagination arguments
1363
1363
  */
1364
1364
  'no-class-assign'?: Linter.RuleEntry<[]>
1365
1365
  /**
1366
- * Disallow comparing against -0
1366
+ * Disallow comparing against `-0`
1367
1367
  * @see https://eslint.org/docs/latest/rules/no-compare-neg-zero
1368
1368
  */
1369
1369
  'no-compare-neg-zero'?: Linter.RuleEntry<[]>
@@ -5946,6 +5946,18 @@ interface _GqlNamingConvention_AsObject {
5946
5946
  prefix?: string
5947
5947
  suffix?: string
5948
5948
 
5949
+ forbiddenPatterns?: [{
5950
+ [k: string]: unknown | undefined
5951
+ }, ...({
5952
+ [k: string]: unknown | undefined
5953
+ })[]]
5954
+
5955
+ requiredPatterns?: [{
5956
+ [k: string]: unknown | undefined
5957
+ }, ...({
5958
+ [k: string]: unknown | undefined
5959
+ })[]]
5960
+
5949
5961
  forbiddenPrefixes?: [string, ...(string)[]]
5950
5962
 
5951
5963
  forbiddenSuffixes?: [string, ...(string)[]]
@@ -5987,9 +5999,11 @@ type GqlRequireDeprecationDate = []|[{
5987
5999
  // ----- gql/require-description -----
5988
6000
  type GqlRequireDescription = [{
5989
6001
 
5990
- types?: boolean
6002
+ types?: true
5991
6003
 
5992
- rootField?: boolean
6004
+ rootField?: true
6005
+
6006
+ ignoredSelectors?: [string, ...(string)[]]
5993
6007
 
5994
6008
  DirectiveDefinition?: boolean
5995
6009
 
@@ -6016,6 +6030,8 @@ type GqlRequireDescription = [{
6016
6030
  // ----- gql/require-selections -----
6017
6031
  type GqlRequireSelections = []|[{
6018
6032
  fieldName?: (_GqlRequireSelectionsAsString | _GqlRequireSelections_AsArray)
6033
+
6034
+ requireAllFields?: boolean
6019
6035
  }]
6020
6036
  type _GqlRequireSelectionsAsString = string
6021
6037
  type _GqlRequireSelections_AsArray = [string, ...(string)[]]
@@ -8585,6 +8601,7 @@ type SortKeys = []|[("asc" | "desc")]|[("asc" | "desc"), {
8585
8601
  natural?: boolean
8586
8602
  minKeys?: number
8587
8603
  allowLineSeparatedGroups?: boolean
8604
+ ignoreComputedKeys?: boolean
8588
8605
  }]
8589
8606
  // ----- sort-vars -----
8590
8607
  type SortVars = []|[{
@@ -9679,6 +9696,10 @@ type TsPreferOptionalChain = []|[{
9679
9696
  type TsPreferPromiseRejectErrors = []|[{
9680
9697
 
9681
9698
  allowEmptyReject?: boolean
9699
+
9700
+ allowThrowingAny?: boolean
9701
+
9702
+ allowThrowingUnknown?: boolean
9682
9703
  }]
9683
9704
  // ----- ts/prefer-readonly -----
9684
9705
  type TsPreferReadonly = []|[{
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.2",
4
+ "version": "2.10.4",
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.1",
32
+ "@eslint-react/eslint-plugin": "1.17.3",
33
33
  "@eslint/compat": "1.2.3",
34
- "@eslint/js": "9.15.0",
35
- "@graphql-eslint/eslint-plugin": "4.0.1",
34
+ "@eslint/js": "9.16.0",
35
+ "@graphql-eslint/eslint-plugin": "4.2.0",
36
36
  "@next/eslint-plugin-next": "15.0.3",
37
- "@tanstack/eslint-plugin-query": "5.61.6",
38
- "@typescript-eslint/parser": "8.16.0",
37
+ "@tanstack/eslint-plugin-query": "5.62.1",
38
+ "@typescript-eslint/parser": "8.17.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",
@@ -52,18 +52,18 @@
52
52
  "eslint-plugin-turbo": "2.3.3",
53
53
  "eslint-plugin-unicorn": "56.0.1",
54
54
  "find-up": "7.0.0",
55
- "globals": "15.12.0",
55
+ "globals": "15.13.0",
56
56
  "graphql-config": "5.1.3",
57
57
  "local-pkg": "0.5.1",
58
- "typescript-eslint": "8.16.0",
59
- "@2digits/eslint-plugin": "2.3.14",
60
- "@2digits/constants": "0.3.4"
58
+ "typescript-eslint": "8.17.0",
59
+ "@2digits/constants": "0.3.4",
60
+ "@2digits/eslint-plugin": "2.3.16"
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.16.0",
66
- "eslint": "9.15.0",
65
+ "@typescript-eslint/utils": "8.17.0",
66
+ "eslint": "9.16.0",
67
67
  "eslint-typegen": "0.3.2",
68
68
  "tsup": "8.3.5",
69
69
  "typescript": "5.7.2",