@2digits/eslint-config 2.10.8 → 2.10.9
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 +9 -9
- package/dist/index.d.ts +9 -9
- package/package.json +8 -8
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.
|
|
13
|
+
* @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.18/packages/eslint/src/rules/type-param-names.ts
|
|
14
14
|
*/
|
|
15
15
|
'@2digits/type-param-names'?: Linter.RuleEntry<[]>
|
|
16
16
|
/**
|
|
@@ -251,7 +251,7 @@ interface RuleOptions {
|
|
|
251
251
|
*/
|
|
252
252
|
'default-case'?: Linter.RuleEntry<DefaultCase>
|
|
253
253
|
/**
|
|
254
|
-
* Enforce default clauses in switch statements to be last
|
|
254
|
+
* Enforce `default` clauses in switch statements to be last
|
|
255
255
|
* @see https://eslint.org/docs/latest/rules/default-case-last
|
|
256
256
|
*/
|
|
257
257
|
'default-case-last'?: Linter.RuleEntry<[]>
|
|
@@ -283,7 +283,7 @@ interface RuleOptions {
|
|
|
283
283
|
*/
|
|
284
284
|
'eqeqeq'?: Linter.RuleEntry<Eqeqeq>
|
|
285
285
|
/**
|
|
286
|
-
* Enforce
|
|
286
|
+
* Enforce `for` loop update clause moving the counter in the right direction
|
|
287
287
|
* @see https://eslint.org/docs/latest/rules/for-direction
|
|
288
288
|
*/
|
|
289
289
|
'for-direction'?: Linter.RuleEntry<[]>
|
|
@@ -1772,7 +1772,7 @@ Backward pagination arguments
|
|
|
1772
1772
|
*/
|
|
1773
1773
|
'no-octal-escape'?: Linter.RuleEntry<[]>
|
|
1774
1774
|
/**
|
|
1775
|
-
* Disallow reassigning
|
|
1775
|
+
* Disallow reassigning function parameters
|
|
1776
1776
|
* @see https://eslint.org/docs/latest/rules/no-param-reassign
|
|
1777
1777
|
*/
|
|
1778
1778
|
'no-param-reassign'?: Linter.RuleEntry<NoParamReassign>
|
|
@@ -1867,7 +1867,7 @@ Backward pagination arguments
|
|
|
1867
1867
|
*/
|
|
1868
1868
|
'no-return-await'?: Linter.RuleEntry<[]>
|
|
1869
1869
|
/**
|
|
1870
|
-
* Disallow `javascript:`
|
|
1870
|
+
* Disallow `javascript:` URLs
|
|
1871
1871
|
* @see https://eslint.org/docs/latest/rules/no-script-url
|
|
1872
1872
|
*/
|
|
1873
1873
|
'no-script-url'?: Linter.RuleEntry<[]>
|
|
@@ -2412,7 +2412,7 @@ Backward pagination arguments
|
|
|
2412
2412
|
*/
|
|
2413
2413
|
'prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
2414
2414
|
/**
|
|
2415
|
-
* Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead
|
|
2415
|
+
* Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead
|
|
2416
2416
|
* @see https://eslint.org/docs/latest/rules/prefer-object-spread
|
|
2417
2417
|
*/
|
|
2418
2418
|
'prefer-object-spread'?: Linter.RuleEntry<[]>
|
|
@@ -3811,7 +3811,7 @@ Backward pagination arguments
|
|
|
3811
3811
|
*/
|
|
3812
3812
|
'require-await'?: Linter.RuleEntry<[]>
|
|
3813
3813
|
/**
|
|
3814
|
-
* Enforce the use of `u` or `v` flag on
|
|
3814
|
+
* Enforce the use of `u` or `v` flag on regular expressions
|
|
3815
3815
|
* @see https://eslint.org/docs/latest/rules/require-unicode-regexp
|
|
3816
3816
|
*/
|
|
3817
3817
|
'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>
|
|
@@ -4683,7 +4683,7 @@ Backward pagination arguments
|
|
|
4683
4683
|
*/
|
|
4684
4684
|
'ts/no-wrapper-object-types'?: Linter.RuleEntry<[]>
|
|
4685
4685
|
/**
|
|
4686
|
-
* Enforce non-null assertions over explicit type
|
|
4686
|
+
* Enforce non-null assertions over explicit type assertions
|
|
4687
4687
|
* @see https://typescript-eslint.io/rules/non-nullable-type-assertion-style
|
|
4688
4688
|
*/
|
|
4689
4689
|
'ts/non-nullable-type-assertion-style'?: Linter.RuleEntry<[]>
|
|
@@ -4768,7 +4768,7 @@ Backward pagination arguments
|
|
|
4768
4768
|
*/
|
|
4769
4769
|
'ts/prefer-readonly-parameter-types'?: Linter.RuleEntry<TsPreferReadonlyParameterTypes>
|
|
4770
4770
|
/**
|
|
4771
|
-
* Enforce using type parameter when calling `Array#reduce` instead of
|
|
4771
|
+
* Enforce using type parameter when calling `Array#reduce` instead of using a type assertion
|
|
4772
4772
|
* @see https://typescript-eslint.io/rules/prefer-reduce-type-parameter
|
|
4773
4773
|
*/
|
|
4774
4774
|
'ts/prefer-reduce-type-parameter'?: 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.
|
|
13
|
+
* @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.18/packages/eslint/src/rules/type-param-names.ts
|
|
14
14
|
*/
|
|
15
15
|
'@2digits/type-param-names'?: Linter.RuleEntry<[]>
|
|
16
16
|
/**
|
|
@@ -251,7 +251,7 @@ interface RuleOptions {
|
|
|
251
251
|
*/
|
|
252
252
|
'default-case'?: Linter.RuleEntry<DefaultCase>
|
|
253
253
|
/**
|
|
254
|
-
* Enforce default clauses in switch statements to be last
|
|
254
|
+
* Enforce `default` clauses in switch statements to be last
|
|
255
255
|
* @see https://eslint.org/docs/latest/rules/default-case-last
|
|
256
256
|
*/
|
|
257
257
|
'default-case-last'?: Linter.RuleEntry<[]>
|
|
@@ -283,7 +283,7 @@ interface RuleOptions {
|
|
|
283
283
|
*/
|
|
284
284
|
'eqeqeq'?: Linter.RuleEntry<Eqeqeq>
|
|
285
285
|
/**
|
|
286
|
-
* Enforce
|
|
286
|
+
* Enforce `for` loop update clause moving the counter in the right direction
|
|
287
287
|
* @see https://eslint.org/docs/latest/rules/for-direction
|
|
288
288
|
*/
|
|
289
289
|
'for-direction'?: Linter.RuleEntry<[]>
|
|
@@ -1772,7 +1772,7 @@ Backward pagination arguments
|
|
|
1772
1772
|
*/
|
|
1773
1773
|
'no-octal-escape'?: Linter.RuleEntry<[]>
|
|
1774
1774
|
/**
|
|
1775
|
-
* Disallow reassigning
|
|
1775
|
+
* Disallow reassigning function parameters
|
|
1776
1776
|
* @see https://eslint.org/docs/latest/rules/no-param-reassign
|
|
1777
1777
|
*/
|
|
1778
1778
|
'no-param-reassign'?: Linter.RuleEntry<NoParamReassign>
|
|
@@ -1867,7 +1867,7 @@ Backward pagination arguments
|
|
|
1867
1867
|
*/
|
|
1868
1868
|
'no-return-await'?: Linter.RuleEntry<[]>
|
|
1869
1869
|
/**
|
|
1870
|
-
* Disallow `javascript:`
|
|
1870
|
+
* Disallow `javascript:` URLs
|
|
1871
1871
|
* @see https://eslint.org/docs/latest/rules/no-script-url
|
|
1872
1872
|
*/
|
|
1873
1873
|
'no-script-url'?: Linter.RuleEntry<[]>
|
|
@@ -2412,7 +2412,7 @@ Backward pagination arguments
|
|
|
2412
2412
|
*/
|
|
2413
2413
|
'prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
2414
2414
|
/**
|
|
2415
|
-
* Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead
|
|
2415
|
+
* Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead
|
|
2416
2416
|
* @see https://eslint.org/docs/latest/rules/prefer-object-spread
|
|
2417
2417
|
*/
|
|
2418
2418
|
'prefer-object-spread'?: Linter.RuleEntry<[]>
|
|
@@ -3811,7 +3811,7 @@ Backward pagination arguments
|
|
|
3811
3811
|
*/
|
|
3812
3812
|
'require-await'?: Linter.RuleEntry<[]>
|
|
3813
3813
|
/**
|
|
3814
|
-
* Enforce the use of `u` or `v` flag on
|
|
3814
|
+
* Enforce the use of `u` or `v` flag on regular expressions
|
|
3815
3815
|
* @see https://eslint.org/docs/latest/rules/require-unicode-regexp
|
|
3816
3816
|
*/
|
|
3817
3817
|
'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>
|
|
@@ -4683,7 +4683,7 @@ Backward pagination arguments
|
|
|
4683
4683
|
*/
|
|
4684
4684
|
'ts/no-wrapper-object-types'?: Linter.RuleEntry<[]>
|
|
4685
4685
|
/**
|
|
4686
|
-
* Enforce non-null assertions over explicit type
|
|
4686
|
+
* Enforce non-null assertions over explicit type assertions
|
|
4687
4687
|
* @see https://typescript-eslint.io/rules/non-nullable-type-assertion-style
|
|
4688
4688
|
*/
|
|
4689
4689
|
'ts/non-nullable-type-assertion-style'?: Linter.RuleEntry<[]>
|
|
@@ -4768,7 +4768,7 @@ Backward pagination arguments
|
|
|
4768
4768
|
*/
|
|
4769
4769
|
'ts/prefer-readonly-parameter-types'?: Linter.RuleEntry<TsPreferReadonlyParameterTypes>
|
|
4770
4770
|
/**
|
|
4771
|
-
* Enforce using type parameter when calling `Array#reduce` instead of
|
|
4771
|
+
* Enforce using type parameter when calling `Array#reduce` instead of using a type assertion
|
|
4772
4772
|
* @see https://typescript-eslint.io/rules/prefer-reduce-type-parameter
|
|
4773
4773
|
*/
|
|
4774
4774
|
'ts/prefer-reduce-type-parameter'?: Linter.RuleEntry<[]>
|
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.10.
|
|
4
|
+
"version": "2.10.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"public": true,
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
|
|
32
|
-
"@eslint-react/eslint-plugin": "1.
|
|
32
|
+
"@eslint-react/eslint-plugin": "1.20.0",
|
|
33
33
|
"@eslint/compat": "1.2.4",
|
|
34
|
-
"@eslint/js": "9.
|
|
34
|
+
"@eslint/js": "9.17.0",
|
|
35
35
|
"@graphql-eslint/eslint-plugin": "4.3.0",
|
|
36
36
|
"@next/eslint-plugin-next": "15.1.0",
|
|
37
37
|
"@tanstack/eslint-plugin-query": "5.62.1",
|
|
38
|
-
"@typescript-eslint/parser": "8.18.
|
|
38
|
+
"@typescript-eslint/parser": "8.18.1",
|
|
39
39
|
"eslint-config-flat-gitignore": "0.3.0",
|
|
40
40
|
"eslint-config-prettier": "9.1.0",
|
|
41
41
|
"eslint-flat-config-utils": "0.4.0",
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
"globals": "15.13.0",
|
|
56
56
|
"graphql-config": "5.1.3",
|
|
57
57
|
"local-pkg": "0.5.1",
|
|
58
|
-
"typescript-eslint": "8.18.
|
|
58
|
+
"typescript-eslint": "8.18.1",
|
|
59
59
|
"@2digits/constants": "0.3.4",
|
|
60
|
-
"@2digits/eslint-plugin": "2.3.
|
|
60
|
+
"@2digits/eslint-plugin": "2.3.18"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/eslint__js": "8.42.3",
|
|
64
64
|
"@types/node": "22.10.2",
|
|
65
|
-
"@typescript-eslint/utils": "8.18.
|
|
66
|
-
"eslint": "9.
|
|
65
|
+
"@typescript-eslint/utils": "8.18.1",
|
|
66
|
+
"eslint": "9.17.0",
|
|
67
67
|
"eslint-typegen": "0.3.2",
|
|
68
68
|
"tsup": "8.3.5",
|
|
69
69
|
"typescript": "5.7.2",
|