Skip to content

Commit 168a187

Browse files
authored
Upgrade to eslint v9 (#1187)
* upgrade to eslint v9 * add storybook to ci workflow * add back import/no-unresolved * skip the axe clean file too * remove rule again * fix some additional issues * add a changeset * fix copilot feedback * address one more piece of feedback
1 parent 7bf8d6e commit 168a187

File tree

188 files changed

+6743
-9792
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+6743
-9792
lines changed

.changeset/spotty-geckos-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react-brand': patch
3+
---
4+
5+
No-op upgrade to our internal linting toolchain (ESLint v9), which affects the source code organization of this package. No functional impact is expected.

.eslintrc.js

Lines changed: 0 additions & 190 deletions
This file was deleted.

apps/next-docs/.eslintrc.cjs

Lines changed: 0 additions & 31 deletions
This file was deleted.

apps/next-docs/content/components/AnchorNav/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ thumbnail_darkMode: '/images/thumbnails/anchor-nav-thumbnail-dark.png'
1212
---
1313

1414
import {Label} from '@primer/react'
15-
import {AnchorNavChildrenProp} from './react.tsx'
15+
import {AnchorNavChildrenProp} from './react'
1616

1717
```js
1818
import {AnchorNav} from '@primer/react-brand'

apps/next-docs/content/components/Avatar/react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ storybook: '/brand/storybook/?path=/story/components-Avatar--playground'
1111

1212
import {Label} from '@primer/react'
1313

14-
import {AvatarSizesProp, AvatarShapesProp} from './react.tsx'
14+
import {AvatarSizesProp, AvatarShapesProp} from './react'
1515

1616
```js
1717
import {Avatar, Stack} from '@primer/react-brand'

apps/next-docs/content/components/Bento/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
BentoOrderProps,
2020
BentoPaddingProps,
2121
BentoAlignProps,
22-
} from './react.tsx'
22+
} from './react'
2323

2424
```js
2525
import {Bento} from '@primer/react-brand'

apps/next-docs/content/components/BreakoutBanner/react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
BreakoutBannerLinkDirectionProps,
1818
HeadingTagsProps,
1919
HeadingSizesProps,
20-
} from './react.tsx'
20+
} from './react'
2121

2222
```js
2323
import {BreakoutBanner} from '@primer/react-brand'

apps/next-docs/content/components/Button/react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ source: https://github.com/primer/brand/blob/main/packages/react/src/Button/Butt
1111
storybook: '/brand/storybook/?path=/story/components-button--playground'
1212
---
1313

14-
import {ButtonVariantsProp, ButtonSizesProp} from './react.tsx'
14+
import {ButtonVariantsProp, ButtonSizesProp} from './react'
1515
import {SearchIcon, ChevronDownIcon, FilterIcon} from '@primer/octicons-react'
1616

1717
```js

apps/next-docs/content/components/ButtonGroup/react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ source: https://github.com/primer/brand/tree/main/packages/react/src/ButtonGroup
99
storybook: '/brand/storybook/?path=/story/components-buttongroup--playground'
1010
---
1111

12-
import {ButtonGroupSizesProp, ButtonGroupAsProp} from './react.tsx'
12+
import {ButtonGroupSizesProp, ButtonGroupAsProp} from './react'
1313

1414
```js
1515
import {ButtonGroup, Button} from '@primer/react-brand'

apps/next-docs/content/components/CTABanner/react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
CTABannerHeadingAsProp,
1919
CTABannerHeadingSizeProp,
2020
CTABannerTextVariantsProp,
21-
} from './react.tsx'
21+
} from './react'
2222

2323
```js
2424
import {CTABanner, Button} from '@primer/react-brand'

0 commit comments

Comments
 (0)