- #255
fd2cb55
Thanks @joshblack! - Update no-wildcard-imports rule to no longer migrate the TokenSizeKeys import
- #253
456bf4d
Thanks @joshblack! - Update no-wildcard-imports rule to move ButtonBase to@primer/react/experimental
- #249
f8c8a9d
Thanks @joshblack! - Update no-wildcard-imports rule to not create separate imports for type only imports. This prevents an issue downstream with autofixers
- #242
e139c02
Thanks @joshblack! - Update no-wildcard-imports rule to work for imports that specify value and type imports
-
#239
3b2e023
Thanks @joshblack! - Update use-deprecated-from-deprecated rule to include prop types -
#234
9a58afb
Thanks @joshblack! - Update no-wildcard-imports rule to use local name for updated imports
- #237
f072227
Thanks @lukasoppermann! - no-system-props: Addbg
prop toProgressBar.Item
- #225
b4698df
Thanks @joshblack! - Add eslint rule for discouraging use of wildcard imports from @primer/react
- #218
e55d3d3
Thanks @iansan5653! - Fix incorrect rule violations on components imported from @primer/react-brand
- #216
55c5256
Thanks @iansan5653! - Fix invalid rule names
-
#207
baff792
Thanks @iansan5653! - [Breaking] Addsno-unnecessary-components
lint rule and enables it by default. This may raise new (typically autofixable) lint errors in existing codebases. -
#211
3f92cd4
Thanks @camchenry! - [Breaking] Addsprefer-action-list-item-onselect
lint rule and enables it by default. This may raise new auto-fixable lint errors or type-checking errors in existing codebases.
- #204
e2cab87
Thanks @joshblack! - Add use-deprecated-from-deprecated rule
- #212
78d4600
Thanks @langermank! - no-system-props: Addpadding
andgap
as exceptions forStack
- #103
8617a66
Thanks @broccolinisoup! - Add a11y-use-next-tooltip rule that warns against using Tooltip v1 (Not the accessible one)
- #202
0293fdc
Thanks @keithamus! - Allow ActionMenu.Button alignContent prop
- #185
fea642d
Thanks @broccolinisoup! - Add a rule that warns against removingunsafeDisableTooltip
prop
-
#195
ccc2e99
Thanks @khiga8! - Clean up docs for link lint rule -
#193
5fc19f6
Thanks @khiga8! - Update link lint rule to skip Link with className
-
#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