Add JS-CATCH-FALLBACK-01 rule and update npm packages

Add PHP-ALIAS-01 rule: prohibit field aliasing in serialization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-23 07:36:18 +00:00
parent 3cc590186a
commit 3ce82a924a
1256 changed files with 6491 additions and 3989 deletions

View File

@@ -137,12 +137,15 @@ const isTooSmall = (size, minSize) => {
return false;
};
/** @typedef {Set<string>} Types */
/**
* @param {Sizes} size size
* @param {Sizes} minSize minimum size
* @returns {Set<string>} set of types that are too small
* @returns {Types} set of types that are too small
*/
const getTooSmallTypes = (size, minSize) => {
/** @typedef {Types} */
const types = new Set();
for (const key of Object.keys(size)) {
const s = size[key];
@@ -156,7 +159,7 @@ const getTooSmallTypes = (size, minSize) => {
/**
* @template {object} T
* @param {T} size size
* @param {Set<string>} types types
* @param {Types} types types
* @returns {number} number of matching size types
*/
const getNumberOfMatchingSizeTypes = (size, types) => {
@@ -169,7 +172,7 @@ const getNumberOfMatchingSizeTypes = (size, types) => {
/**
* @param {Sizes} size size
* @param {Set<string>} types types
* @param {Types} types types
* @returns {number} selective size sum
*/
const selectiveSizeSum = (size, types) => {