some deletions
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / property-no-unknown / index.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/rules/property-no-unknown/index.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/rules/property-no-unknown/index.js
deleted file mode 100644 (file)
index f119abd..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-"use strict";
-
-const _ = require("lodash");
-const isCustomProperty = require("../../utils/isCustomProperty");
-const isStandardSyntaxDeclaration = require("../../utils/isStandardSyntaxDeclaration");
-const isStandardSyntaxProperty = require("../../utils/isStandardSyntaxProperty");
-const optionsMatches = require("../../utils/optionsMatches");
-const postcss = require("postcss");
-const properties = require("known-css-properties").all;
-const report = require("../../utils/report");
-const ruleMessages = require("../../utils/ruleMessages");
-const validateOptions = require("../../utils/validateOptions");
-
-const ruleName = "property-no-unknown";
-
-const messages = ruleMessages(ruleName, {
-  rejected: property => `Unexpected unknown property "${property}"`
-});
-
-const rule = function(actual, options) {
-  return (root, result) => {
-    const validOptions = validateOptions(
-      result,
-      ruleName,
-      { actual },
-      {
-        actual: options,
-        possible: {
-          ignoreProperties: [_.isString],
-          checkPrefixed: _.isBoolean
-        },
-        optional: true
-      }
-    );
-
-    if (!validOptions) {
-      return;
-    }
-
-    const shouldCheckPrefixed = _.get(options, "checkPrefixed");
-
-    root.walkDecls(decl => {
-      const prop = decl.prop;
-
-      if (!isStandardSyntaxProperty(prop)) {
-        return;
-      }
-      if (!isStandardSyntaxDeclaration(decl)) {
-        return;
-      }
-      if (isCustomProperty(prop)) {
-        return;
-      }
-
-      if (!shouldCheckPrefixed && postcss.vendor.prefix(prop)) {
-        return;
-      }
-
-      if (optionsMatches(options, "ignoreProperties", prop)) {
-        return;
-      }
-
-      if (properties.indexOf(prop.toLowerCase()) !== -1) {
-        return;
-      }
-
-      report({
-        message: messages.rejected(prop),
-        node: decl,
-        result,
-        ruleName
-      });
-    });
-  };
-};
-
-rule.ruleName = ruleName;
-rule.messages = messages;
-module.exports = rule;