eslint-plugin-primer-react 0.7.2 → 0.7.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # eslint-plugin-primer-react
2
2
 
3
+ ## 0.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#31](https://github.com/primer/eslint-plugin-primer-react/pull/31) [`a64413a`](https://github.com/primer/eslint-plugin-primer-react/commit/a64413aef359e8f16ca088f1975c5e2411c5ffb3) Thanks [@colebemis](https://github.com/colebemis)! - `no-system-props`: Always ignore `size` prop
8
+
9
+ ## 0.7.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#27](https://github.com/primer/eslint-plugin-primer-react/pull/27) [`19cbc53`](https://github.com/primer/eslint-plugin-primer-react/commit/19cbc530471f11c4c053ce830e23cb72f36b2c16) Thanks [@colebemis](https://github.com/colebemis)! - `no-system-props`: Ignore `bg` prop on `PointerBox` component
14
+
3
15
  ## 0.7.2
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-primer-react",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
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,14 +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'])]
18
+ ['PointerBox', new Set(['bg'])]
21
19
  ])
22
20
 
23
- const alwaysExcludedProps = new Set(['variant'])
21
+ const alwaysExcludedProps = new Set(['variant', 'size'])
24
22
 
25
23
  module.exports = {
26
24
  meta: {