-
#174
d9832b8
Thanks @langermank! - - Removeno-deprecated-colors
plugin- Remove dependency on
primer/primitives
- Remove dependency on
-
#172
8e24d66
Thanks @langermank! - [Breaking] Removenew-color-css-vars-have-fallback
- #156
15cfbb4
Thanks @broccolinisoup! - Add no-deprecated-props rule
-
#166
4c3d9b4
Thanks @chadfawcett! - Move eslint-plugin-github to dependencies -
#152
7baeb96
Thanks @siddharthkp! - no-system-props: Add option to ignore specific component names
-
#148
523e169
Thanks @siddharthkp! - no-system-props: skip html elements -
#149
ca14bb6
Thanks @siddharthkp! - no-system-props: allow maxWidth prop for Truncate
- #145
0369cb8
Thanks @siddharthkp! - no-system-props: Addposition
as allowed prop forDialog
- #129
eb04624
Thanks @joshblack! - Add no-deprecated-entrypoints rule to lint against deprecated import usage in @primer/react
- #133
5cc9630
Thanks @siddharthkp! - no-system-props: Add alignContent to allowed props for Button
- #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
- #81
821ef4d
Thanks @langermank! - New rule:new-color-css-vars
to find/replace legacy CSS color vars in sx prop
- #76
1750256
Thanks @joshblack! - Update the no-system-props rule to exclude theborder
prop for theBlankslate
component from@primer/react
.
- #74
c07df5c
Thanks @TylerJDev! - Adds support forMarkdownEditor.Footer
indirect-slot-children
rule
- #51
a65aa32
Thanks @broccolinisoup! - Adda11y-tooltip-interactive-trigger
- #66
d1df609
Thanks @TylerJDev! - Adda11y-explicit-heading
rule
- #67
4dfdb47
Thanks @TylerJDev! - * Updates component mapping, addscomponents.js
- Bumps
eslint-plugin-github
andeslint-plugin-jsx-a11y
- Fixes bug in
a11y-explicit-heading
when using spread props, or variable foras
- Bumps
- #72
522b9cc
Thanks @TylerJDev! - RemovesLink
,Spinner
andTabNav.Link
from component mapping
- #73
974d9e8
Thanks @TylerJDev! - * FixesnonInteractiveLink
rule for links that pass values through JSX rather than a string- Adds optional chaining to
getJSXOpeningElementAttribute
to avoid error when noname
is present
- Adds optional chaining to
- #49
ad22b85
Thanks @colebemis! -direct-slot-children
: Add checks forMarkdownEditor
slot children
- #47
9964e4e
Thanks @colebemis! - - Update the no-system-props rule to properly check subcomponents for system props- Adds valid sucomponent props to the allowlist
- #45
a39e34d
Thanks @colebemis! - Moredirect-slot-children
fixes:- Fix bug related self-closing JSX tags
- Allow slot children to accept multiple parents (ex:
ActionList.Item
orActionList.LinkItem
) - Add
SplitPageLayout
andNavList
to the slot map - Ignore
MarkdownEditor
because it's still a draft
- #43
943e49a
Thanks @colebemis! -direct-slot-children
fixes
- #39
96a675d
Thanks @colebemis! - Adddirect-slot-children
rule
-
#34
efd4f67
Thanks @khiga8! - Provide component mapping forgithub/react
preset and add dependencies toeslint-plugin-github
andeslint-plugin-jsx-a11y
.eslint
peer dependency is now^8.0.1
.
- #31
a64413a
Thanks @colebemis! -no-system-props
: Always ignoresize
prop
- #27
19cbc53
Thanks @colebemis! -no-system-props
: Ignorebg
prop onPointerBox
component
- #24
e5565ae
Thanks @colebemis! - Replace references to@primer/components
with@primer/react
- #22
87d0fd6
Thanks @dmarcey! - Ignore non-literal, non-string arguments tothemeGet
inno-deprecated-colors
rule
- #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.
- #15
9b96147
Thanks @colebemis! - Theno-deprecated-colors
now warns about deprecated and removed color variables
-
#10
31d069b
Thanks @colebemis! - Add acheckAllStrings
option to theno-deprecated-colors
rule.If
checkAllStrings
is set totrue
, theno-deprecated-colors
rule will check for deprecated colors in all strings. This is useful for catching uses of deprecated colors outside system props and thesx
prop./* eslint primer-react/no-deprecated-colors: ["warn", {"checkAllStrings": true}] */ import {Box} from '@primer/react' function ExampleComponent() { const styles = { // Enabling `checkAllStrings` will find deprecated colors used like this: color: 'text.primary', } return <Box sx={styles}>Hello</Box> }
- #7
d9dfb8d
Thanks @colebemis! - AddskipImportCheck
option. By default, theno-deprecated-colors
rule will only check for deprecated colors used in functions and components that are imported from@primer/react
. You can disable this behavior by settingskipImportCheck
totrue
. This is useful for linting custom components that pass color-related props down to Primer React components.
-
#6
dd14594
Thanks @colebemis! - Theno-deprecated-colors
rule can now find deprecated colors in the following cases:-
Nested
sx
properties:<Box sx={{'&:hover': {bg: 'bg.primary'}}}>
-
Functions in
sx
prop:<Box sx={{boxShadow: theme => `0 1px 2px ${theme.colors.text.primary}`}}>
-
- #3
8e9144f
Thanks @colebemis! - Add type metadata to no-deprecated-colors rule