@2digits/eslint-config 3.0.1 → 3.0.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.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
  /**
@@ -2757,6 +2757,11 @@ Backward pagination arguments
2757
2757
  * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
2758
2758
  */
2759
2759
  'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
2760
+ /**
2761
+ * warns against using `flushSync`
2762
+ * @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
2763
+ */
2764
+ 'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
2760
2765
  /**
2761
2766
  * enforce that button component have an explicit 'type' attribute
2762
2767
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
@@ -2823,7 +2828,7 @@ Backward pagination arguments
2823
2828
  */
2824
2829
  'react-extra/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
2825
2830
  /**
2826
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
2831
+ * marks variables used in JSX as used
2827
2832
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2828
2833
  */
2829
2834
  'react-extra/jsx-uses-vars'?: Linter.RuleEntry<[]>
@@ -2957,6 +2962,11 @@ Backward pagination arguments
2957
2962
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
2958
2963
  */
2959
2964
  'react-extra/no-missing-component-display-name'?: Linter.RuleEntry<[]>
2965
+ /**
2966
+ * require 'displayName' for contexts.
2967
+ * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
2968
+ */
2969
+ 'react-extra/no-missing-context-display-name'?: Linter.RuleEntry<[]>
2960
2970
  /**
2961
2971
  * require 'key' when rendering list
2962
2972
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
@@ -3038,7 +3048,7 @@ Backward pagination arguments
3038
3048
  */
3039
3049
  'react-extra/no-use-context'?: Linter.RuleEntry<[]>
3040
3050
  /**
3041
- * disallow unnecessary fragments
3051
+ * disallow useless fragments
3042
3052
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
3043
3053
  */
3044
3054
  'react-extra/no-useless-fragment'?: Linter.RuleEntry<ReactExtraNoUselessFragment>
@@ -3068,7 +3078,7 @@ Backward pagination arguments
3068
3078
  */
3069
3079
  'react-extra/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
3070
3080
  /**
3071
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
3081
+ * marks variables used in JSX as used
3072
3082
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3073
3083
  */
3074
3084
  'react-extra/use-jsx-vars'?: Linter.RuleEntry<[]>
@@ -3148,7 +3158,7 @@ Backward pagination arguments
3148
3158
  */
3149
3159
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
3150
3160
  /**
3151
- * enforce destructuring and symmetric naming of 'useState' hook value and setter variables
3161
+ * enforce destructuring and symmetric naming of 'useState' hook value and setter
3152
3162
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
3153
3163
  */
3154
3164
  '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
  /**
@@ -2757,6 +2757,11 @@ Backward pagination arguments
2757
2757
  * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
2758
2758
  */
2759
2759
  'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
2760
+ /**
2761
+ * warns against using `flushSync`
2762
+ * @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
2763
+ */
2764
+ 'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
2760
2765
  /**
2761
2766
  * enforce that button component have an explicit 'type' attribute
2762
2767
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
@@ -2823,7 +2828,7 @@ Backward pagination arguments
2823
2828
  */
2824
2829
  'react-extra/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
2825
2830
  /**
2826
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
2831
+ * marks variables used in JSX as used
2827
2832
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2828
2833
  */
2829
2834
  'react-extra/jsx-uses-vars'?: Linter.RuleEntry<[]>
@@ -2957,6 +2962,11 @@ Backward pagination arguments
2957
2962
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
2958
2963
  */
2959
2964
  'react-extra/no-missing-component-display-name'?: Linter.RuleEntry<[]>
2965
+ /**
2966
+ * require 'displayName' for contexts.
2967
+ * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
2968
+ */
2969
+ 'react-extra/no-missing-context-display-name'?: Linter.RuleEntry<[]>
2960
2970
  /**
2961
2971
  * require 'key' when rendering list
2962
2972
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
@@ -3038,7 +3048,7 @@ Backward pagination arguments
3038
3048
  */
3039
3049
  'react-extra/no-use-context'?: Linter.RuleEntry<[]>
3040
3050
  /**
3041
- * disallow unnecessary fragments
3051
+ * disallow useless fragments
3042
3052
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
3043
3053
  */
3044
3054
  'react-extra/no-useless-fragment'?: Linter.RuleEntry<ReactExtraNoUselessFragment>
@@ -3068,7 +3078,7 @@ Backward pagination arguments
3068
3078
  */
3069
3079
  'react-extra/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
3070
3080
  /**
3071
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
3081
+ * marks variables used in JSX as used
3072
3082
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3073
3083
  */
3074
3084
  'react-extra/use-jsx-vars'?: Linter.RuleEntry<[]>
@@ -3148,7 +3158,7 @@ Backward pagination arguments
3148
3158
  */
3149
3159
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
3150
3160
  /**
3151
- * enforce destructuring and symmetric naming of 'useState' hook value and setter variables
3161
+ * enforce destructuring and symmetric naming of 'useState' hook value and setter
3152
3162
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
3153
3163
  */
3154
3164
  'react-naming-convention/use-state'?: Linter.RuleEntry<[]>