@2digits/eslint-config 2.4.6 → 2.4.8
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 +7 -6
- package/dist/index.d.ts +7 -6
- package/package.json +37 -37
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
|
/**
|
|
@@ -2472,12 +2472,12 @@ Backward pagination arguments
|
|
|
2472
2472
|
*/
|
|
2473
2473
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2474
2474
|
/**
|
|
2475
|
-
*
|
|
2475
|
+
* disallow using shorthand boolean attributes
|
|
2476
2476
|
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
|
|
2477
2477
|
*/
|
|
2478
2478
|
'react-extra/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2479
2479
|
/**
|
|
2480
|
-
*
|
|
2480
|
+
* disallow using shorthand fragment syntax
|
|
2481
2481
|
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
|
|
2482
2482
|
*/
|
|
2483
2483
|
'react-extra/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
@@ -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<[]>
|
|
@@ -4313,13 +4313,13 @@ Backward pagination arguments
|
|
|
4313
4313
|
*/
|
|
4314
4314
|
'ts/unified-signatures'?: Linter.RuleEntry<TsUnifiedSignatures>
|
|
4315
4315
|
/**
|
|
4316
|
-
* Enforce typing arguments in
|
|
4316
|
+
* Enforce typing arguments in Promise rejection callbacks as `unknown`
|
|
4317
4317
|
* @see https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable
|
|
4318
4318
|
*/
|
|
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
|
/**
|
|
@@ -2472,12 +2472,12 @@ Backward pagination arguments
|
|
|
2472
2472
|
*/
|
|
2473
2473
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2474
2474
|
/**
|
|
2475
|
-
*
|
|
2475
|
+
* disallow using shorthand boolean attributes
|
|
2476
2476
|
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
|
|
2477
2477
|
*/
|
|
2478
2478
|
'react-extra/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2479
2479
|
/**
|
|
2480
|
-
*
|
|
2480
|
+
* disallow using shorthand fragment syntax
|
|
2481
2481
|
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
|
|
2482
2482
|
*/
|
|
2483
2483
|
'react-extra/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
@@ -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<[]>
|
|
@@ -4313,13 +4313,13 @@ Backward pagination arguments
|
|
|
4313
4313
|
*/
|
|
4314
4314
|
'ts/unified-signatures'?: Linter.RuleEntry<TsUnifiedSignatures>
|
|
4315
4315
|
/**
|
|
4316
|
-
* Enforce typing arguments in
|
|
4316
|
+
* Enforce typing arguments in Promise rejection callbacks as `unknown`
|
|
4317
4317
|
* @see https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable
|
|
4318
4318
|
*/
|
|
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.8",
|
|
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": "
|
|
45
|
-
"eslint-plugin-react-compiler": "0.0.0-experimental-
|
|
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.
|
|
31
|
+
"@eslint-react/eslint-plugin": "1.11.0",
|
|
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.2.0",
|
|
38
|
+
"eslint-config-flat-gitignore": "0.1.8",
|
|
39
|
+
"eslint-config-prettier": "9.1.0",
|
|
40
|
+
"eslint-flat-config-utils": "0.3.1",
|
|
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
|
+
"eslint-plugin-react-compiler": "0.0.0-experimental-eeb1b2a-20240818",
|
|
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.2.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.16.1",
|
|
63
|
+
"@typescript-eslint/utils": "8.2.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",
|