@2digits/eslint-config 5.2.1 → 5.2.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 +42 -36
  2. package/package.json +9 -9
package/dist/index.d.mts CHANGED
@@ -5,41 +5,41 @@ import { Linter } from "eslint";
5
5
 
6
6
  //#region src/constants.d.ts
7
7
  declare const PluginNameMap: {
8
- readonly '@next/next': "next";
9
- readonly '@eslint-react/naming-convention': "react-naming-convention";
10
- readonly '@eslint-react/dom': "react-dom";
11
- readonly '@eslint-react/web-api': "react-web-api";
12
- readonly '@eslint-react/rsc': "react-rsc";
13
- readonly '@eslint-react': "react-extra";
14
- readonly 'react-hooks': "react-hooks";
15
- readonly 'react-compiler': "react-compiler";
16
- readonly '@stylistic/eslint-plugin': "stylistic";
17
- readonly '@typescript-eslint': "ts";
18
- readonly node: "node";
19
- readonly '@eslint-community/eslint-comments': "comments";
20
- readonly storybook: "storybook";
21
- readonly turbo: "turbo";
22
- readonly jsdoc: "jsdoc";
23
- readonly unicorn: "unicorn";
24
- readonly tailwindcss: "tailwindcss";
25
- readonly '@tanstack/query': "tanstack-query";
26
- readonly '@tanstack/router': "tanstack-router";
27
- readonly '@2digits': "@2digits";
28
- readonly '@graphql-eslint': "gql";
29
- readonly sonarjs: "sonar";
30
- readonly drizzle: "drizzle";
31
- readonly 'de-morgan': "boolean";
32
- readonly antfu: "antfu";
33
- readonly css: "css";
34
- readonly depend: "depend";
35
- readonly 'github-action': "github-action";
36
- readonly jsonc: "jsonc";
37
- readonly markdown: "markdown";
38
- readonly pnpm: "pnpm";
39
- readonly regexp: "regexp";
40
- readonly yml: "yml";
41
- readonly zod: "zod";
42
- readonly toml: "toml";
8
+ readonly '@next/next': 'next';
9
+ readonly '@eslint-react/naming-convention': 'react-naming-convention';
10
+ readonly '@eslint-react/dom': 'react-dom';
11
+ readonly '@eslint-react/web-api': 'react-web-api';
12
+ readonly '@eslint-react/rsc': 'react-rsc';
13
+ readonly '@eslint-react': 'react-extra';
14
+ readonly 'react-hooks': 'react-hooks';
15
+ readonly 'react-compiler': 'react-compiler';
16
+ readonly '@stylistic/eslint-plugin': 'stylistic';
17
+ readonly '@typescript-eslint': 'ts';
18
+ readonly node: 'node';
19
+ readonly '@eslint-community/eslint-comments': 'comments';
20
+ readonly storybook: 'storybook';
21
+ readonly turbo: 'turbo';
22
+ readonly jsdoc: 'jsdoc';
23
+ readonly unicorn: 'unicorn';
24
+ readonly tailwindcss: 'tailwindcss';
25
+ readonly '@tanstack/query': 'tanstack-query';
26
+ readonly '@tanstack/router': 'tanstack-router';
27
+ readonly '@2digits': '@2digits';
28
+ readonly '@graphql-eslint': 'gql';
29
+ readonly sonarjs: 'sonar';
30
+ readonly drizzle: 'drizzle';
31
+ readonly 'de-morgan': 'boolean';
32
+ readonly antfu: 'antfu';
33
+ readonly css: 'css';
34
+ readonly depend: 'depend';
35
+ readonly 'github-action': 'github-action';
36
+ readonly jsonc: 'jsonc';
37
+ readonly markdown: 'markdown';
38
+ readonly pnpm: 'pnpm';
39
+ readonly regexp: 'regexp';
40
+ readonly yml: 'yml';
41
+ readonly zod: 'zod';
42
+ readonly toml: 'toml';
43
43
  };
44
44
  //#endregion
45
45
  //#region src/types.gen.d.ts
@@ -6106,7 +6106,7 @@ interface RuleOptions {
6106
6106
  * Exhaustive deps rule for useQuery
6107
6107
  * @see https://tanstack.com/query/latest/docs/eslint/exhaustive-deps
6108
6108
  */
6109
- 'tanstack-query/exhaustive-deps'?: Linter.RuleEntry<[]>;
6109
+ 'tanstack-query/exhaustive-deps'?: Linter.RuleEntry<TanstackQueryExhaustiveDeps>;
6110
6110
  /**
6111
6111
  * Ensure correct order of inference sensitive properties for infinite queries
6112
6112
  * @see https://tanstack.com/query/latest/docs/eslint/infinite-query-property-order
@@ -12365,6 +12365,12 @@ type TailwindcssNoUnnecessaryArbitraryValue = [] | [{
12365
12365
  });
12366
12366
  tags?: string[];
12367
12367
  [k: string]: unknown | undefined;
12368
+ }]; // ----- tanstack-query/exhaustive-deps -----
12369
+ type TanstackQueryExhaustiveDeps = [] | [{
12370
+ allowlist?: {
12371
+ variables?: string[];
12372
+ types?: string[];
12373
+ };
12368
12374
  }]; // ----- template-curly-spacing -----
12369
12375
  type TemplateCurlySpacing = [] | [("always" | "never")]; // ----- template-tag-spacing -----
12370
12376
  type TemplateTagSpacing = [] | [("always" | "never")]; // ----- toml/array-bracket-newline -----
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
- "version": "5.2.1",
3
+ "version": "5.2.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": {
@@ -31,9 +31,9 @@
31
31
  "@eslint/js": "10.0.1",
32
32
  "@eslint/markdown": "7.5.1",
33
33
  "@graphql-eslint/eslint-plugin": "4.4.0",
34
- "@next/eslint-plugin-next": "16.2.0",
34
+ "@next/eslint-plugin-next": "16.2.1",
35
35
  "@stylistic/eslint-plugin": "5.10.0",
36
- "@tanstack/eslint-plugin-query": "5.91.5",
36
+ "@tanstack/eslint-plugin-query": "5.95.0",
37
37
  "@tanstack/eslint-plugin-router": "1.161.6",
38
38
  "@typescript-eslint/parser": "8.57.1",
39
39
  "@typescript-eslint/utils": "8.57.1",
@@ -54,10 +54,10 @@
54
54
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
55
55
  "eslint-plugin-regexp": "3.1.0",
56
56
  "eslint-plugin-sonarjs": "4.0.2",
57
- "eslint-plugin-storybook": "10.3.0",
57
+ "eslint-plugin-storybook": "10.3.1",
58
58
  "eslint-plugin-tailwindcss": "3.18.2",
59
59
  "eslint-plugin-toml": "1.3.1",
60
- "eslint-plugin-turbo": "2.8.19",
60
+ "eslint-plugin-turbo": "2.8.20",
61
61
  "eslint-plugin-unicorn": "63.0.0",
62
62
  "eslint-plugin-yml": "3.3.1",
63
63
  "eslint-plugin-zod": "3.5.0",
@@ -66,7 +66,7 @@
66
66
  "jsonc-eslint-parser": "3.1.0",
67
67
  "local-pkg": "1.1.2",
68
68
  "pkg-types": "2.3.0",
69
- "tailwind-csstree": "0.1.5",
69
+ "tailwind-csstree": "0.2.0",
70
70
  "typescript-eslint": "8.57.1",
71
71
  "yaml-eslint-parser": "2.0.0",
72
72
  "@2digits/constants": "1.1.16",
@@ -76,9 +76,9 @@
76
76
  "@arethetypeswrong/core": "0.18.2",
77
77
  "@eslint/config-inspector": "1.5.0",
78
78
  "@types/react": "19.2.14",
79
- "@typescript/native-preview": "7.0.0-dev.20260319.1",
79
+ "@typescript/native-preview": "7.0.0-dev.20260322.1",
80
80
  "dedent": "1.7.2",
81
- "eslint": "10.0.3",
81
+ "eslint": "10.1.0",
82
82
  "eslint-typegen": "2.3.1",
83
83
  "publint": "0.3.18",
84
84
  "react": "19.2.4",
@@ -91,7 +91,7 @@
91
91
  "@2digits/tsconfig": "0.8.6"
92
92
  },
93
93
  "peerDependencies": {
94
- "eslint": "10.0.3"
94
+ "eslint": "10.1.0"
95
95
  },
96
96
  "engines": {
97
97
  "node": "24.14.0"