@biscuittin/eslint-config 0.4.0 → 0.4.1
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.ts +6 -1
- package/package.json +9 -13
- package/typegen.d.ts +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -135,6 +135,11 @@ interface RuleOptions {
|
|
|
135
135
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
136
136
|
*/
|
|
137
137
|
'@eslint-react/dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>;
|
|
138
|
+
/**
|
|
139
|
+
* Enforces React Dom is imported via a namespace import.
|
|
140
|
+
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
141
|
+
*/
|
|
142
|
+
'@eslint-react/dom/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
138
143
|
/**
|
|
139
144
|
* Disallow direct calls to the `set` function of `useState` in `useEffect`.
|
|
140
145
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
@@ -431,7 +436,7 @@ interface RuleOptions {
|
|
|
431
436
|
*/
|
|
432
437
|
'@eslint-react/no-unused-class-component-members'?: Linter.RuleEntry<[]>;
|
|
433
438
|
/**
|
|
434
|
-
* Warns
|
|
439
|
+
* Warns component props that are defined but never used.
|
|
435
440
|
* @see https://eslint-react.xyz/docs/rules/no-unused-props
|
|
436
441
|
*/
|
|
437
442
|
'@eslint-react/no-unused-props'?: Linter.RuleEntry<[]>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biscuittin/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"description": "A collection of ESLint configurations for Biscuit Tin projects.",
|
|
6
6
|
"author": "Biscuit Tin <opensource@biscuitt.in>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"dprint": ">=0.47.0",
|
|
36
36
|
"eslint": ">=9.15.0",
|
|
37
37
|
"tailwindcss": ">=3.4.0 <4",
|
|
38
|
-
"ts-api-utils": "^2.0.1",
|
|
39
38
|
"typescript": "^5.7.3"
|
|
40
39
|
},
|
|
41
40
|
"peerDependenciesMeta": {
|
|
@@ -51,9 +50,6 @@
|
|
|
51
50
|
"tailwindcss": {
|
|
52
51
|
"optional": true
|
|
53
52
|
},
|
|
54
|
-
"ts-api-utils": {
|
|
55
|
-
"optional": true
|
|
56
|
-
},
|
|
57
53
|
"typescript": {
|
|
58
54
|
"optional": true
|
|
59
55
|
}
|
|
@@ -78,13 +74,13 @@
|
|
|
78
74
|
"eslint-plugin-n": "^17.23.1",
|
|
79
75
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
80
76
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
81
|
-
"eslint-plugin-react-dom": "^2.0.
|
|
77
|
+
"eslint-plugin-react-dom": "^2.0.3",
|
|
82
78
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
83
|
-
"eslint-plugin-react-hooks-extra": "^2.0.
|
|
84
|
-
"eslint-plugin-react-naming-convention": "^2.0.
|
|
79
|
+
"eslint-plugin-react-hooks-extra": "^2.0.3",
|
|
80
|
+
"eslint-plugin-react-naming-convention": "^2.0.3",
|
|
85
81
|
"eslint-plugin-react-refresh": "^0.4.22",
|
|
86
|
-
"eslint-plugin-react-web-api": "^2.0.
|
|
87
|
-
"eslint-plugin-react-x": "^2.0.
|
|
82
|
+
"eslint-plugin-react-web-api": "^2.0.3",
|
|
83
|
+
"eslint-plugin-react-x": "^2.0.3",
|
|
88
84
|
"eslint-plugin-regexp": "^2.10.0",
|
|
89
85
|
"eslint-plugin-unicorn": "^61.0.2",
|
|
90
86
|
"eslint-plugin-unused-imports": "^4.2.0",
|
|
@@ -92,15 +88,15 @@
|
|
|
92
88
|
"globals": "^16.4.0",
|
|
93
89
|
"jsonc-eslint-parser": "^2.4.1",
|
|
94
90
|
"local-pkg": "^1.1.2",
|
|
95
|
-
"
|
|
91
|
+
"ts-api-utils": "^2.1.0",
|
|
92
|
+
"typescript-eslint": "^8.45.0"
|
|
96
93
|
},
|
|
97
94
|
"devDependencies": {
|
|
98
95
|
"@eslint/config-inspector": "^1.3.0",
|
|
99
|
-
"@typescript-eslint/parser": "^8.
|
|
96
|
+
"@typescript-eslint/parser": "^8.45.0",
|
|
100
97
|
"dprint": "^0.50.2",
|
|
101
98
|
"eslint": "^9.36.0",
|
|
102
99
|
"tailwindcss": "^4.1.13",
|
|
103
|
-
"ts-api-utils": "^2.1.0",
|
|
104
100
|
"typescript": "^5.9.2"
|
|
105
101
|
},
|
|
106
102
|
"scripts": {
|
package/typegen.d.ts
CHANGED
|
@@ -133,6 +133,11 @@ export interface RuleOptions {
|
|
|
133
133
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
134
134
|
*/
|
|
135
135
|
'@eslint-react/dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>
|
|
136
|
+
/**
|
|
137
|
+
* Enforces React Dom is imported via a namespace import.
|
|
138
|
+
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
139
|
+
*/
|
|
140
|
+
'@eslint-react/dom/prefer-namespace-import'?: Linter.RuleEntry<[]>
|
|
136
141
|
/**
|
|
137
142
|
* Disallow direct calls to the `set` function of `useState` in `useEffect`.
|
|
138
143
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
@@ -429,7 +434,7 @@ export interface RuleOptions {
|
|
|
429
434
|
*/
|
|
430
435
|
'@eslint-react/no-unused-class-component-members'?: Linter.RuleEntry<[]>
|
|
431
436
|
/**
|
|
432
|
-
* Warns
|
|
437
|
+
* Warns component props that are defined but never used.
|
|
433
438
|
* @see https://eslint-react.xyz/docs/rules/no-unused-props
|
|
434
439
|
*/
|
|
435
440
|
'@eslint-react/no-unused-props'?: Linter.RuleEntry<[]>
|