From b0824f6c7c69cdf7d70d831626be37f606d70f73 Mon Sep 17 00:00:00 2001 From: Jonathan Fuchs Date: Mon, 15 Nov 2021 09:11:09 -0800 Subject: [PATCH] Updates no-system-props rule to always exclude the 'variant' prop no matter which component. --- .changeset/orange-tools-begin.md | 5 +++++ src/rules/__tests__/no-system-props.test.js | 3 ++- src/rules/no-system-props.js | 12 ++++++------ 3 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 .changeset/orange-tools-begin.md diff --git a/.changeset/orange-tools-begin.md b/.changeset/orange-tools-begin.md new file mode 100644 index 00000000..9995cb76 --- /dev/null +++ b/.changeset/orange-tools-begin.md @@ -0,0 +1,5 @@ +--- +'eslint-plugin-primer-react': minor +--- + +Updates no-system-props rule to always exclude the 'variant' prop no matter which component. diff --git a/src/rules/__tests__/no-system-props.test.js b/src/rules/__tests__/no-system-props.test.js index 56ebb5a6..5053fe05 100644 --- a/src/rules/__tests__/no-system-props.test.js +++ b/src/rules/__tests__/no-system-props.test.js @@ -18,7 +18,8 @@ ruleTester.run('no-system-props', rule, { `import {Button} from '@primer/components';