Skip to content

Releases: primer/eslint-plugin-primer-react

v4.0.4

29 Nov 21:25
b457b77
Compare
Choose a tag to compare

Patch Changes

  • #122 3bc226a Thanks @lukasoppermann! - New rule: new-color-css-vars-have-fallback: checks that if a new color var is used, it has a fallback value

v4.0.3

09 Oct 17:59
9d14e64
Compare
Choose a tag to compare

Patch Changes

  • #81 821ef4d Thanks @langermank! - New rule: new-color-css-vars to find/replace legacy CSS color vars in sx prop

v4.0.2

19 Sep 17:06
0cb5f8c
Compare
Choose a tag to compare

Patch Changes

  • #76 1750256 Thanks @joshblack! - Update the no-system-props rule to exclude the border prop for the Blankslate component from @primer/react.

v4.0.1

07 Aug 20:31
d9b0fd1
Compare
Choose a tag to compare

Patch Changes

  • #74 c07df5c Thanks @TylerJDev! - Adds support for MarkdownEditor.Footer in direct-slot-children rule

v4.0.0

01 Aug 17:42
5dce101
Compare
Choose a tag to compare

Major Changes

Minor Changes

  • #67 4dfdb47 Thanks @TylerJDev! - * Updates component mapping, adds components.js
    • Bumps eslint-plugin-github and eslint-plugin-jsx-a11y
    • Fixes bug in a11y-explicit-heading when using spread props, or variable for as

Patch Changes

  • #72 522b9cc Thanks @TylerJDev! - Removes Link, Spinner and TabNav.Link from component mapping

  • #73 974d9e8 Thanks @TylerJDev! - * Fixes nonInteractiveLink rule for links that pass values through JSX rather than a string

    • Adds optional chaining to getJSXOpeningElementAttribute to avoid error when no name is present

v3.0.0

14 Apr 21:53
b2ee59f
Compare
Choose a tag to compare

Major Changes

  • #49 ad22b85 Thanks @colebemis! - direct-slot-children: Add checks for MarkdownEditor slot children

v2.0.3

22 Mar 23:04
e6ce287
Compare
Choose a tag to compare

Patch Changes

  • #47 9964e4e Thanks @colebemis! - - Update the no-system-props rule to properly check subcomponents for system props
    • Adds valid sucomponent props to the allowlist

v2.0.2

22 Mar 18:46
bdc64e8
Compare
Choose a tag to compare

Patch Changes

  • #45 a39e34d Thanks @colebemis! - More direct-slot-children fixes:
    • Fix bug related self-closing JSX tags
    • Allow slot children to accept multiple parents (ex: ActionList.Item or ActionList.LinkItem)
    • Add SplitPageLayout and NavList to the slot map
    • Ignore MarkdownEditor because it's still a draft

v2.0.1

22 Mar 17:37
f5e5287
Compare
Choose a tag to compare

Patch Changes

v2.0.0

22 Mar 17:14
2ab2a03
Compare
Choose a tag to compare

Major Changes

Minor Changes