@2digits/eslint-config 2.4.2 → 2.4.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
@@ -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.1/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.2.4/packages/eslint/src/rules/type-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -777,7 +777,7 @@ Backward pagination arguments
777
777
  'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>
778
778
  /**
779
779
  * Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
780
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
780
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-template-names.md#repos-sticky-header
781
781
  */
782
782
  'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
783
783
  /**
@@ -815,6 +815,11 @@ Backward pagination arguments
815
815
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/informative-docs.md#repos-sticky-header
816
816
  */
817
817
  'jsdoc/informative-docs'?: Linter.RuleEntry<JsdocInformativeDocs>
818
+ /**
819
+ * Enforces minimum number of newlines before JSDoc comment blocks
820
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/lines-before-block.md#repos-sticky-header
821
+ */
822
+ 'jsdoc/lines-before-block'?: Linter.RuleEntry<JsdocLinesBeforeBlock>
818
823
  /**
819
824
  * Enforces a regular expression pattern on descriptions.
820
825
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-description.md#repos-sticky-header
@@ -2539,13 +2544,11 @@ Backward pagination arguments
2539
2544
  /**
2540
2545
  * disallow complex conditional rendering
2541
2546
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
2542
- * @deprecated
2543
2547
  */
2544
2548
  'react-extra/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
2545
2549
  /**
2546
2550
  * disallow complex conditional rendering
2547
2551
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
2548
- * @deprecated
2549
2552
  */
2550
2553
  'react-extra/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
2551
2554
  /**
@@ -2579,7 +2582,7 @@ Backward pagination arguments
2579
2582
  */
2580
2583
  'react-extra/no-direct-mutation-state'?: Linter.RuleEntry<[]>
2581
2584
  /**
2582
- * disallow duplicate keys in 'key' prop when rendering list
2585
+ * disallow duplicate keys when rendering list
2583
2586
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
2584
2587
  */
2585
2588
  'react-extra/no-duplicate-key'?: Linter.RuleEntry<[]>
@@ -2599,7 +2602,7 @@ Backward pagination arguments
2599
2602
  */
2600
2603
  'react-extra/no-missing-component-display-name'?: Linter.RuleEntry<[]>
2601
2604
  /**
2602
- * require 'key' prop when rendering list
2605
+ * require 'key' when rendering list
2603
2606
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
2604
2607
  */
2605
2608
  'react-extra/no-missing-key'?: Linter.RuleEntry<[]>
@@ -5644,6 +5647,12 @@ type JsdocInformativeDocs = []|[{
5644
5647
  excludedTags?: string[]
5645
5648
  uselessWords?: string[]
5646
5649
  }]
5650
+ // ----- jsdoc/lines-before-block -----
5651
+ type JsdocLinesBeforeBlock = []|[{
5652
+ excludedTags?: string[]
5653
+ ignoreSameLine?: boolean
5654
+ lines?: number
5655
+ }]
5647
5656
  // ----- jsdoc/match-description -----
5648
5657
  type JsdocMatchDescription = []|[{
5649
5658
  contexts?: (string | {
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.1/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.2.4/packages/eslint/src/rules/type-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -777,7 +777,7 @@ Backward pagination arguments
777
777
  'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>
778
778
  /**
779
779
  * Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
780
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
780
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-template-names.md#repos-sticky-header
781
781
  */
782
782
  'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
783
783
  /**
@@ -815,6 +815,11 @@ Backward pagination arguments
815
815
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/informative-docs.md#repos-sticky-header
816
816
  */
817
817
  'jsdoc/informative-docs'?: Linter.RuleEntry<JsdocInformativeDocs>
818
+ /**
819
+ * Enforces minimum number of newlines before JSDoc comment blocks
820
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/lines-before-block.md#repos-sticky-header
821
+ */
822
+ 'jsdoc/lines-before-block'?: Linter.RuleEntry<JsdocLinesBeforeBlock>
818
823
  /**
819
824
  * Enforces a regular expression pattern on descriptions.
820
825
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-description.md#repos-sticky-header
@@ -2539,13 +2544,11 @@ Backward pagination arguments
2539
2544
  /**
2540
2545
  * disallow complex conditional rendering
2541
2546
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
2542
- * @deprecated
2543
2547
  */
2544
2548
  'react-extra/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
2545
2549
  /**
2546
2550
  * disallow complex conditional rendering
2547
2551
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
2548
- * @deprecated
2549
2552
  */
2550
2553
  'react-extra/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
2551
2554
  /**
@@ -2579,7 +2582,7 @@ Backward pagination arguments
2579
2582
  */
2580
2583
  'react-extra/no-direct-mutation-state'?: Linter.RuleEntry<[]>
2581
2584
  /**
2582
- * disallow duplicate keys in 'key' prop when rendering list
2585
+ * disallow duplicate keys when rendering list
2583
2586
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
2584
2587
  */
2585
2588
  'react-extra/no-duplicate-key'?: Linter.RuleEntry<[]>
@@ -2599,7 +2602,7 @@ Backward pagination arguments
2599
2602
  */
2600
2603
  'react-extra/no-missing-component-display-name'?: Linter.RuleEntry<[]>
2601
2604
  /**
2602
- * require 'key' prop when rendering list
2605
+ * require 'key' when rendering list
2603
2606
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
2604
2607
  */
2605
2608
  'react-extra/no-missing-key'?: Linter.RuleEntry<[]>
@@ -5644,6 +5647,12 @@ type JsdocInformativeDocs = []|[{
5644
5647
  excludedTags?: string[]
5645
5648
  uselessWords?: string[]
5646
5649
  }]
5650
+ // ----- jsdoc/lines-before-block -----
5651
+ type JsdocLinesBeforeBlock = []|[{
5652
+ excludedTags?: string[]
5653
+ ignoreSameLine?: boolean
5654
+ lines?: number
5655
+ }]
5647
5656
  // ----- jsdoc/match-description -----
5648
5657
  type JsdocMatchDescription = []|[{
5649
5658
  contexts?: (string | {
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.2",
4
+ "version": "2.4.5",
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
- "@2digits/constants": "0.2.2",
32
- "@2digits/eslint-plugin": "2.2.1",
33
- "@eslint-react/eslint-plugin": "^1.8.2",
31
+ "@eslint-react/eslint-plugin": "^1.10.0",
34
32
  "@eslint/compat": "^1.1.1",
35
- "@eslint/js": "^9.8.0",
33
+ "@eslint/js": "^9.9.0",
36
34
  "@graphql-eslint/eslint-plugin": "^3.20.1",
37
35
  "@next/eslint-plugin-next": "^14.2.5",
38
36
  "@tanstack/eslint-plugin-query": "^5.51.15",
39
- "@typescript-eslint/parser": "^8.0.0",
37
+ "@typescript-eslint/parser": "^8.0.1",
40
38
  "eslint-config-flat-gitignore": "^0.1.8",
41
39
  "eslint-config-prettier": "^9.1.0",
42
40
  "eslint-flat-config-utils": "^0.3.0",
43
41
  "eslint-plugin-eslint-comments": "^3.2.0",
44
- "eslint-plugin-jsdoc": "^48.11.0",
45
- "eslint-plugin-n": "^17.10.1",
42
+ "eslint-plugin-jsdoc": "^50.0.1",
43
+ "eslint-plugin-n": "^17.10.2",
46
44
  "eslint-plugin-react": "^7.35.0",
47
45
  "eslint-plugin-react-compiler": "0.0.0-experimental-9ed098e-20240725",
48
46
  "eslint-plugin-react-hooks": "^4.6.2",
49
47
  "eslint-plugin-sonarjs": "^1.0.4",
50
48
  "eslint-plugin-storybook": "^0.8.0",
51
49
  "eslint-plugin-tailwindcss": "^3.17.4",
52
- "eslint-plugin-turbo": "^2.0.11",
50
+ "eslint-plugin-turbo": "^2.0.12",
53
51
  "eslint-plugin-unicorn": "^55.0.0",
54
52
  "find-up": "^7.0.0",
55
53
  "globals": "^15.9.0",
56
54
  "local-pkg": "^0.5.0",
57
- "typescript-eslint": "^8.0.0"
55
+ "typescript-eslint": "^8.0.1",
56
+ "@2digits/constants": "0.2.4",
57
+ "@2digits/eslint-plugin": "2.2.4"
58
58
  },
59
59
  "devDependencies": {
60
- "@2digits/tsconfig": "0.5.0",
61
60
  "@types/eslint": "^9.6.0",
62
61
  "@types/eslint__js": "^8.42.3",
63
- "@types/node": "^20.14.14",
64
- "@typescript-eslint/utils": "8.0.0",
65
- "eslint": "^9.8.0",
62
+ "@types/node": "^20.14.15",
63
+ "@typescript-eslint/utils": "8.0.1",
64
+ "eslint": "^9.9.0",
66
65
  "eslint-typegen": "^0.3.0",
67
66
  "tsup": "^8.2.4",
68
- "typescript": "^5.5.4"
67
+ "typescript": "^5.5.4",
68
+ "@2digits/tsconfig": "0.5.0"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "tsup",