@eslint-react/eslint-plugin 5.24.1 → 5.24.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/index.js +1 -16
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -451,31 +451,16 @@ const settings = { ...settings$1 };
|
|
|
451
451
|
//#endregion
|
|
452
452
|
//#region package.json
|
|
453
453
|
var name = "@eslint-react/eslint-plugin";
|
|
454
|
-
var version = "5.24.
|
|
454
|
+
var version = "5.24.2";
|
|
455
455
|
|
|
456
456
|
//#endregion
|
|
457
457
|
//#region src/utils/type-of.ts
|
|
458
|
-
/**
|
|
459
|
-
* This is an enhanced version of the typeof operator to check the type of more complex values.
|
|
460
|
-
* In this case we just mind about arrays and objects. We can add more on demand.
|
|
461
|
-
* @param t the value to be checked
|
|
462
|
-
* @returns the type of the value
|
|
463
|
-
*/
|
|
464
458
|
function typeOf(t) {
|
|
465
459
|
return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
|
|
466
460
|
}
|
|
467
461
|
|
|
468
462
|
//#endregion
|
|
469
463
|
//#region src/utils/transform-keys.ts
|
|
470
|
-
/**
|
|
471
|
-
* This function is used to shallowly transform the keys of an object.
|
|
472
|
-
* It will only be transformed at runtime, so it's not type safe.
|
|
473
|
-
* @param obj the object to transform.
|
|
474
|
-
* @param transform the function to transform the keys from string to string.
|
|
475
|
-
* @returns the transformed object.
|
|
476
|
-
* @example transformKeys({ 'foo-bar': { 'fizz-buzz': true } }, camelCase)
|
|
477
|
-
* // { fooBar: { 'fizz-buzz': true } }
|
|
478
|
-
*/
|
|
479
464
|
function transformKeys(obj, transform) {
|
|
480
465
|
if (typeOf(obj) !== "object") return obj;
|
|
481
466
|
const res = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "5.24.
|
|
3
|
+
"version": "5.24.2",
|
|
4
4
|
"description": "ESLint React's unified ESLint plugin that combines all individual plugins into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@eslint-react/shared": "5.24.
|
|
46
|
-
"eslint-plugin-react-dom": "5.24.
|
|
47
|
-
"eslint-plugin-react-jsx": "5.24.
|
|
48
|
-
"eslint-plugin-react-naming-convention": "5.24.
|
|
49
|
-
"eslint-plugin-react-rsc": "5.24.
|
|
50
|
-
"eslint-plugin-react-web-api": "5.24.
|
|
51
|
-
"eslint-plugin-react-x": "5.24.
|
|
45
|
+
"@eslint-react/shared": "5.24.2",
|
|
46
|
+
"eslint-plugin-react-dom": "5.24.2",
|
|
47
|
+
"eslint-plugin-react-jsx": "5.24.2",
|
|
48
|
+
"eslint-plugin-react-naming-convention": "5.24.2",
|
|
49
|
+
"eslint-plugin-react-rsc": "5.24.2",
|
|
50
|
+
"eslint-plugin-react-web-api": "5.24.2",
|
|
51
|
+
"eslint-plugin-react-x": "5.24.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@local/configs": "0.0.0",
|