eslint-plugin-primer-react 0.7.3 → 0.7.4-rc.b273d9c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-primer-react",
3
- "version": "0.7.3",
3
+ "version": "0.7.4-rc.b273d9c",
4
4
  "description": "ESLint rules for Primer React",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -19,7 +19,8 @@ ruleTester.run('no-system-props', rule, {
19
19
  `import {Box} from '@primer/react'; <Box width={200} />`,
20
20
  `import {ProgressBar} from '@primer/react'; <ProgressBar bg="howdy" />`,
21
21
  `import {Button} from '@primer/react'; <Button {...someExpression()} />`,
22
- `import {Button} from '@primer/react'; <Button variant="large" />`
22
+ `import {Button} from '@primer/react'; <Button variant="large" />`,
23
+ `import {Button} from '@primer/react'; <Button size="large" />`,
23
24
  ],
24
25
  invalid: [
25
26
  {
@@ -13,15 +13,12 @@ const utilityComponents = new Set(['Box', 'Text'])
13
13
  // Components for which we allow a set of prop names
14
14
  const excludedComponentProps = new Map([
15
15
  ['AnchoredOverlay', new Set(['width', 'height'])],
16
- ['Avatar', new Set(['size'])],
17
16
  ['Dialog', new Set(['width', 'height'])],
18
17
  ['ProgressBar', new Set(['bg'])],
19
- ['Spinner', new Set(['size'])],
20
- ['StyledOcticon', new Set(['size'])],
21
18
  ['PointerBox', new Set(['bg'])]
22
19
  ])
23
20
 
24
- const alwaysExcludedProps = new Set(['variant'])
21
+ const alwaysExcludedProps = new Set(['variant', 'size'])
25
22
 
26
23
  module.exports = {
27
24
  meta: {