From 1c1055e22db1dbb1628cc55b9996009a3d665b35 Mon Sep 17 00:00:00 2001 From: splincode Date: Tue, 27 Aug 2024 17:31:42 +0300 Subject: [PATCH] fix: message --- .../prettier-config/plugins/prettier-plugin-sort-package.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/prettier-config/plugins/prettier-plugin-sort-package.js b/projects/prettier-config/plugins/prettier-plugin-sort-package.js index f7835b7c..6d62b871 100644 --- a/projects/prettier-config/plugins/prettier-plugin-sort-package.js +++ b/projects/prettier-config/plugins/prettier-plugin-sort-package.js @@ -7,6 +7,10 @@ const parser = parsers['json-stringify']; exports.parsers = { 'json-stringify': { ...parser, + /** + * @param {string} text + * @param {{ filepath: string; }} options + */ async parse(text, options) { if (options.filepath?.endsWith('package-lock.json')) { return parser.parse(text, options);