# all files / rules/ jsx-no-jsx-as-prop.js

50% Statements 1/2
100% Branches 0/0
0% Functions 0/1
50% Lines 1/2

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    1×

     "use strict";

    module.exports = require("../utils/common").createRule(
      "Prevent JSX as JSX prop value",
      "JSX attribute values should not contain other JSX",
      function(node) {
        return node.type === "JSXElement";
      }
    );