@2digits/eslint-config 2.9.9 → 2.9.10
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 +20 -0
- package/dist/index.d.ts +20 -0
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -2518,6 +2518,11 @@ Backward pagination arguments
|
|
|
2518
2518
|
* @see https://eslint-react.xyz/docs/rules/dom-no-script-url
|
|
2519
2519
|
*/
|
|
2520
2520
|
'react-dom/no-script-url'?: Linter.RuleEntry<[]>
|
|
2521
|
+
/**
|
|
2522
|
+
* disallow usage of unknown DOM property
|
|
2523
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
|
|
2524
|
+
*/
|
|
2525
|
+
'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>
|
|
2521
2526
|
/**
|
|
2522
2527
|
* disallow unsafe iframe 'sandbox' attribute combinations
|
|
2523
2528
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
|
|
@@ -2543,6 +2548,16 @@ Backward pagination arguments
|
|
|
2543
2548
|
* @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
|
|
2544
2549
|
*/
|
|
2545
2550
|
'react-extra/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
|
|
2551
|
+
/**
|
|
2552
|
+
* disallow duplicate props
|
|
2553
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
2554
|
+
*/
|
|
2555
|
+
'react-extra/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
|
|
2556
|
+
/**
|
|
2557
|
+
* a helper rule to mark variables as used
|
|
2558
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
|
|
2559
|
+
*/
|
|
2560
|
+
'react-extra/jsx-uses-vars'?: Linter.RuleEntry<[]>
|
|
2546
2561
|
/**
|
|
2547
2562
|
* disallow accessing 'this.state' within 'setState'
|
|
2548
2563
|
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
@@ -7870,6 +7885,11 @@ type Radix = []|[("always" | "as-needed")]
|
|
|
7870
7885
|
type ReactCompilerReactCompiler = []|[{
|
|
7871
7886
|
[k: string]: unknown | undefined
|
|
7872
7887
|
}]
|
|
7888
|
+
// ----- react-dom/no-unknown-property -----
|
|
7889
|
+
type ReactDomNoUnknownProperty = []|[{
|
|
7890
|
+
ignore?: string[]
|
|
7891
|
+
requireDataLowercase?: boolean
|
|
7892
|
+
}]
|
|
7873
7893
|
// ----- react-extra/no-useless-fragment -----
|
|
7874
7894
|
type ReactExtraNoUselessFragment = []|[{
|
|
7875
7895
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2518,6 +2518,11 @@ Backward pagination arguments
|
|
|
2518
2518
|
* @see https://eslint-react.xyz/docs/rules/dom-no-script-url
|
|
2519
2519
|
*/
|
|
2520
2520
|
'react-dom/no-script-url'?: Linter.RuleEntry<[]>
|
|
2521
|
+
/**
|
|
2522
|
+
* disallow usage of unknown DOM property
|
|
2523
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
|
|
2524
|
+
*/
|
|
2525
|
+
'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>
|
|
2521
2526
|
/**
|
|
2522
2527
|
* disallow unsafe iframe 'sandbox' attribute combinations
|
|
2523
2528
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
|
|
@@ -2543,6 +2548,16 @@ Backward pagination arguments
|
|
|
2543
2548
|
* @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
|
|
2544
2549
|
*/
|
|
2545
2550
|
'react-extra/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
|
|
2551
|
+
/**
|
|
2552
|
+
* disallow duplicate props
|
|
2553
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
2554
|
+
*/
|
|
2555
|
+
'react-extra/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
|
|
2556
|
+
/**
|
|
2557
|
+
* a helper rule to mark variables as used
|
|
2558
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
|
|
2559
|
+
*/
|
|
2560
|
+
'react-extra/jsx-uses-vars'?: Linter.RuleEntry<[]>
|
|
2546
2561
|
/**
|
|
2547
2562
|
* disallow accessing 'this.state' within 'setState'
|
|
2548
2563
|
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
@@ -7870,6 +7885,11 @@ type Radix = []|[("always" | "as-needed")]
|
|
|
7870
7885
|
type ReactCompilerReactCompiler = []|[{
|
|
7871
7886
|
[k: string]: unknown | undefined
|
|
7872
7887
|
}]
|
|
7888
|
+
// ----- react-dom/no-unknown-property -----
|
|
7889
|
+
type ReactDomNoUnknownProperty = []|[{
|
|
7890
|
+
ignore?: string[]
|
|
7891
|
+
requireDataLowercase?: boolean
|
|
7892
|
+
}]
|
|
7873
7893
|
// ----- react-extra/no-useless-fragment -----
|
|
7874
7894
|
type ReactExtraNoUselessFragment = []|[{
|
|
7875
7895
|
|
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.9.
|
|
4
|
+
"version": "2.9.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"public": true,
|
|
@@ -29,12 +29,12 @@
|
|
|
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.16.1",
|
|
33
33
|
"@eslint/compat": "1.2.2",
|
|
34
34
|
"@eslint/js": "9.14.0",
|
|
35
35
|
"@graphql-eslint/eslint-plugin": "3.20.1",
|
|
36
36
|
"@next/eslint-plugin-next": "15.0.3",
|
|
37
|
-
"@tanstack/eslint-plugin-query": "5.
|
|
37
|
+
"@tanstack/eslint-plugin-query": "5.60.1",
|
|
38
38
|
"@typescript-eslint/parser": "8.13.0",
|
|
39
39
|
"eslint-config-flat-gitignore": "0.3.0",
|
|
40
40
|
"eslint-config-prettier": "9.1.0",
|