@10stars/config 5.2.1 → 5.2.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 +16 -16
- package/package.json +5 -5
package/.eslintrc.js
CHANGED
|
@@ -65,6 +65,7 @@ module.exports = {
|
|
|
65
65
|
`plugin:@typescript-eslint/recommended`,
|
|
66
66
|
`plugin:@typescript-eslint/recommended-requiring-type-checking`,
|
|
67
67
|
`plugin:react/recommended`,
|
|
68
|
+
`plugin:@10stars/react-hooks/recommended`,
|
|
68
69
|
`plugin:regexp/recommended`,
|
|
69
70
|
|
|
70
71
|
// "plugin:import/typescript",
|
|
@@ -83,7 +84,7 @@ module.exports = {
|
|
|
83
84
|
"import/parsers": { "@typescript-eslint/parser": [`.ts`, `.tsx`] },
|
|
84
85
|
"import/extensions": [`.ts`, `.tsx`, `.js`, `.jsx`],
|
|
85
86
|
react: {
|
|
86
|
-
version: `
|
|
87
|
+
version: `18.0.0`,
|
|
87
88
|
},
|
|
88
89
|
},
|
|
89
90
|
rules: {
|
|
@@ -116,11 +117,11 @@ module.exports = {
|
|
|
116
117
|
], // also want to use with ".tsx"
|
|
117
118
|
"react/no-invalid-html-attribute": type.error,
|
|
118
119
|
"react/prefer-stateless-function": type.error,
|
|
119
|
-
"react/jsx-boolean-value": [type.
|
|
120
|
-
"react/jsx-curly-brace-presence": [type.
|
|
121
|
-
"react/jsx-fragments": type.
|
|
122
|
-
"react/jsx-no-bind": type.
|
|
123
|
-
"react/jsx-no-constructed-context-values": type.
|
|
120
|
+
"react/jsx-boolean-value": [type.warning, "never"],
|
|
121
|
+
"react/jsx-curly-brace-presence": [type.warning, "always"],
|
|
122
|
+
"react/jsx-fragments": type.warning,
|
|
123
|
+
"react/jsx-no-bind": type.warning,
|
|
124
|
+
"react/jsx-no-constructed-context-values": type.warning,
|
|
124
125
|
"react/jsx-no-script-url": [
|
|
125
126
|
type.error,
|
|
126
127
|
[
|
|
@@ -129,20 +130,19 @@ module.exports = {
|
|
|
129
130
|
{ name: "a", props: ["href", "to"] },
|
|
130
131
|
],
|
|
131
132
|
],
|
|
132
|
-
"react/jsx-no-useless-fragment": type.
|
|
133
|
+
"react/jsx-no-useless-fragment": type.warning,
|
|
133
134
|
"react/jsx-no-target-blank": type.error,
|
|
134
|
-
"react/jsx-sort-props": type.
|
|
135
|
+
"react/jsx-sort-props": type.warning,
|
|
135
136
|
/**
|
|
136
137
|
* Hooks
|
|
137
138
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
// ],
|
|
139
|
+
"@10stars/react-hooks/exhaustive-deps": [
|
|
140
|
+
type.warning,
|
|
141
|
+
{
|
|
142
|
+
additionalHooks: `(${reactUseHooks.join(`|`)})`,
|
|
143
|
+
ignoreThisDependency: `always`,
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
146
|
/**
|
|
147
147
|
* TypeScript
|
|
148
148
|
* List of ignored (not recommended) rules we also explored:
|
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.2.
|
|
8
|
+
"version": "5.2.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.3.
|
|
27
|
+
"@10stars/eslint-plugin-react-hooks": "^4.3.4",
|
|
28
28
|
"@commitlint/cli": "^16.0.0",
|
|
29
29
|
"@commitlint/config-conventional": "^16.0.0",
|
|
30
30
|
"@types/lodash": "^4.0.0",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"@types/react": "^17.0.0",
|
|
33
33
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
34
34
|
"@typescript-eslint/parser": "^5.0.0",
|
|
35
|
-
"esbuild": "~0.14.
|
|
36
|
-
"esbuild-node-loader": "~0.
|
|
35
|
+
"esbuild": "~0.14.25",
|
|
36
|
+
"esbuild-node-loader": "~0.8.0",
|
|
37
37
|
"eslint": "^8.0.0",
|
|
38
38
|
"eslint-config-prettier": "^8.0.0",
|
|
39
39
|
"eslint-plugin-import": "^2.0.0",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"nodemon": "^2.0.7",
|
|
47
47
|
"prettier": "^2.0.0",
|
|
48
48
|
"type-fest": "^2.0.0",
|
|
49
|
-
"typescript": "^4.
|
|
49
|
+
"typescript": "^4.6.2"
|
|
50
50
|
}
|
|
51
51
|
}
|