diff --git a/docs/rules/rrd/props-drilling.md b/docs/rules/rrd/props-drilling.md index 8d5e010d..a2ad7c6f 100644 --- a/docs/rules/rrd/props-drilling.md +++ b/docs/rules/rrd/props-drilling.md @@ -16,16 +16,16 @@ Props drilling refers to the practice of passing props from a parent component t ## 😱 Examples of code for which this rule will throw a warning ::: warning -The following code forwards the user prop to ChildComponent without modifying it. What does the user prop represent? It should be handled differently. +The following code forwards the `items` prop to `ChildComponent` without modifying it. What does the `items` prop represent? It should be handled differently. ::: ```vue ``` @@ -37,13 +37,12 @@ Refactor the code to avoid drilling the prop unmodified. You can either use the ```vue ``` diff --git a/src/rules/rrd/propsDrilling.test.ts b/src/rules/rrd/propsDrilling.test.ts index 687e38f9..783d1474 100644 --- a/src/rules/rrd/propsDrilling.test.ts +++ b/src/rules/rrd/propsDrilling.test.ts @@ -27,10 +27,14 @@ describe('checkPropsDrilling', () => { const script = { content: ` + + `, } as SFCScriptBlock const filePath = 'component.vue'