@2digits/eslint-config 5.0.1 → 5.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +14 -2
  2. package/package.json +8 -8
package/dist/index.d.mts CHANGED
@@ -3457,7 +3457,7 @@ interface RuleOptions {
3457
3457
  */
3458
3458
  'react-extra/no-string-refs'?: Linter.RuleEntry<[]>;
3459
3459
  /**
3460
- * Prevents 'key' from being placed on non-top-level elements in list rendering.
3460
+ * Disallows unnecessary `key` props on elements.
3461
3461
  * @see https://eslint-react.xyz/docs/rules/no-unnecessary-key
3462
3462
  */
3463
3463
  'react-extra/no-unnecessary-key'?: Linter.RuleEntry<[]>;
@@ -3695,7 +3695,7 @@ interface RuleOptions {
3695
3695
  */
3696
3696
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
3697
3697
  /**
3698
- * Enforces variable names assigned from 'useRef' calls to be either 'ref' or end with 'Ref'.
3698
+ * Enforces identifier names assigned from 'useRef' calls to be either 'ref' or end with 'Ref'.
3699
3699
  * @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
3700
3700
  */
3701
3701
  'react-naming-convention/ref-name'?: Linter.RuleEntry<[]>;
@@ -6888,6 +6888,11 @@ interface RuleOptions {
6888
6888
  * @see https://typescript-eslint.io/rules/strict-boolean-expressions
6889
6889
  */
6890
6890
  'ts/strict-boolean-expressions'?: Linter.RuleEntry<TsStrictBooleanExpressions>;
6891
+ /**
6892
+ * Disallow passing a value-returning function in a position accepting a void function
6893
+ * @see https://typescript-eslint.io/rules/strict-void-return
6894
+ */
6895
+ 'ts/strict-void-return'?: Linter.RuleEntry<TsStrictVoidReturn>;
6891
6896
  /**
6892
6897
  * Require switch-case statements to be exhaustive
6893
6898
  * @see https://typescript-eslint.io/rules/switch-exhaustiveness-check
@@ -13596,6 +13601,9 @@ type TsNoUnusedVars = [] | [(("all" | "local") | {
13596
13601
  caughtErrors?: ("all" | "none");
13597
13602
  caughtErrorsIgnorePattern?: string;
13598
13603
  destructuredArrayIgnorePattern?: string;
13604
+ enableAutofixRemoval?: {
13605
+ imports?: boolean;
13606
+ };
13599
13607
  ignoreClassWithStaticInitBlock?: boolean;
13600
13608
  ignoreRestSiblings?: boolean;
13601
13609
  ignoreUsingDeclarations?: boolean;
@@ -13796,6 +13804,10 @@ type TsStrictBooleanExpressions = [] | [{
13796
13804
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
13797
13805
  allowString?: boolean;
13798
13806
  }];
13807
+ // ----- ts/strict-void-return -----
13808
+ type TsStrictVoidReturn = [] | [{
13809
+ allowReturnAny?: boolean;
13810
+ }];
13799
13811
  // ----- ts/switch-exhaustiveness-check -----
13800
13812
  type TsSwitchExhaustivenessCheck = [] | [{
13801
13813
  allowDefaultCaseForExhaustiveSwitch?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
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
6
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "public": true,
26
26
  "dependencies": {
27
27
  "@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
28
- "@eslint-react/eslint-plugin": "2.5.4",
28
+ "@eslint-react/eslint-plugin": "2.5.7",
29
29
  "@eslint/compat": "2.0.1",
30
30
  "@eslint/css": "0.14.1",
31
31
  "@eslint/js": "9.39.2",
@@ -35,8 +35,8 @@
35
35
  "@stylistic/eslint-plugin": "5.7.0",
36
36
  "@tanstack/eslint-plugin-query": "5.91.2",
37
37
  "@tanstack/eslint-plugin-router": "1.141.0",
38
- "@typescript-eslint/parser": "8.52.0",
39
- "@typescript-eslint/utils": "8.52.0",
38
+ "@typescript-eslint/parser": "8.53.0",
39
+ "@typescript-eslint/utils": "8.53.0",
40
40
  "empathic": "2.0.0",
41
41
  "eslint-config-flat-gitignore": "2.1.0",
42
42
  "eslint-config-prettier": "10.1.8",
@@ -56,17 +56,17 @@
56
56
  "eslint-plugin-sonarjs": "3.0.5",
57
57
  "eslint-plugin-storybook": "10.1.11",
58
58
  "eslint-plugin-tailwindcss": "3.18.2",
59
- "eslint-plugin-turbo": "2.7.3",
59
+ "eslint-plugin-turbo": "2.7.4",
60
60
  "eslint-plugin-unicorn": "62.0.0",
61
61
  "eslint-plugin-yml": "1.19.1",
62
- "eslint-plugin-zod-x": "2.0.0",
62
+ "eslint-plugin-zod-x": "2.0.1",
63
63
  "globals": "17.0.0",
64
64
  "graphql-config": "5.1.5",
65
65
  "jsonc-eslint-parser": "2.4.2",
66
66
  "local-pkg": "1.1.2",
67
67
  "pkg-types": "2.3.0",
68
68
  "tailwind-csstree": "0.1.4",
69
- "typescript-eslint": "8.52.0",
69
+ "typescript-eslint": "8.53.0",
70
70
  "yaml-eslint-parser": "1.3.2",
71
71
  "@2digits/constants": "1.1.14",
72
72
  "@2digits/eslint-plugin": "4.0.1"
@@ -85,7 +85,7 @@
85
85
  "tinyglobby": "0.2.15",
86
86
  "tsdown": "0.19.0",
87
87
  "typescript": "5.9.3",
88
- "vitest": "4.0.16",
88
+ "vitest": "4.0.17",
89
89
  "zod": "4.3.5",
90
90
  "@2digits/tsconfig": "0.8.6"
91
91
  },