freewind-ts-utils 0.18.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/README.md +60 -0
- package/antd/CopyButton/CopyButton.d.ts +7 -0
- package/antd/CopyButton/CopyButton.js +29 -0
- package/antd/CopyButton/index.d.ts +1 -0
- package/antd/CopyButton/index.js +2 -0
- package/antd/FloatLabel/FloatLabel.css +18 -0
- package/antd/FloatLabel/FloatLabel.d.ts +8 -0
- package/antd/FloatLabel/FloatLabel.js +50 -0
- package/antd/FloatLabel/index.d.ts +1 -0
- package/antd/FloatLabel/index.js +2 -0
- package/antd/FuzzyAutoComplete/FuzzyAutoComplete.d.ts +17 -0
- package/antd/FuzzyAutoComplete/FuzzyAutoComplete.js +73 -0
- package/antd/FuzzyAutoComplete/index.d.ts +1 -0
- package/antd/FuzzyAutoComplete/index.js +2 -0
- package/antd/FuzzyPathSelect/FuzzyPathSelect.d.ts +8 -0
- package/antd/FuzzyPathSelect/FuzzyPathSelect.js +48 -0
- package/antd/FuzzyPathSelect/defaultIgnoreNames.d.ts +1 -0
- package/antd/FuzzyPathSelect/defaultIgnoreNames.js +28 -0
- package/antd/FuzzyPathSelect/index.d.ts +1 -0
- package/antd/FuzzyPathSelect/index.js +2 -0
- package/antd/FuzzyStringSelect/FuzzyStringSelect.d.ts +6 -0
- package/antd/FuzzyStringSelect/FuzzyStringSelect.js +12 -0
- package/antd/FuzzyStringSelect/index.d.ts +1 -0
- package/antd/FuzzyStringSelect/index.js +2 -0
- package/antd/HoverSwap/HoverSwap.css +3 -0
- package/antd/HoverSwap/HoverSwap.d.ts +8 -0
- package/antd/HoverSwap/HoverSwap.js +18 -0
- package/antd/HoverSwap/index.d.ts +1 -0
- package/antd/HoverSwap/index.js +2 -0
- package/antd/InputLabel/InputLabel.css +10 -0
- package/antd/InputLabel/InputLabel.d.ts +4 -0
- package/antd/InputLabel/InputLabel.js +11 -0
- package/antd/InputLabel/index.d.ts +1 -0
- package/antd/InputLabel/index.js +2 -0
- package/antd/JsonPreviewer/JsonPreviewer.css +74 -0
- package/antd/JsonPreviewer/JsonPreviewer.d.ts +11 -0
- package/antd/JsonPreviewer/JsonPreviewer.js +69 -0
- package/antd/JsonPreviewer/index.d.ts +1 -0
- package/antd/JsonPreviewer/index.js +2 -0
- package/antd/_internal/HighlightParts.d.ts +6 -0
- package/antd/_internal/HighlightParts.js +12 -0
- package/antd/index.d.ts +8 -0
- package/antd/index.js +17 -0
- package/common/SimpleType.d.ts +2 -0
- package/common/SimpleType.js +0 -0
- package/common/_internal/createObjectReferenceTracker.d.ts +5 -0
- package/common/_internal/createObjectReferenceTracker.js +11 -0
- package/common/anyToString/anyToString.d.ts +27 -0
- package/common/anyToString/anyToString.js +23 -0
- package/common/anyToString/createCircularStackTracker.d.ts +5 -0
- package/common/anyToString/createCircularStackTracker.js +14 -0
- package/common/anyToString/formatters/formatArray.d.ts +2 -0
- package/common/anyToString/formatters/formatArray.js +11 -0
- package/common/anyToString/formatters/formatArrayBufferView.d.ts +2 -0
- package/common/anyToString/formatters/formatArrayBufferView.js +14 -0
- package/common/anyToString/formatters/formatDocumentObject.d.ts +1 -0
- package/common/anyToString/formatters/formatDocumentObject.js +7 -0
- package/common/anyToString/formatters/formatElementObject.d.ts +1 -0
- package/common/anyToString/formatters/formatElementObject.js +15 -0
- package/common/anyToString/formatters/formatError.d.ts +1 -0
- package/common/anyToString/formatters/formatError.js +7 -0
- package/common/anyToString/formatters/formatFunction.d.ts +1 -0
- package/common/anyToString/formatters/formatFunction.js +6 -0
- package/common/anyToString/formatters/formatMap.d.ts +2 -0
- package/common/anyToString/formatters/formatMap.js +17 -0
- package/common/anyToString/formatters/formatObject.d.ts +2 -0
- package/common/anyToString/formatters/formatObject.js +44 -0
- package/common/anyToString/formatters/formatObjectKey.d.ts +1 -0
- package/common/anyToString/formatters/formatObjectKey.js +8 -0
- package/common/anyToString/formatters/formatRecordLike.d.ts +2 -0
- package/common/anyToString/formatters/formatRecordLike.js +39 -0
- package/common/anyToString/formatters/formatSet.d.ts +2 -0
- package/common/anyToString/formatters/formatSet.js +17 -0
- package/common/anyToString/formatters/formatString.d.ts +1 -0
- package/common/anyToString/formatters/formatString.js +8 -0
- package/common/anyToString/formatters/formatValue.d.ts +11 -0
- package/common/anyToString/formatters/formatValue.js +20 -0
- package/common/anyToString/formatters/formatWindowObject.d.ts +1 -0
- package/common/anyToString/formatters/formatWindowObject.js +6 -0
- package/common/anyToString/formatters/getConstructorName.d.ts +1 -0
- package/common/anyToString/formatters/getConstructorName.js +7 -0
- package/common/anyToString/formatters/joinBlock.d.ts +1 -0
- package/common/anyToString/formatters/joinBlock.js +9 -0
- package/common/anyToString/formatters/withCircularGuard.d.ts +2 -0
- package/common/anyToString/formatters/withCircularGuard.js +11 -0
- package/common/anyToString/index.d.ts +1 -0
- package/common/anyToString/index.js +2 -0
- package/common/assertsType.d.ts +12 -0
- package/common/assertsType.js +4 -0
- package/common/buildSequence.d.ts +6 -0
- package/common/buildSequence.js +8 -0
- package/common/deepClone.d.ts +12 -0
- package/common/deepClone.js +55 -0
- package/common/deepEqual.d.ts +12 -0
- package/common/deepEqual.js +46 -0
- package/common/deepParseJsonStrings.d.ts +1 -0
- package/common/deepParseJsonStrings.js +22 -0
- package/common/dependsOn.d.ts +12 -0
- package/common/dependsOn.js +4 -0
- package/common/doExpr.d.ts +14 -0
- package/common/doExpr.js +6 -0
- package/common/flatChildren.d.ts +1 -0
- package/common/flatChildren.js +14 -0
- package/common/formatDecimal.d.ts +12 -0
- package/common/formatDecimal.js +11 -0
- package/common/formatFriendlyTime.d.ts +1 -0
- package/common/formatFriendlyTime.js +10 -0
- package/common/formatSize.d.ts +13 -0
- package/common/formatSize.js +19 -0
- package/common/fuzzy/fuzzyMatch.d.ts +25 -0
- package/common/fuzzy/fuzzyMatch.js +19 -0
- package/common/fuzzy/fuzzyMatchPath.d.ts +23 -0
- package/common/fuzzy/fuzzyMatchPath.js +102 -0
- package/common/fuzzy/types.d.ts +10 -0
- package/common/fuzzy/types.js +0 -0
- package/common/fuzzy/utils/buildHighlightParts.d.ts +4 -0
- package/common/fuzzy/utils/buildHighlightParts.js +21 -0
- package/common/fuzzy/utils/buildHighlightRanges.d.ts +1 -0
- package/common/fuzzy/utils/buildHighlightRanges.js +20 -0
- package/common/fuzzy/utils/index.d.ts +5 -0
- package/common/fuzzy/utils/index.js +6 -0
- package/common/fuzzy/utils/normalizePathSeparators.d.ts +1 -0
- package/common/fuzzy/utils/normalizePathSeparators.js +7 -0
- package/common/fuzzy/utils/rankFuzzyCandidates.d.ts +2 -0
- package/common/fuzzy/utils/rankFuzzyCandidates.js +26 -0
- package/common/fuzzy/utils/scoreLooseFuzzyMatch.d.ts +2 -0
- package/common/fuzzy/utils/scoreLooseFuzzyMatch.js +126 -0
- package/common/getEnumerableOwnDescriptors.d.ts +1 -0
- package/common/getEnumerableOwnDescriptors.js +11 -0
- package/common/index.d.ts +49 -0
- package/common/index.js +48 -0
- package/common/isEmptyRecord.d.ts +10 -0
- package/common/isEmptyRecord.js +7 -0
- package/common/isNil.d.ts +13 -0
- package/common/isNil.js +6 -0
- package/common/isNonNil.d.ts +11 -0
- package/common/isNonNil.js +6 -0
- package/common/isRecord.d.ts +12 -0
- package/common/isRecord.js +8 -0
- package/common/jsonRecord/filterJsonRecord.d.ts +16 -0
- package/common/jsonRecord/filterJsonRecord.js +19 -0
- package/common/jsonRecord/isJsonRecord.d.ts +16 -0
- package/common/jsonRecord/isJsonRecord.js +16 -0
- package/common/jsonRecord/jsonRecordDiff.d.ts +13 -0
- package/common/jsonRecord/jsonRecordDiff.js +26 -0
- package/common/jsonRecord/mapJsonRecord.d.ts +13 -0
- package/common/jsonRecord/mapJsonRecord.js +14 -0
- package/common/jsonRecord/modifyJsonRecord.d.ts +14 -0
- package/common/jsonRecord/modifyJsonRecord.js +24 -0
- package/common/jsonRecord/walkJsonRecord.d.ts +15 -0
- package/common/jsonRecord/walkJsonRecord.js +16 -0
- package/common/onlyUnique.d.ts +10 -0
- package/common/onlyUnique.js +6 -0
- package/common/pipe.d.ts +9 -0
- package/common/pipe.js +6 -0
- package/common/pipeNonNil.d.ts +16 -0
- package/common/pipeNonNil.js +7 -0
- package/common/safeJsonStringify.d.ts +28 -0
- package/common/safeJsonStringify.js +105 -0
- package/common/simpleInt/isSimpleInt.d.ts +6 -0
- package/common/simpleInt/isSimpleInt.js +6 -0
- package/common/simpleInt/isSimpleIntInputing.d.ts +6 -0
- package/common/simpleInt/isSimpleIntInputing.js +7 -0
- package/common/simpleInt/isSimpleNumber.d.ts +10 -0
- package/common/simpleInt/isSimpleNumber.js +6 -0
- package/common/simpleInt/isSimpleNumberInputing.d.ts +6 -0
- package/common/simpleInt/isSimpleNumberInputing.js +7 -0
- package/common/simpleInt/parseSimpleInt.d.ts +6 -0
- package/common/simpleInt/parseSimpleInt.js +11 -0
- package/common/simpleInt/parseSimpleIntOrNil.d.ts +6 -0
- package/common/simpleInt/parseSimpleIntOrNil.js +9 -0
- package/common/simpleInt/parseSimpleNumber.d.ts +6 -0
- package/common/simpleInt/parseSimpleNumber.js +11 -0
- package/common/simpleInt/parseSimpleNumberOrNil.d.ts +4 -0
- package/common/simpleInt/parseSimpleNumberOrNil.js +7 -0
- package/common/tap.d.ts +9 -0
- package/common/tap.js +6 -0
- package/common/tree/buildTree.d.ts +6 -0
- package/common/tree/buildTree.js +13 -0
- package/common/tree/flatTree.d.ts +2 -0
- package/common/tree/flatTree.js +7 -0
- package/common/tree/mapTree.d.ts +2 -0
- package/common/tree/mapTree.js +11 -0
- package/common/tree/pruneTree.d.ts +2 -0
- package/common/tree/pruneTree.js +15 -0
- package/common/tree/sortTree.d.ts +2 -0
- package/common/tree/sortTree.js +11 -0
- package/common/tree/treeToArray.d.ts +2 -0
- package/common/tree/treeToArray.js +12 -0
- package/common/tree/treeToRows.d.ts +5 -0
- package/common/tree/treeToRows.js +19 -0
- package/common/tree/treeTypes.d.ts +7 -0
- package/common/tree/treeTypes.js +0 -0
- package/common/tree/walkTree.d.ts +2 -0
- package/common/tree/walkTree.js +13 -0
- package/common/truncateJsonStrings.d.ts +14 -0
- package/common/truncateJsonStrings.js +7 -0
- package/common/truncateString.d.ts +13 -0
- package/common/truncateString.js +7 -0
- package/common/tryParsePartialJson.d.ts +11 -0
- package/common/tryParsePartialJson.js +156 -0
- package/eslint-config/eslintPreset.d.ts +2 -0
- package/eslint-config/eslintPreset.js +36 -0
- package/eslint-config/index.d.ts +14 -0
- package/eslint-config/index.js +20 -0
- package/eslint-config/layers/configLayer.d.ts +2 -0
- package/eslint-config/layers/configLayer.js +16 -0
- package/eslint-config/layers/jsLayer.d.ts +2 -0
- package/eslint-config/layers/jsLayer.js +20 -0
- package/eslint-config/layers/prettierLayer.d.ts +5 -0
- package/eslint-config/layers/prettierLayer.js +5 -0
- package/eslint-config/layers/reactHookLayer.d.ts +2 -0
- package/eslint-config/layers/reactHookLayer.js +16 -0
- package/eslint-config/layers/testLayer.d.ts +2 -0
- package/eslint-config/layers/testLayer.js +46 -0
- package/eslint-config/layers/tsLayer.d.ts +2 -0
- package/eslint-config/layers/tsLayer.js +70 -0
- package/eslint-config/plugins/freewindSingleExportPlugin.d.ts +2 -0
- package/eslint-config/plugins/freewindSingleExportPlugin.js +47 -0
- package/eslint-config/utils/withRuleOverrides.d.ts +2 -0
- package/eslint-config/utils/withRuleOverrides.js +9 -0
- package/index.d.ts +1 -0
- package/index.js +49 -0
- package/node/index.d.ts +2 -0
- package/node/index.js +3 -0
- package/node/md5.d.ts +11 -0
- package/node/md5.js +7 -0
- package/node/uuid.d.ts +11 -0
- package/node/uuid.js +7 -0
- package/package.json +115 -0
- package/prettier-config/freewindPrettierPreset.d.ts +2 -0
- package/prettier-config/freewindPrettierPreset.js +4 -0
- package/prettier-config/index.d.ts +1 -0
- package/prettier-config/index.js +2 -0
- package/react/hooks/useCopyToClipboard.d.ts +10 -0
- package/react/hooks/useCopyToClipboard.js +28 -0
- package/react/hooks/useDeepCompareSelector.d.ts +23 -0
- package/react/hooks/useDeepCompareSelector.js +14 -0
- package/react/hooks/useInputEvent/_internal/ink-input/index.d.ts +2 -0
- package/react/hooks/useInputEvent/_internal/ink-input/index.js +3 -0
- package/react/hooks/useInputEvent/_internal/ink-input/input-parser.d.ts +6 -0
- package/react/hooks/useInputEvent/_internal/ink-input/input-parser.js +98 -0
- package/react/hooks/useInputEvent/_internal/ink-input/kitty-keyboard.d.ts +19 -0
- package/react/hooks/useInputEvent/_internal/ink-input/kitty-keyboard.js +13 -0
- package/react/hooks/useInputEvent/_internal/ink-input/parse-keypress.d.ts +33 -0
- package/react/hooks/useInputEvent/_internal/ink-input/parse-keypress.js +319 -0
- package/react/hooks/useInputEvent/formatInputEvent.d.ts +2 -0
- package/react/hooks/useInputEvent/formatInputEvent.js +25 -0
- package/react/hooks/useInputEvent/index.d.ts +4 -0
- package/react/hooks/useInputEvent/index.js +4 -0
- package/react/hooks/useInputEvent/inputEventTypes.d.ts +51 -0
- package/react/hooks/useInputEvent/inputEventTypes.js +0 -0
- package/react/hooks/useInputEvent/parseInputEvent.d.ts +4 -0
- package/react/hooks/useInputEvent/parseInputEvent.js +100 -0
- package/react/hooks/useInputEvent/useInputEvent.d.ts +7 -0
- package/react/hooks/useInputEvent/useInputEvent.js +57 -0
- package/react/hooks/useOverlayStack/_internal/overlayStackId.d.ts +2 -0
- package/react/hooks/useOverlayStack/_internal/overlayStackId.js +6 -0
- package/react/hooks/useOverlayStack/createOverlayStackItem.d.ts +2 -0
- package/react/hooks/useOverlayStack/createOverlayStackItem.js +10 -0
- package/react/hooks/useOverlayStack/index.d.ts +3 -0
- package/react/hooks/useOverlayStack/index.js +3 -0
- package/react/hooks/useOverlayStack/overlayStackTypes.d.ts +13 -0
- package/react/hooks/useOverlayStack/overlayStackTypes.js +0 -0
- package/react/hooks/useOverlayStack/useOverlayStack.d.ts +2 -0
- package/react/hooks/useOverlayStack/useOverlayStack.js +24 -0
- package/react/index.d.ts +4 -0
- package/react/index.js +10 -0
- package/react/ink-components/InkModal/InkModal.d.ts +3 -0
- package/react/ink-components/InkModal/InkModal.js +101 -0
- package/react/ink-components/InkModal/index.d.ts +4 -0
- package/react/ink-components/InkModal/index.js +4 -0
- package/react/ink-components/InkModal/types.d.ts +24 -0
- package/react/ink-components/InkModal/types.js +0 -0
- package/react/ink-components/InkModal/utils/computeInkModalBodyMaxHeight.d.ts +1 -0
- package/react/ink-components/InkModal/utils/computeInkModalBodyMaxHeight.js +4 -0
- package/react/ink-components/InkModal/utils/resolveInkModalSize.d.ts +6 -0
- package/react/ink-components/InkModal/utils/resolveInkModalSize.js +7 -0
- package/react/ink-components/InkMultiSelect/InkMultiSelect.d.ts +22 -0
- package/react/ink-components/InkMultiSelect/InkMultiSelect.js +94 -0
- package/react/ink-components/InkMultiSelect/InkMultiSelectRow.d.ts +10 -0
- package/react/ink-components/InkMultiSelect/InkMultiSelectRow.js +35 -0
- package/react/ink-components/InkMultiSelect/index.d.ts +8 -0
- package/react/ink-components/InkMultiSelect/index.js +9 -0
- package/react/ink-components/InkMultiSelect/inkMultiSelectKeyboard.d.ts +17 -0
- package/react/ink-components/InkMultiSelect/inkMultiSelectKeyboard.js +19 -0
- package/react/ink-components/InkMultiSelect/types.d.ts +20 -0
- package/react/ink-components/InkMultiSelect/types.js +18 -0
- package/react/ink-components/InkMultiSelect/useInkMultiSelectNavigation.d.ts +10 -0
- package/react/ink-components/InkMultiSelect/useInkMultiSelectNavigation.js +40 -0
- package/react/ink-components/InkMultiSelect/utils/clampListScrollOffset.d.ts +1 -0
- package/react/ink-components/InkMultiSelect/utils/clampListScrollOffset.js +6 -0
- package/react/ink-components/InkMultiSelect/utils/formatMoreLabel.d.ts +1 -0
- package/react/ink-components/InkMultiSelect/utils/formatMoreLabel.js +6 -0
- package/react/ink-components/InkMultiSelect/utils/inkMultiSelectVisibleCount.d.ts +2 -0
- package/react/ink-components/InkMultiSelect/utils/inkMultiSelectVisibleCount.js +7 -0
- package/react/ink-components/InkScrollView/InkScrollView.d.ts +19 -0
- package/react/ink-components/InkScrollView/InkScrollView.js +103 -0
- package/react/ink-components/InkScrollView/Scrollbar.d.ts +7 -0
- package/react/ink-components/InkScrollView/Scrollbar.js +16 -0
- package/react/ink-components/InkScrollView/index.d.ts +9 -0
- package/react/ink-components/InkScrollView/index.js +18 -0
- package/react/ink-components/InkScrollView/utils/applyInkScrollInput.d.ts +10 -0
- package/react/ink-components/InkScrollView/utils/applyInkScrollInput.js +57 -0
- package/react/ink-components/InkScrollView/utils/bounds/getAbsoluteBounds.d.ts +7 -0
- package/react/ink-components/InkScrollView/utils/bounds/getAbsoluteBounds.js +19 -0
- package/react/ink-components/InkScrollView/utils/bounds/index.d.ts +3 -0
- package/react/ink-components/InkScrollView/utils/bounds/index.js +4 -0
- package/react/ink-components/InkScrollView/utils/bounds/isInside.d.ts +2 -0
- package/react/ink-components/InkScrollView/utils/bounds/isInside.js +7 -0
- package/react/ink-components/InkScrollView/utils/bounds/rowInViewport.d.ts +2 -0
- package/react/ink-components/InkScrollView/utils/bounds/rowInViewport.js +4 -0
- package/react/ink-components/InkScrollView/utils/inkScrollInputTarget.d.ts +11 -0
- package/react/ink-components/InkScrollView/utils/inkScrollInputTarget.js +0 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/allocateHeights.d.ts +6 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/allocateHeights.js +29 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/clampOffset.d.ts +1 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/clampOffset.js +7 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/computeScrollbarThumb.d.ts +5 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/computeScrollbarThumb.js +14 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/index.d.ts +10 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/index.js +11 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/offsetFromScrollbarClick.d.ts +1 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/offsetFromScrollbarClick.js +12 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/offsetFromScrollbarDrag.d.ts +1 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/offsetFromScrollbarDrag.js +8 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/resolveNextStickToBottomOffset.d.ts +8 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/resolveNextStickToBottomOffset.js +10 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/scrollByInputEventKey.d.ts +1 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/scrollByInputEventKey.js +15 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/scrollByKey.d.ts +9 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/scrollByKey.js +7 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/scrollByWheel.d.ts +2 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/scrollByWheel.js +8 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/stickToBottomOffset.d.ts +1 -0
- package/react/ink-components/InkScrollView/utils/scrollMath/stickToBottomOffset.js +4 -0
- package/react/ink-components/InkScrollView/utils/useInkScrollInput.d.ts +10 -0
- package/react/ink-components/InkScrollView/utils/useInkScrollInput.js +17 -0
- package/react/ink-components/InkTimer/InkTimer.d.ts +9 -0
- package/react/ink-components/InkTimer/InkTimer.js +26 -0
- package/react/ink-components/InkTimer/index.d.ts +1 -0
- package/react/ink-components/InkTimer/index.js +2 -0
- package/react/ink-components/index.d.ts +4 -0
- package/react/ink-components/index.js +34 -0
- package/vite-plugins/fileLinePlaceholderPlugin.d.ts +26 -0
- package/vite-plugins/fileLinePlaceholderPlugin.js +57 -0
- package/vite-plugins/index.d.ts +1 -0
- package/vite-plugins/index.js +2 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses a simple integer string and throws when parsing fails.
|
|
3
|
+
*/
|
|
4
|
+
export declare function parseSimpleInt(str: string, context?: object): number;
|
|
5
|
+
export declare function parseSimpleInt(str: null | undefined, context?: object): undefined;
|
|
6
|
+
export declare function parseSimpleInt(str: string | null | undefined, context?: object): number | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { parseSimpleIntOrNil as e } from "./parseSimpleIntOrNil.js";
|
|
2
|
+
//#region src/common/simpleInt/parseSimpleInt.ts
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
let n = `[InvalidValue] ${JSON.stringify({ "simple int in string": e })}${t === void 0 ? "" : ` ${JSON.stringify(t)}`}`;
|
|
5
|
+
throw Error(n);
|
|
6
|
+
}
|
|
7
|
+
function n(n, r) {
|
|
8
|
+
if (n != null) return e(n) ?? t(n, r);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as parseSimpleInt };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { isSimpleInt as e } from "./isSimpleInt.js";
|
|
2
|
+
//#region src/common/simpleInt/parseSimpleIntOrNil.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
if (t == null) return;
|
|
5
|
+
let n = t.trim();
|
|
6
|
+
if (e(n)) return Number.parseInt(n, 10);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as parseSimpleIntOrNil };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses a simple number string and throws when parsing fails.
|
|
3
|
+
*/
|
|
4
|
+
export declare function parseSimpleNumber(str: string, context?: object): number;
|
|
5
|
+
export declare function parseSimpleNumber(str: null | undefined, context?: object): undefined;
|
|
6
|
+
export declare function parseSimpleNumber(str: string | null | undefined, context?: object): number | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { parseSimpleNumberOrNil as e } from "./parseSimpleNumberOrNil.js";
|
|
2
|
+
//#region src/common/simpleInt/parseSimpleNumber.ts
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
let n = `[InvalidValue] ${JSON.stringify({ "simple number in string": e })}${t === void 0 ? "" : ` ${JSON.stringify(t)}`}`;
|
|
5
|
+
throw Error(n);
|
|
6
|
+
}
|
|
7
|
+
function n(n, r) {
|
|
8
|
+
if (n != null) return e(n) ?? t(n, r);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as parseSimpleNumber };
|
package/common/tap.d.ts
ADDED
package/common/tap.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isNonNil as e } from "../isNonNil.js";
|
|
2
|
+
//#region src/common/tree/buildTree.ts
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
function r(t, i, a) {
|
|
5
|
+
let o = `${i}-${a}`, s = n(t, o);
|
|
6
|
+
if (!s) return;
|
|
7
|
+
let { children: c, ...l } = s, u = c?.map((e, t) => r(e, o, t)).filter(e), d = { ...l };
|
|
8
|
+
return u !== void 0 && (d.children = u), d;
|
|
9
|
+
}
|
|
10
|
+
return t?.map((e, t) => r(e, "node", t)).filter(e) ?? [];
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as buildTree };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { isNonNil as e } from "../isNonNil.js";
|
|
2
|
+
//#region src/common/tree/mapTree.ts
|
|
3
|
+
function t(n, r) {
|
|
4
|
+
function i(e) {
|
|
5
|
+
let n = r(e);
|
|
6
|
+
if (n) return n.children &&= t(n.children, r), n;
|
|
7
|
+
}
|
|
8
|
+
return n.map(i).filter(e);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as mapTree };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { mapTree as e } from "./mapTree.js";
|
|
2
|
+
//#region src/common/tree/pruneTree.ts
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
function r(e) {
|
|
5
|
+
return n(e) ? !0 : e.children ? e.children.some(r) : !1;
|
|
6
|
+
}
|
|
7
|
+
return e(t, (e) => {
|
|
8
|
+
if (r(e)) return {
|
|
9
|
+
...e,
|
|
10
|
+
children: e.children
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { t as pruneTree };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/common/tree/treeToRows.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = [];
|
|
4
|
+
function n(e) {
|
|
5
|
+
let r = e[e.length - 1];
|
|
6
|
+
if (r) {
|
|
7
|
+
if (!r.children?.length) {
|
|
8
|
+
t.push({ nodes: e });
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
for (let t of r.children) n([...e, t]);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return e.forEach((e) => {
|
|
15
|
+
n([e]);
|
|
16
|
+
}), t;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { e as treeToRows };
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursively truncates every string inside a JSON-compatible value by character count.
|
|
3
|
+
*
|
|
4
|
+
* Arrays and objects keep their original structure. Non-string values are returned unchanged.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* truncateJsonStrings(
|
|
9
|
+
* { title: 'hello world', nested: ['你好世界'] },
|
|
10
|
+
* 10,
|
|
11
|
+
* )
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare function truncateJsonStrings<T>(value: T, maxChars: number): T;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { truncateString as e } from "./truncateString.js";
|
|
2
|
+
//#region src/common/truncateJsonStrings.ts
|
|
3
|
+
function t(n, r) {
|
|
4
|
+
return typeof n == "string" ? e(n, r) : Array.isArray(n) ? n.map((e) => t(e, r)) : n && typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([e, n]) => [e, t(n, r)])) : n;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as truncateJsonStrings };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Truncates a string by character count and appends a compact omitted-count suffix.
|
|
3
|
+
*
|
|
4
|
+
* The suffix format is `...(${formatSize(n)})`, where `n` is the omitted character count.
|
|
5
|
+
* If the input already fits, the original string is returned unchanged.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* truncateString('hello world', 5) // 'hello...(6)'
|
|
10
|
+
* truncateString('你好世界', 2) // '你好...(2)'
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare function truncateString(value: string, maxChars: number): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses a partial JSON prefix by trimming trailing incomplete members and
|
|
3
|
+
* minimally completing unfinished scalar values and open containers.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* tryParsePartialJson('{"message":"hel')
|
|
8
|
+
* // { message: 'hel' }
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare function tryParsePartialJson<T = unknown>(value: string): T | undefined;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
//#region src/common/tryParsePartialJson.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
let n = s(e, 0);
|
|
4
|
+
if (n >= e.length) return;
|
|
5
|
+
let r = t(e, n);
|
|
6
|
+
if (r.kind !== "fatal") return r.kind === "complete" ? s(e, r.index) === e.length ? p(e) : void 0 : p(e.slice(0, r.keepEnd) + r.append);
|
|
7
|
+
}
|
|
8
|
+
function t(e, t) {
|
|
9
|
+
let s = e.charCodeAt(t);
|
|
10
|
+
return s === 123 ? n(e, t + 1) : s === 91 ? r(e, t + 1) : s === 34 ? i(e, t + 1) : s === 116 ? a(e, t, "true") : s === 102 ? a(e, t, "false") : s === 110 ? a(e, t, "null") : s === 45 || l(s) ? o(e, t) : g;
|
|
11
|
+
}
|
|
12
|
+
function n(e, n) {
|
|
13
|
+
let r = s(e, n);
|
|
14
|
+
if (r >= e.length) return h(e.length, "}");
|
|
15
|
+
if (e.charCodeAt(r) === 125) return m(r + 1);
|
|
16
|
+
let a = r - 1;
|
|
17
|
+
for (; r < e.length;) {
|
|
18
|
+
if (e.charCodeAt(r) !== 34) return g;
|
|
19
|
+
let n = i(e, r + 1);
|
|
20
|
+
if (n.kind !== "complete" || (r = s(e, n.index), r >= e.length)) return h(a, "}");
|
|
21
|
+
if (e.charCodeAt(r) !== 58) return g;
|
|
22
|
+
if (r = s(e, r + 1), r >= e.length) return h(a, "}");
|
|
23
|
+
let o = t(e, r);
|
|
24
|
+
if (o.kind === "fatal") return g;
|
|
25
|
+
if (o.kind === "partial") return h(o.keepEnd, o.append + "}");
|
|
26
|
+
if (r = s(e, o.index), r >= e.length) return h(e.length, "}");
|
|
27
|
+
let c = e.charCodeAt(r);
|
|
28
|
+
if (c === 125) return m(r + 1);
|
|
29
|
+
if (c !== 44) return g;
|
|
30
|
+
if (a = r, r = s(e, r + 1), r >= e.length) return h(a, "}");
|
|
31
|
+
if (e.charCodeAt(r) === 125) return g;
|
|
32
|
+
}
|
|
33
|
+
return h(e.length, "}");
|
|
34
|
+
}
|
|
35
|
+
function r(e, n) {
|
|
36
|
+
let r = s(e, n);
|
|
37
|
+
if (r >= e.length) return h(e.length, "]");
|
|
38
|
+
if (e.charCodeAt(r) === 93) return m(r + 1);
|
|
39
|
+
for (; r < e.length;) {
|
|
40
|
+
let n = t(e, r);
|
|
41
|
+
if (n.kind === "fatal") return g;
|
|
42
|
+
if (n.kind === "partial") return h(n.keepEnd, n.append + "]");
|
|
43
|
+
if (r = s(e, n.index), r >= e.length) return h(e.length, "]");
|
|
44
|
+
let i = e.charCodeAt(r);
|
|
45
|
+
if (i === 93) return m(r + 1);
|
|
46
|
+
if (i !== 44) return g;
|
|
47
|
+
let a = r;
|
|
48
|
+
if (r = s(e, r + 1), r >= e.length) return h(a, "]");
|
|
49
|
+
if (e.charCodeAt(r) === 93) return g;
|
|
50
|
+
}
|
|
51
|
+
return h(e.length, "]");
|
|
52
|
+
}
|
|
53
|
+
function i(e, t) {
|
|
54
|
+
let n = t;
|
|
55
|
+
for (; n < e.length;) {
|
|
56
|
+
let t = e.charCodeAt(n);
|
|
57
|
+
if (t === 34) return m(n + 1);
|
|
58
|
+
if (t === 92) {
|
|
59
|
+
if (n += 1, n >= e.length) return h(e.length, "\"\"");
|
|
60
|
+
let t = e.charCodeAt(n);
|
|
61
|
+
if (t === 117) {
|
|
62
|
+
let t = 0;
|
|
63
|
+
for (n += 1; t < 4 && n < e.length;) {
|
|
64
|
+
if (!u(e.charCodeAt(n))) return g;
|
|
65
|
+
t += 1, n += 1;
|
|
66
|
+
}
|
|
67
|
+
if (t < 4) return h(e.length, "0".repeat(4 - t) + "\"");
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if (!d(t)) return g;
|
|
71
|
+
n += 1;
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
if (t <= 31) return g;
|
|
75
|
+
n += 1;
|
|
76
|
+
}
|
|
77
|
+
return h(e.length, "\"");
|
|
78
|
+
}
|
|
79
|
+
function a(e, t, n) {
|
|
80
|
+
for (let r = 0; r < n.length; r += 1) {
|
|
81
|
+
let i = t + r;
|
|
82
|
+
if (i >= e.length) return h(e.length, n.slice(r));
|
|
83
|
+
if (e.charCodeAt(i) !== n.charCodeAt(r)) return g;
|
|
84
|
+
}
|
|
85
|
+
let r = e.charCodeAt(t + n.length);
|
|
86
|
+
return Number.isNaN(r) || f(r) ? m(t + n.length) : g;
|
|
87
|
+
}
|
|
88
|
+
function o(e, t) {
|
|
89
|
+
let n = t;
|
|
90
|
+
if (e.charCodeAt(n) === 45 && (n += 1, n >= e.length)) return h(e.length, "0");
|
|
91
|
+
let r = e.charCodeAt(n);
|
|
92
|
+
if (!l(r)) return g;
|
|
93
|
+
if (r === 48) {
|
|
94
|
+
if (n += 1, l(e.charCodeAt(n))) return g;
|
|
95
|
+
} else for (n += 1; n < e.length && l(e.charCodeAt(n));) n += 1;
|
|
96
|
+
if (e.charCodeAt(n) === 46) {
|
|
97
|
+
if (n += 1, n >= e.length) return h(e.length, "0");
|
|
98
|
+
if (!l(e.charCodeAt(n))) return g;
|
|
99
|
+
for (n += 1; n < e.length && l(e.charCodeAt(n));) n += 1;
|
|
100
|
+
}
|
|
101
|
+
let i = e.charCodeAt(n);
|
|
102
|
+
if (i === 101 || i === 69) {
|
|
103
|
+
if (n += 1, n >= e.length) return h(e.length, "0");
|
|
104
|
+
let t = e.charCodeAt(n);
|
|
105
|
+
if ((t === 43 || t === 45) && (n += 1, n >= e.length)) return h(e.length, "0");
|
|
106
|
+
if (!l(e.charCodeAt(n))) return g;
|
|
107
|
+
for (n += 1; n < e.length && l(e.charCodeAt(n));) n += 1;
|
|
108
|
+
}
|
|
109
|
+
let a = e.charCodeAt(n);
|
|
110
|
+
return Number.isNaN(a) || f(a) ? m(n) : g;
|
|
111
|
+
}
|
|
112
|
+
function s(e, t) {
|
|
113
|
+
for (; t < e.length;) {
|
|
114
|
+
if (!c(e.charCodeAt(t))) return t;
|
|
115
|
+
t += 1;
|
|
116
|
+
}
|
|
117
|
+
return t;
|
|
118
|
+
}
|
|
119
|
+
function c(e) {
|
|
120
|
+
return e === 32 || e === 9 || e === 10 || e === 13;
|
|
121
|
+
}
|
|
122
|
+
function l(e) {
|
|
123
|
+
return e >= 48 && e <= 57;
|
|
124
|
+
}
|
|
125
|
+
function u(e) {
|
|
126
|
+
return l(e) || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
127
|
+
}
|
|
128
|
+
function d(e) {
|
|
129
|
+
return e === 34 || e === 92 || e === 47 || e === 98 || e === 102 || e === 110 || e === 114 || e === 116;
|
|
130
|
+
}
|
|
131
|
+
function f(e) {
|
|
132
|
+
return c(e) || e === 44 || e === 93 || e === 125;
|
|
133
|
+
}
|
|
134
|
+
function p(e) {
|
|
135
|
+
try {
|
|
136
|
+
return JSON.parse(e);
|
|
137
|
+
} catch {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
function m(e) {
|
|
142
|
+
return {
|
|
143
|
+
index: e,
|
|
144
|
+
kind: "complete"
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function h(e, t) {
|
|
148
|
+
return {
|
|
149
|
+
append: t,
|
|
150
|
+
keepEnd: e,
|
|
151
|
+
kind: "partial"
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
var g = { kind: "fatal" };
|
|
155
|
+
//#endregion
|
|
156
|
+
export { e as tryParsePartialJson };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { tsLayer as e } from "./layers/tsLayer.js";
|
|
2
|
+
import { configLayer as t } from "./layers/configLayer.js";
|
|
3
|
+
import { jsLayer as n } from "./layers/jsLayer.js";
|
|
4
|
+
import { prettierLayer as r } from "./layers/prettierLayer.js";
|
|
5
|
+
import { reactHookLayer as i } from "./layers/reactHookLayer.js";
|
|
6
|
+
import { testLayer as a } from "./layers/testLayer.js";
|
|
7
|
+
//#region src/eslint-config/eslintPreset.ts
|
|
8
|
+
var o = [
|
|
9
|
+
{
|
|
10
|
+
files: ["**/*.{ts,tsx}"],
|
|
11
|
+
...e
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
files: ["**/*.{js,mjs,cjs}"],
|
|
15
|
+
...n
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
files: ["**/use*.{ts,tsx}"],
|
|
19
|
+
...i
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
files: ["**/*.{test,spec}.{ts,tsx}"],
|
|
23
|
+
...a
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
files: [
|
|
27
|
+
"**/*.config.ts",
|
|
28
|
+
"**/*.config.mjs",
|
|
29
|
+
"scripts/**"
|
|
30
|
+
],
|
|
31
|
+
...t
|
|
32
|
+
},
|
|
33
|
+
r
|
|
34
|
+
];
|
|
35
|
+
//#endregion
|
|
36
|
+
export { o as eslintPreset };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './utils/withRuleOverrides.ts';
|
|
2
|
+
export declare const freewindEslint: {
|
|
3
|
+
preset: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
|
|
4
|
+
tsLayer: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
|
|
5
|
+
jsLayer: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
|
|
6
|
+
testLayer: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
|
|
7
|
+
reactHookLayer: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
|
|
8
|
+
configLayer: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
|
|
9
|
+
prettierLayer: {
|
|
10
|
+
rules: Record<string, 0 | "off">;
|
|
11
|
+
} & {
|
|
12
|
+
name: "config-prettier";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { tsLayer as e } from "./layers/tsLayer.js";
|
|
2
|
+
import { withRuleOverrides as t } from "./utils/withRuleOverrides.js";
|
|
3
|
+
import { configLayer as n } from "./layers/configLayer.js";
|
|
4
|
+
import { jsLayer as r } from "./layers/jsLayer.js";
|
|
5
|
+
import { prettierLayer as i } from "./layers/prettierLayer.js";
|
|
6
|
+
import { reactHookLayer as a } from "./layers/reactHookLayer.js";
|
|
7
|
+
import { testLayer as o } from "./layers/testLayer.js";
|
|
8
|
+
import { eslintPreset as s } from "./eslintPreset.js";
|
|
9
|
+
//#region src/eslint-config/index.ts
|
|
10
|
+
var c = {
|
|
11
|
+
preset: s,
|
|
12
|
+
tsLayer: e,
|
|
13
|
+
jsLayer: r,
|
|
14
|
+
testLayer: o,
|
|
15
|
+
reactHookLayer: a,
|
|
16
|
+
configLayer: n,
|
|
17
|
+
prettierLayer: i
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { c as freewindEslint, t as withRuleOverrides };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { tsLayer as e } from "./tsLayer.js";
|
|
2
|
+
import { withRuleOverrides as t } from "../utils/withRuleOverrides.js";
|
|
3
|
+
//#region src/eslint-config/layers/configLayer.ts
|
|
4
|
+
var n = {
|
|
5
|
+
...e,
|
|
6
|
+
rules: t(e.rules, {
|
|
7
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
8
|
+
"@typescript-eslint/no-empty-object-type": "off",
|
|
9
|
+
"@typescript-eslint/no-unsafe-function-type": "off",
|
|
10
|
+
"@typescript-eslint/no-wrapper-object-types": "off",
|
|
11
|
+
"@typescript-eslint/no-restricted-types": "off",
|
|
12
|
+
"no-default-export/no-default-export": "off"
|
|
13
|
+
})
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as configLayer };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { tsLayer as e } from "./tsLayer.js";
|
|
2
|
+
//#region src/eslint-config/layers/jsLayer.ts
|
|
3
|
+
function t(e = {}) {
|
|
4
|
+
return Object.fromEntries(Object.entries(e).filter(([e]) => !e.startsWith("@typescript-eslint/")));
|
|
5
|
+
}
|
|
6
|
+
var n = {
|
|
7
|
+
...e,
|
|
8
|
+
languageOptions: {
|
|
9
|
+
...e.languageOptions,
|
|
10
|
+
parserOptions: {
|
|
11
|
+
...e.languageOptions?.parserOptions,
|
|
12
|
+
program: null,
|
|
13
|
+
project: !1,
|
|
14
|
+
projectService: !1
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
rules: t(e.rules)
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { n as jsLayer };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { tsLayer as e } from "./tsLayer.js";
|
|
2
|
+
import { withRuleOverrides as t } from "../utils/withRuleOverrides.js";
|
|
3
|
+
//#region src/eslint-config/layers/reactHookLayer.ts
|
|
4
|
+
var n = {
|
|
5
|
+
...e,
|
|
6
|
+
rules: t(e.rules, {
|
|
7
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
8
|
+
"@typescript-eslint/no-empty-object-type": "off",
|
|
9
|
+
"@typescript-eslint/no-unsafe-function-type": "off",
|
|
10
|
+
"@typescript-eslint/no-wrapper-object-types": "off",
|
|
11
|
+
"@typescript-eslint/no-restricted-types": "off",
|
|
12
|
+
"@typescript-eslint/explicit-module-boundary-types": "off"
|
|
13
|
+
})
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as reactHookLayer };
|