Files
Nikolay Vitkov bb976f7b9e Update node_module dependecies
Add one more deps "@typescript-eslint/utils" to top level to be used in our own custom rules (also needed override if I didn't).

Bug: none
Change-Id: I130415d1ec5f096ca51200df3eb688dadd963d0f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6343232
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-03-12 06:49:46 -07:00

29 lines
706 B
JavaScript

// 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 constants = require('../constants.cjs');
/** @import { FixMode } from 'stylelint' */
/**
* Normalize the fix mode based on options and configuration.
* If the input is unknown, this returns `undefined`.
*
* @param {unknown} fix
* @returns {FixMode | undefined}
*/
function normalizeFixMode(fix) {
if (fix === true || fix === 'true' || fix === '' || fix === constants.DEFAULT_FIX_MODE) {
return constants.DEFAULT_FIX_MODE;
}
if (fix === 'strict') {
return 'strict';
}
return undefined;
}
module.exports = normalizeFixMode;