Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/node_modules/stylelint/lib/formatters/jsonFormatter.js')
-rw-r--r--assets/node_modules/stylelint/lib/formatters/jsonFormatter.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/assets/node_modules/stylelint/lib/formatters/jsonFormatter.js b/assets/node_modules/stylelint/lib/formatters/jsonFormatter.js
deleted file mode 100644
index 427e540..0000000
--- a/assets/node_modules/stylelint/lib/formatters/jsonFormatter.js
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-/**
- * Omit any properties starting with `_`, which are fake-private
- *
- * @param {import('stylelint').StylelintResult[]} results
- * @returns {string}
- */
-module.exports = function jsonFormatter(results) {
- const cleanedResults = results.map((result) =>
- Object.entries(result)
- .filter(([key]) => !key.startsWith('_'))
- .reduce((/** @type {object} */ obj, [key, value]) => {
- obj[key] = value;
-
- return obj;
- }, {}),
- );
-
- return JSON.stringify(cleanedResults);
-};