From 0e72eb69e7df71fc36f4bfafc8992024540d8a16 Mon Sep 17 00:00:00 2001 From: Senja Jarva Date: Sun, 4 Sep 2022 19:14:56 +0300 Subject: [PATCH] [Fix] markdownlint errors in rule documentation --- docs/rules/no-unknown-property.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/rules/no-unknown-property.md b/docs/rules/no-unknown-property.md index 3c8a9699e7..64cd0b62be 100644 --- a/docs/rules/no-unknown-property.md +++ b/docs/rules/no-unknown-property.md @@ -56,24 +56,23 @@ var AtomPanel = ; - `enabled`: for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0. - `ignore`: optional array of property and attribute names to ignore during validation. - If you are using a library that passes something as a prop to JSX elements, it is recommended to add those props to the ignored properties. For example, if you use [emotion](https://emotion.sh/docs/introduction) and its [`css` prop](https://emotion.sh/docs/css-prop)), add the following to your `.eslintrc` config file: + ```js ... "react/no-unknown-property": ['error', { ignore: ['css'] }] ... - ``` Now, the following code passes: + ```js var StyledDiv =
``` - ## When Not To Use It If you are not using JSX you can disable this rule.