@isentinel/eslint-config 0.7.1 → 0.7.2
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/cli.cjs +5 -5
- package/dist/cli.js +5 -5
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +30 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +3 -1
- package/package.json +6 -6
package/dist/cli.cjs
CHANGED
|
@@ -37,7 +37,7 @@ var import_helpers = require("yargs/helpers");
|
|
|
37
37
|
// package.json
|
|
38
38
|
var package_default = {
|
|
39
39
|
name: "@isentinel/eslint-config",
|
|
40
|
-
version: "0.7.
|
|
40
|
+
version: "0.7.2",
|
|
41
41
|
description: "iSentinel's ESLint config",
|
|
42
42
|
keywords: [
|
|
43
43
|
"eslint-config",
|
|
@@ -94,8 +94,8 @@ var package_default = {
|
|
|
94
94
|
"@isentinel/eslint-plugin-comment-length": "1.7.3",
|
|
95
95
|
"@shopify/eslint-plugin": "45.0.0",
|
|
96
96
|
"@stylistic/eslint-plugin": "2.3.0",
|
|
97
|
-
"@typescript-eslint/eslint-plugin": "7.16.
|
|
98
|
-
"@typescript-eslint/parser": "7.16.
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "7.16.1",
|
|
98
|
+
"@typescript-eslint/parser": "7.16.1",
|
|
99
99
|
"eslint-config-flat-gitignore": "0.1.7",
|
|
100
100
|
"eslint-config-prettier": "9.1.0",
|
|
101
101
|
"eslint-flat-config-utils": "0.2.5",
|
|
@@ -131,7 +131,7 @@ var package_default = {
|
|
|
131
131
|
},
|
|
132
132
|
devDependencies: {
|
|
133
133
|
"@antfu/ni": "0.22.0",
|
|
134
|
-
"@eslint-react/eslint-plugin": "1.5.
|
|
134
|
+
"@eslint-react/eslint-plugin": "1.5.27",
|
|
135
135
|
"@eslint/config-inspector": "0.5.1",
|
|
136
136
|
"@isentinel/eslint-config": "workspace:*",
|
|
137
137
|
"@stylistic/eslint-plugin-migrate": "2.3.0",
|
|
@@ -157,7 +157,7 @@ var package_default = {
|
|
|
157
157
|
typescript: "5.5.3"
|
|
158
158
|
},
|
|
159
159
|
peerDependencies: {
|
|
160
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
160
|
+
"@eslint-react/eslint-plugin": "^1.5.27",
|
|
161
161
|
eslint: ">=8.40.0",
|
|
162
162
|
"eslint-plugin-react-hooks": "^4.6.0"
|
|
163
163
|
},
|
package/dist/cli.js
CHANGED
|
@@ -19,7 +19,7 @@ init_esm_shims();
|
|
|
19
19
|
// package.json
|
|
20
20
|
var package_default = {
|
|
21
21
|
name: "@isentinel/eslint-config",
|
|
22
|
-
version: "0.7.
|
|
22
|
+
version: "0.7.2",
|
|
23
23
|
description: "iSentinel's ESLint config",
|
|
24
24
|
keywords: [
|
|
25
25
|
"eslint-config",
|
|
@@ -76,8 +76,8 @@ var package_default = {
|
|
|
76
76
|
"@isentinel/eslint-plugin-comment-length": "1.7.3",
|
|
77
77
|
"@shopify/eslint-plugin": "45.0.0",
|
|
78
78
|
"@stylistic/eslint-plugin": "2.3.0",
|
|
79
|
-
"@typescript-eslint/eslint-plugin": "7.16.
|
|
80
|
-
"@typescript-eslint/parser": "7.16.
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "7.16.1",
|
|
80
|
+
"@typescript-eslint/parser": "7.16.1",
|
|
81
81
|
"eslint-config-flat-gitignore": "0.1.7",
|
|
82
82
|
"eslint-config-prettier": "9.1.0",
|
|
83
83
|
"eslint-flat-config-utils": "0.2.5",
|
|
@@ -113,7 +113,7 @@ var package_default = {
|
|
|
113
113
|
},
|
|
114
114
|
devDependencies: {
|
|
115
115
|
"@antfu/ni": "0.22.0",
|
|
116
|
-
"@eslint-react/eslint-plugin": "1.5.
|
|
116
|
+
"@eslint-react/eslint-plugin": "1.5.27",
|
|
117
117
|
"@eslint/config-inspector": "0.5.1",
|
|
118
118
|
"@isentinel/eslint-config": "workspace:*",
|
|
119
119
|
"@stylistic/eslint-plugin-migrate": "2.3.0",
|
|
@@ -139,7 +139,7 @@ var package_default = {
|
|
|
139
139
|
typescript: "5.5.3"
|
|
140
140
|
},
|
|
141
141
|
peerDependencies: {
|
|
142
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
142
|
+
"@eslint-react/eslint-plugin": "^1.5.27",
|
|
143
143
|
eslint: ">=8.40.0",
|
|
144
144
|
"eslint-plugin-react-hooks": "^4.6.0"
|
|
145
145
|
},
|
package/dist/index.cjs
CHANGED
|
@@ -1940,7 +1940,7 @@ async function react(options = {}) {
|
|
|
1940
1940
|
"react/no-unused-state": "warn",
|
|
1941
1941
|
"react/no-useless-fragment": "warn",
|
|
1942
1942
|
"react/prefer-destructuring-assignment": "warn",
|
|
1943
|
-
"react/prefer-read-only-props": "
|
|
1943
|
+
"react/prefer-read-only-props": "error",
|
|
1944
1944
|
"react/prefer-shorthand-boolean": "off",
|
|
1945
1945
|
"react/prefer-shorthand-fragment": "warn",
|
|
1946
1946
|
// recommended rules react-hooks
|
|
@@ -1950,6 +1950,8 @@ async function react(options = {}) {
|
|
|
1950
1950
|
"react-hooks-extra/ensure-custom-hooks-using-other-hooks": "error",
|
|
1951
1951
|
"react-hooks-extra/ensure-use-callback-has-non-empty-deps": "error",
|
|
1952
1952
|
"react-hooks-extra/ensure-use-memo-has-non-empty-deps": "error",
|
|
1953
|
+
"react-hooks-extra/no-direct-set-state-in-use-effect": "error",
|
|
1954
|
+
"react-hooks-extra/no-direct-set-state-in-use-layout-effect": "error",
|
|
1953
1955
|
"react-hooks-extra/prefer-use-state-lazy-initialization": "error",
|
|
1954
1956
|
// recommended rules from @eslint-react/naming-convention
|
|
1955
1957
|
"react-naming-convention/filename-extension": ["warn", "as-needed"],
|
package/dist/index.d.cts
CHANGED
|
@@ -1437,6 +1437,16 @@ interface RuleOptions {
|
|
|
1437
1437
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
1438
1438
|
*/
|
|
1439
1439
|
'no-autofix/@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
1440
|
+
/**
|
|
1441
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
1442
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
1443
|
+
*/
|
|
1444
|
+
'no-autofix/@eslint-react/hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
1445
|
+
/**
|
|
1446
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
|
|
1447
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
|
|
1448
|
+
*/
|
|
1449
|
+
'no-autofix/@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
1440
1450
|
/**
|
|
1441
1451
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
1442
1452
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
@@ -7575,6 +7585,16 @@ interface RuleOptions {
|
|
|
7575
7585
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
7576
7586
|
*/
|
|
7577
7587
|
'no-autofix/react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
7588
|
+
/**
|
|
7589
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
7590
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
7591
|
+
*/
|
|
7592
|
+
'no-autofix/react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
7593
|
+
/**
|
|
7594
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
|
|
7595
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
|
|
7596
|
+
*/
|
|
7597
|
+
'no-autofix/react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
7578
7598
|
/**
|
|
7579
7599
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
7580
7600
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
@@ -10754,6 +10774,16 @@ interface RuleOptions {
|
|
|
10754
10774
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
10755
10775
|
*/
|
|
10756
10776
|
'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
10777
|
+
/**
|
|
10778
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
10779
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
10780
|
+
*/
|
|
10781
|
+
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
10782
|
+
/**
|
|
10783
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
|
|
10784
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
|
|
10785
|
+
*/
|
|
10786
|
+
'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
10757
10787
|
/**
|
|
10758
10788
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
10759
10789
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
package/dist/index.d.ts
CHANGED
|
@@ -1437,6 +1437,16 @@ interface RuleOptions {
|
|
|
1437
1437
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
1438
1438
|
*/
|
|
1439
1439
|
'no-autofix/@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
1440
|
+
/**
|
|
1441
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
1442
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
1443
|
+
*/
|
|
1444
|
+
'no-autofix/@eslint-react/hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
1445
|
+
/**
|
|
1446
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
|
|
1447
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
|
|
1448
|
+
*/
|
|
1449
|
+
'no-autofix/@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
1440
1450
|
/**
|
|
1441
1451
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
1442
1452
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
@@ -7575,6 +7585,16 @@ interface RuleOptions {
|
|
|
7575
7585
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
7576
7586
|
*/
|
|
7577
7587
|
'no-autofix/react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
7588
|
+
/**
|
|
7589
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
7590
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
7591
|
+
*/
|
|
7592
|
+
'no-autofix/react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
7593
|
+
/**
|
|
7594
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
|
|
7595
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
|
|
7596
|
+
*/
|
|
7597
|
+
'no-autofix/react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
7578
7598
|
/**
|
|
7579
7599
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
7580
7600
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
@@ -10754,6 +10774,16 @@ interface RuleOptions {
|
|
|
10754
10774
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
10755
10775
|
*/
|
|
10756
10776
|
'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
10777
|
+
/**
|
|
10778
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
10779
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
10780
|
+
*/
|
|
10781
|
+
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
10782
|
+
/**
|
|
10783
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
|
|
10784
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
|
|
10785
|
+
*/
|
|
10786
|
+
'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
10757
10787
|
/**
|
|
10758
10788
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
10759
10789
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
package/dist/index.js
CHANGED
|
@@ -1839,7 +1839,7 @@ async function react(options = {}) {
|
|
|
1839
1839
|
"react/no-unused-state": "warn",
|
|
1840
1840
|
"react/no-useless-fragment": "warn",
|
|
1841
1841
|
"react/prefer-destructuring-assignment": "warn",
|
|
1842
|
-
"react/prefer-read-only-props": "
|
|
1842
|
+
"react/prefer-read-only-props": "error",
|
|
1843
1843
|
"react/prefer-shorthand-boolean": "off",
|
|
1844
1844
|
"react/prefer-shorthand-fragment": "warn",
|
|
1845
1845
|
// recommended rules react-hooks
|
|
@@ -1849,6 +1849,8 @@ async function react(options = {}) {
|
|
|
1849
1849
|
"react-hooks-extra/ensure-custom-hooks-using-other-hooks": "error",
|
|
1850
1850
|
"react-hooks-extra/ensure-use-callback-has-non-empty-deps": "error",
|
|
1851
1851
|
"react-hooks-extra/ensure-use-memo-has-non-empty-deps": "error",
|
|
1852
|
+
"react-hooks-extra/no-direct-set-state-in-use-effect": "error",
|
|
1853
|
+
"react-hooks-extra/no-direct-set-state-in-use-layout-effect": "error",
|
|
1852
1854
|
"react-hooks-extra/prefer-use-state-lazy-initialization": "error",
|
|
1853
1855
|
// recommended rules from @eslint-react/naming-convention
|
|
1854
1856
|
"react-naming-convention/filename-extension": ["warn", "as-needed"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isentinel/eslint-config",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "iSentinel's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@isentinel/eslint-plugin-comment-length": "1.7.3",
|
|
45
45
|
"@shopify/eslint-plugin": "45.0.0",
|
|
46
46
|
"@stylistic/eslint-plugin": "2.3.0",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "7.16.
|
|
48
|
-
"@typescript-eslint/parser": "7.16.
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "7.16.1",
|
|
48
|
+
"@typescript-eslint/parser": "7.16.1",
|
|
49
49
|
"eslint-config-flat-gitignore": "0.1.7",
|
|
50
50
|
"eslint-config-prettier": "9.1.0",
|
|
51
51
|
"eslint-flat-config-utils": "0.2.5",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@antfu/ni": "0.22.0",
|
|
84
|
-
"@eslint-react/eslint-plugin": "1.5.
|
|
84
|
+
"@eslint-react/eslint-plugin": "1.5.27",
|
|
85
85
|
"@eslint/config-inspector": "0.5.1",
|
|
86
86
|
"@stylistic/eslint-plugin-migrate": "2.3.0",
|
|
87
87
|
"@types/eslint": "8.56.10",
|
|
@@ -104,10 +104,10 @@
|
|
|
104
104
|
"simple-git-hooks": "2.11.1",
|
|
105
105
|
"tsup": "8.1.0",
|
|
106
106
|
"typescript": "5.5.3",
|
|
107
|
-
"@isentinel/eslint-config": "0.7.
|
|
107
|
+
"@isentinel/eslint-config": "0.7.2"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
110
|
+
"@eslint-react/eslint-plugin": "^1.5.27",
|
|
111
111
|
"eslint": ">=8.40.0",
|
|
112
112
|
"eslint-plugin-react-hooks": "^4.6.0"
|
|
113
113
|
},
|