first commit

This commit is contained in:
2025-03-07 22:27:18 +08:00
commit 912da26042
4457 changed files with 306818 additions and 0 deletions

26
node_modules/stylelint/lib/utils/optionsMatches.cjs generated vendored Normal file
View File

@@ -0,0 +1,26 @@
// NOTICE: This file is generated by Rollup. To modify it,
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
'use strict';
const matchesStringOrRegExp = require('./matchesStringOrRegExp.cjs');
/**
* Check if an options object's propertyName contains a user-defined string or
* regex that matches the passed in input.
*
* @param {{ [x: string]: any; }} options
* @param {string} propertyName
* @param {unknown} input
*
* @returns {boolean}
*/
function optionsMatches(options, propertyName, input) {
return Boolean(
options &&
options[propertyName] &&
typeof input === 'string' &&
matchesStringOrRegExp(input, options[propertyName]),
);
}
module.exports = optionsMatches;