@10stars/config 5.1.1 → 5.1.4
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/.eslintrc.js +3 -3
- package/package.json +2 -2
package/.eslintrc.js
CHANGED
|
@@ -50,7 +50,7 @@ module.exports = {
|
|
|
50
50
|
`@typescript-eslint`,
|
|
51
51
|
`import`,
|
|
52
52
|
`react`,
|
|
53
|
-
|
|
53
|
+
`@10stars/react-hooks`, // https://reactjs.org/docs/hooks-rules.html#eslint-plugin
|
|
54
54
|
`regexp`,
|
|
55
55
|
`simple-import-sort`,
|
|
56
56
|
`sort-keys-fix`,
|
|
@@ -65,7 +65,6 @@ module.exports = {
|
|
|
65
65
|
`plugin:@typescript-eslint/recommended`,
|
|
66
66
|
`plugin:@typescript-eslint/recommended-requiring-type-checking`,
|
|
67
67
|
`plugin:react/recommended`,
|
|
68
|
-
`plugin:react-hooks/recommended`,
|
|
69
68
|
`plugin:regexp/recommended`,
|
|
70
69
|
|
|
71
70
|
// "plugin:import/typescript",
|
|
@@ -136,7 +135,8 @@ module.exports = {
|
|
|
136
135
|
/**
|
|
137
136
|
* Hooks
|
|
138
137
|
*/
|
|
139
|
-
"react-hooks/
|
|
138
|
+
"@10stars/react-hooks/rules-of-hooks": type.error,
|
|
139
|
+
"@10stars/react-hooks/exhaustive-deps": [
|
|
140
140
|
type.warning,
|
|
141
141
|
{
|
|
142
142
|
additionalHooks: `(${reactUseHooks.join(`|`)})`,
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
},
|
|
6
6
|
"name": "@10stars/config",
|
|
7
7
|
"description": "10stars.dev Shareable Configs",
|
|
8
|
-
"version": "5.1.
|
|
8
|
+
"version": "5.1.4",
|
|
9
9
|
"author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"config"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"lint-rule-timings": "cross-env TIMING=1 npm run lint"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@10stars/eslint-plugin-react-hooks": "^4.
|
|
27
|
+
"@10stars/eslint-plugin-react-hooks": "^4.3.3",
|
|
28
28
|
"@commitlint/cli": "^16.0.0",
|
|
29
29
|
"@commitlint/config-conventional": "^16.0.0",
|
|
30
30
|
"@types/lodash": "^4.0.0",
|