Skip to content

Releases: primer/eslint-plugin-primer-react

v1.0.1

05 Aug 20:09
191d35e
Compare
Choose a tag to compare

Patch Changes

v1.0.0

25 Jul 18:36
118cc76
Compare
Choose a tag to compare

Major Changes

  • #34 efd4f67 Thanks @khiga8! - Provide component mapping for github/react preset and add dependencies to eslint-plugin-github and eslint-plugin-jsx-a11y.

    eslint peer dependency is now ^8.0.1.

v0.7.4

17 Feb 17:23
0156ef2
Compare
Choose a tag to compare

Patch Changes

v0.7.3

11 Jan 21:52
f8381ee
Compare
Choose a tag to compare

Patch Changes

v0.7.2

08 Dec 21:20
b29b255
Compare
Choose a tag to compare

Patch Changes

v0.7.1

06 Dec 21:35
895665e
Compare
Choose a tag to compare

Patch Changes

  • #22 87d0fd6 Thanks @dmarcey! - Ignore non-literal, non-string arguments to themeGet in no-deprecated-colors rule

v0.7.0

15 Nov 17:53
b086a62
Compare
Choose a tag to compare

Minor Changes

  • #18 f0c7a3d Thanks @jfuchs! - Introduced an option on no-system-props to include utility components (includeUtilityComponents).

  • #20 b0824f6 Thanks @jfuchs! - Updates no-system-props rule to always exclude the 'variant' prop no matter which component.

v0.6.1

14 Oct 00:49
c93e31e
Compare
Choose a tag to compare

Patch Changes

  • #15 9b96147 Thanks @colebemis! - The no-deprecated-colors now warns about deprecated and removed color variables

v0.6.0

13 Oct 22:09
de68a47
Compare
Choose a tag to compare

Minor Changes

v0.5.0

24 Sep 22:47
f408f42
Compare
Choose a tag to compare

Minor Changes

  • #10 31d069b Thanks @colebemis! - Add a checkAllStrings option to the no-deprecated-colors rule.

    If checkAllStrings is set to true, the no-deprecated-colors rule will check for deprecated colors in all strings. This is useful for catching uses of deprecated colors outside system props and the sx prop.

    /* eslint primer-react/no-deprecated-colors: ["warn", {"checkAllStrings": true}] */
    import {Box} from '@primer/components'
    
    function ExampleComponent() {
      const styles = {
        // Enabling `checkAllStrings` will find deprecated colors used like this:
        color: 'text.primary'
      }
      return <Box sx={styles}>Hello</Box>
    }