Skip to content

Commit d754263

Browse files
committed
Revert "Remove eslint-disable comments and remove --max-warnings from lint command"
This reverts commit c9bbf7f.
1 parent 5dfd832 commit d754263

File tree

157 files changed

+157
-0
lines changed

Some content is hidden

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

157 files changed

+157
-0
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ const config = defineConfig([
149149
'react/display-name': 'off',
150150
'react/jsx-uses-react': 'error',
151151
'react-hooks/exhaustive-deps': 'error',
152+
'eslint-comments/no-use': 'off',
152153
camelcase: [
153154
'error',
154155
{

packages/react/src/ActionBar/ActionBar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable primer-react/spread-props-first */
12
import type {RefObject, MouseEventHandler} from 'react'
23
import React, {useState, useCallback, useRef, forwardRef, useId} from 'react'
34
import {KebabHorizontalIcon} from '@primer/octicons-react'

packages/react/src/ActionList/ActionList.dev.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable primer-react/spread-props-first */
12
import React from 'react'
23
import type {Meta} from '@storybook/react-vite'
34
import {ActionList} from '.'

packages/react/src/ActionList/ActionList.features.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable primer-react/spread-props-first */
12
import React from 'react'
23
import type {Meta} from '@storybook/react-vite'
34
import {ActionList} from '.'

packages/react/src/ActionList/Group.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable primer-react/spread-props-first */
12
import React from 'react'
23
import {useId} from '../hooks/useId'
34
import {ListContext, type ActionListProps} from './shared'

packages/react/src/ActionList/Heading.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable primer-react/spread-props-first */
12
import React, {forwardRef} from 'react'
23
import {useRefObjectAsForwardedRef} from '../hooks'
34
import type {ForwardRefComponent as PolymorphicForwardRefComponent} from '../utils/polymorphic'

packages/react/src/ActionList/Item.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable primer-react/spread-props-first */
12
import React from 'react'
23

34
import {useId} from '../hooks/useId'

packages/react/src/ActionList/LinkItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable primer-react/spread-props-first */
12
import React from 'react'
23
import type {ForwardRefComponent as PolymorphicForwardRefComponent} from '../utils/polymorphic'
34
import Link from '../Link'

packages/react/src/ActionList/List.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable primer-react/spread-props-first */
12
import React from 'react'
23
import {fixedForwardRef} from '../utils/modern-polymorphic'
34
import {ActionListContainerContext} from './ActionListContainerContext'

packages/react/src/ActionList/TrailingAction.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable primer-react/spread-props-first */
12
import type React from 'react'
23
import {forwardRef} from 'react'
34
import {Button, IconButton} from '../Button'

0 commit comments

Comments
 (0)