@2digits/eslint-config 2.4.6 → 2.4.7
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 +4 -3
- package/dist/index.d.ts +4 -3
- package/package.json +36 -36
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.
|
|
13
|
+
* @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.2.5/packages/eslint/src/rules/type-param-names.ts
|
|
14
14
|
*/
|
|
15
15
|
'@2digits/type-param-names'?: Linter.RuleEntry<[]>
|
|
16
16
|
/**
|
|
@@ -4050,7 +4050,7 @@ Backward pagination arguments
|
|
|
4050
4050
|
*/
|
|
4051
4051
|
'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
4052
4052
|
/**
|
|
4053
|
-
* Disallow type parameters that
|
|
4053
|
+
* Disallow type parameters that aren't used multiple times
|
|
4054
4054
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
4055
4055
|
*/
|
|
4056
4056
|
'ts/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>
|
|
@@ -4319,7 +4319,7 @@ Backward pagination arguments
|
|
|
4319
4319
|
'ts/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>
|
|
4320
4320
|
/**
|
|
4321
4321
|
* Do not allow the use of `process.env` without including the env key in any turbo.json
|
|
4322
|
-
* @see https://github.com/vercel/
|
|
4322
|
+
* @see https://github.com/vercel/turborepo/tree/main/packages/eslint-plugin-turbo/docs/rules/no-undeclared-env-vars.md
|
|
4323
4323
|
*/
|
|
4324
4324
|
'turbo/no-undeclared-env-vars'?: Linter.RuleEntry<TurboNoUndeclaredEnvVars>
|
|
4325
4325
|
/**
|
|
@@ -8575,6 +8575,7 @@ type TsNoMisusedPromises = []|[{
|
|
|
8575
8575
|
checksVoidReturn?: (boolean | {
|
|
8576
8576
|
arguments?: boolean
|
|
8577
8577
|
attributes?: boolean
|
|
8578
|
+
inheritedMethods?: boolean
|
|
8578
8579
|
properties?: boolean
|
|
8579
8580
|
returns?: boolean
|
|
8580
8581
|
variables?: boolean
|
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.
|
|
13
|
+
* @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.2.5/packages/eslint/src/rules/type-param-names.ts
|
|
14
14
|
*/
|
|
15
15
|
'@2digits/type-param-names'?: Linter.RuleEntry<[]>
|
|
16
16
|
/**
|
|
@@ -4050,7 +4050,7 @@ Backward pagination arguments
|
|
|
4050
4050
|
*/
|
|
4051
4051
|
'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
4052
4052
|
/**
|
|
4053
|
-
* Disallow type parameters that
|
|
4053
|
+
* Disallow type parameters that aren't used multiple times
|
|
4054
4054
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
4055
4055
|
*/
|
|
4056
4056
|
'ts/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>
|
|
@@ -4319,7 +4319,7 @@ Backward pagination arguments
|
|
|
4319
4319
|
'ts/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>
|
|
4320
4320
|
/**
|
|
4321
4321
|
* Do not allow the use of `process.env` without including the env key in any turbo.json
|
|
4322
|
-
* @see https://github.com/vercel/
|
|
4322
|
+
* @see https://github.com/vercel/turborepo/tree/main/packages/eslint-plugin-turbo/docs/rules/no-undeclared-env-vars.md
|
|
4323
4323
|
*/
|
|
4324
4324
|
'turbo/no-undeclared-env-vars'?: Linter.RuleEntry<TurboNoUndeclaredEnvVars>
|
|
4325
4325
|
/**
|
|
@@ -8575,6 +8575,7 @@ type TsNoMisusedPromises = []|[{
|
|
|
8575
8575
|
checksVoidReturn?: (boolean | {
|
|
8576
8576
|
arguments?: boolean
|
|
8577
8577
|
attributes?: boolean
|
|
8578
|
+
inheritedMethods?: boolean
|
|
8578
8579
|
properties?: boolean
|
|
8579
8580
|
returns?: boolean
|
|
8580
8581
|
variables?: boolean
|
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.
|
|
4
|
+
"version": "2.4.7",
|
|
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
|
-
"@eslint-react/eslint-plugin": "
|
|
32
|
-
"@eslint/compat": "
|
|
33
|
-
"@eslint/js": "
|
|
34
|
-
"@graphql-eslint/eslint-plugin": "
|
|
35
|
-
"@next/eslint-plugin-next": "
|
|
36
|
-
"@tanstack/eslint-plugin-query": "
|
|
37
|
-
"@typescript-eslint/parser": "
|
|
38
|
-
"eslint-config-flat-gitignore": "
|
|
39
|
-
"eslint-config-prettier": "
|
|
40
|
-
"eslint-flat-config-utils": "
|
|
41
|
-
"eslint-plugin-eslint-comments": "
|
|
42
|
-
"eslint-plugin-jsdoc": "
|
|
43
|
-
"eslint-plugin-n": "
|
|
44
|
-
"eslint-plugin-react": "
|
|
31
|
+
"@eslint-react/eslint-plugin": "1.10.1",
|
|
32
|
+
"@eslint/compat": "1.1.1",
|
|
33
|
+
"@eslint/js": "9.9.0",
|
|
34
|
+
"@graphql-eslint/eslint-plugin": "3.20.1",
|
|
35
|
+
"@next/eslint-plugin-next": "14.2.5",
|
|
36
|
+
"@tanstack/eslint-plugin-query": "5.51.15",
|
|
37
|
+
"@typescript-eslint/parser": "8.1.0",
|
|
38
|
+
"eslint-config-flat-gitignore": "0.1.8",
|
|
39
|
+
"eslint-config-prettier": "9.1.0",
|
|
40
|
+
"eslint-flat-config-utils": "0.3.0",
|
|
41
|
+
"eslint-plugin-eslint-comments": "3.2.0",
|
|
42
|
+
"eslint-plugin-jsdoc": "50.2.2",
|
|
43
|
+
"eslint-plugin-n": "17.10.2",
|
|
44
|
+
"eslint-plugin-react": "7.35.0",
|
|
45
45
|
"eslint-plugin-react-compiler": "0.0.0-experimental-9ed098e-20240725",
|
|
46
|
-
"eslint-plugin-react-hooks": "
|
|
47
|
-
"eslint-plugin-sonarjs": "
|
|
48
|
-
"eslint-plugin-storybook": "
|
|
49
|
-
"eslint-plugin-tailwindcss": "
|
|
50
|
-
"eslint-plugin-turbo": "
|
|
51
|
-
"eslint-plugin-unicorn": "
|
|
52
|
-
"find-up": "
|
|
53
|
-
"globals": "
|
|
54
|
-
"local-pkg": "
|
|
55
|
-
"typescript-eslint": "
|
|
56
|
-
"@2digits/constants": "0.2.
|
|
57
|
-
"@2digits/eslint-plugin": "2.2.
|
|
46
|
+
"eslint-plugin-react-hooks": "4.6.2",
|
|
47
|
+
"eslint-plugin-sonarjs": "1.0.4",
|
|
48
|
+
"eslint-plugin-storybook": "0.8.0",
|
|
49
|
+
"eslint-plugin-tailwindcss": "3.17.4",
|
|
50
|
+
"eslint-plugin-turbo": "2.0.14",
|
|
51
|
+
"eslint-plugin-unicorn": "55.0.0",
|
|
52
|
+
"find-up": "7.0.0",
|
|
53
|
+
"globals": "15.9.0",
|
|
54
|
+
"local-pkg": "0.5.0",
|
|
55
|
+
"typescript-eslint": "8.1.0",
|
|
56
|
+
"@2digits/constants": "0.2.5",
|
|
57
|
+
"@2digits/eslint-plugin": "2.2.5"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@types/eslint": "
|
|
61
|
-
"@types/eslint__js": "
|
|
62
|
-
"@types/node": "
|
|
63
|
-
"@typescript-eslint/utils": "8.0
|
|
64
|
-
"eslint": "
|
|
65
|
-
"eslint-typegen": "
|
|
66
|
-
"tsup": "
|
|
67
|
-
"typescript": "
|
|
68
|
-
"@2digits/tsconfig": "0.5.
|
|
60
|
+
"@types/eslint": "9.6.0",
|
|
61
|
+
"@types/eslint__js": "8.42.3",
|
|
62
|
+
"@types/node": "20.14.15",
|
|
63
|
+
"@typescript-eslint/utils": "8.1.0",
|
|
64
|
+
"eslint": "9.9.0",
|
|
65
|
+
"eslint-typegen": "0.3.1",
|
|
66
|
+
"tsup": "8.2.4",
|
|
67
|
+
"typescript": "5.5.4",
|
|
68
|
+
"@2digits/tsconfig": "0.5.1"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsup",
|