@2digits/eslint-config 3.0.1 → 3.0.2

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.35/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/tree/main/packages/eslint-plugin/src/rulestype-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -2823,7 +2823,7 @@ Backward pagination arguments
2823
2823
  */
2824
2824
  'react-extra/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
2825
2825
  /**
2826
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
2826
+ * marks variables used in JSX as used
2827
2827
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2828
2828
  */
2829
2829
  'react-extra/jsx-uses-vars'?: Linter.RuleEntry<[]>
@@ -2957,6 +2957,11 @@ Backward pagination arguments
2957
2957
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
2958
2958
  */
2959
2959
  'react-extra/no-missing-component-display-name'?: Linter.RuleEntry<[]>
2960
+ /**
2961
+ * require 'displayName' for contexts.
2962
+ * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
2963
+ */
2964
+ 'react-extra/no-missing-context-display-name'?: Linter.RuleEntry<[]>
2960
2965
  /**
2961
2966
  * require 'key' when rendering list
2962
2967
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
@@ -3038,7 +3043,7 @@ Backward pagination arguments
3038
3043
  */
3039
3044
  'react-extra/no-use-context'?: Linter.RuleEntry<[]>
3040
3045
  /**
3041
- * disallow unnecessary fragments
3046
+ * disallow useless fragments
3042
3047
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
3043
3048
  */
3044
3049
  'react-extra/no-useless-fragment'?: Linter.RuleEntry<ReactExtraNoUselessFragment>
@@ -3068,7 +3073,7 @@ Backward pagination arguments
3068
3073
  */
3069
3074
  'react-extra/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
3070
3075
  /**
3071
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
3076
+ * marks variables used in JSX as used
3072
3077
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3073
3078
  */
3074
3079
  'react-extra/use-jsx-vars'?: Linter.RuleEntry<[]>
@@ -3148,7 +3153,7 @@ Backward pagination arguments
3148
3153
  */
3149
3154
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
3150
3155
  /**
3151
- * enforce destructuring and symmetric naming of 'useState' hook value and setter variables
3156
+ * enforce destructuring and symmetric naming of 'useState' hook value and setter
3152
3157
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
3153
3158
  */
3154
3159
  'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
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.35/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/tree/main/packages/eslint-plugin/src/rulestype-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -2823,7 +2823,7 @@ Backward pagination arguments
2823
2823
  */
2824
2824
  'react-extra/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
2825
2825
  /**
2826
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
2826
+ * marks variables used in JSX as used
2827
2827
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2828
2828
  */
2829
2829
  'react-extra/jsx-uses-vars'?: Linter.RuleEntry<[]>
@@ -2957,6 +2957,11 @@ Backward pagination arguments
2957
2957
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
2958
2958
  */
2959
2959
  'react-extra/no-missing-component-display-name'?: Linter.RuleEntry<[]>
2960
+ /**
2961
+ * require 'displayName' for contexts.
2962
+ * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
2963
+ */
2964
+ 'react-extra/no-missing-context-display-name'?: Linter.RuleEntry<[]>
2960
2965
  /**
2961
2966
  * require 'key' when rendering list
2962
2967
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
@@ -3038,7 +3043,7 @@ Backward pagination arguments
3038
3043
  */
3039
3044
  'react-extra/no-use-context'?: Linter.RuleEntry<[]>
3040
3045
  /**
3041
- * disallow unnecessary fragments
3046
+ * disallow useless fragments
3042
3047
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
3043
3048
  */
3044
3049
  'react-extra/no-useless-fragment'?: Linter.RuleEntry<ReactExtraNoUselessFragment>
@@ -3068,7 +3073,7 @@ Backward pagination arguments
3068
3073
  */
3069
3074
  'react-extra/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
3070
3075
  /**
3071
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
3076
+ * marks variables used in JSX as used
3072
3077
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3073
3078
  */
3074
3079
  'react-extra/use-jsx-vars'?: Linter.RuleEntry<[]>
@@ -3148,7 +3153,7 @@ Backward pagination arguments
3148
3153
  */
3149
3154
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
3150
3155
  /**
3151
- * enforce destructuring and symmetric naming of 'useState' hook value and setter variables
3156
+ * enforce destructuring and symmetric naming of 'useState' hook value and setter
3152
3157
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
3153
3158
  */
3154
3159
  'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "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.",
5
5
  "homepage": "https://2d-configs.vercel.app/",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/2digits-agency/configs.git",
9
+ "directory": "packages/eslint-config"
10
+ },
6
11
  "type": "module",
7
12
  "main": "./dist/index.js",
8
13
  "types": "./dist/index.d.ts",
@@ -30,11 +35,11 @@
30
35
  "public": true,
31
36
  "dependencies": {
32
37
  "@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
33
- "@eslint-react/eslint-plugin": "1.26.2",
34
- "@eslint/compat": "1.2.6",
35
- "@eslint/core": "0.11.0",
36
- "@eslint/js": "9.20.0",
37
- "@eslint/plugin-kit": "0.2.6",
38
+ "@eslint-react/eslint-plugin": "1.27.0",
39
+ "@eslint/compat": "1.2.7",
40
+ "@eslint/core": "0.12.0",
41
+ "@eslint/js": "9.21.0",
42
+ "@eslint/plugin-kit": "0.2.7",
38
43
  "@graphql-eslint/eslint-plugin": "4.3.0",
39
44
  "@next/eslint-plugin-next": "15.1.7",
40
45
  "@tanstack/eslint-plugin-query": "5.66.1",
@@ -59,21 +64,20 @@
59
64
  "eslint-plugin-turbo": "2.4.2",
60
65
  "eslint-plugin-unicorn": "57.0.0",
61
66
  "find-up": "7.0.0",
62
- "globals": "15.15.0",
67
+ "globals": "16.0.0",
63
68
  "graphql-config": "5.1.3",
64
69
  "jsonc-eslint-parser": "2.4.0",
65
70
  "local-pkg": "1.0.0",
66
71
  "typescript-eslint": "8.24.1",
67
72
  "@2digits/constants": "0.3.5",
68
- "@2digits/eslint-plugin": "2.3.35"
73
+ "@2digits/eslint-plugin": "2.3.36"
69
74
  },
70
75
  "devDependencies": {
71
76
  "@eslint/config-inspector": "1.0.0",
72
77
  "@eslint/css": "0.4.0",
73
- "@types/eslint__js": "8.42.3",
74
- "@types/node": "22.13.4",
78
+ "@types/node": "22.13.5",
75
79
  "@typescript-eslint/utils": "8.24.1",
76
- "eslint": "9.20.1",
80
+ "eslint": "9.21.0",
77
81
  "eslint-typegen": "2.0.0",
78
82
  "tsup": "8.3.6",
79
83
  "typescript": "5.7.3",