Skip to content

Commit 3438217

Browse files
committed
chore: disable ESLint rule for function names (#4241)
1 parent 72fdf25 commit 3438217

26 files changed

+30
-24
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"consistent-return": "off",
1212
"complexity": ["warn", 10],
1313
"global-require": "off",
14+
"func-names": "off",
1415
"lines-between-class-members": "off",
1516
"no-console": "error",
1617
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],

src/collections/Table/Table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import TableRow from './TableRow'
2525
/**
2626
* A table displays a collections of data grouped into rows.
2727
*/
28-
const Table = React.forwardRef(function TableInner(props, ref) {
28+
const Table = React.forwardRef(function (props, ref) {
2929
const {
3030
attached,
3131
basic,

src/collections/Table/TableBody.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React from 'react'
44

55
import { getElementType, getUnhandledProps } from '../../lib'
66

7-
const TableBody = React.forwardRef(function TableBodyInner(props, ref) {
7+
const TableBody = React.forwardRef(function (props, ref) {
88
const { children, className } = props
99
const classes = cx(className)
1010
const rest = getUnhandledProps(TableBody, props)

src/collections/Table/TableCell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Icon from '../../elements/Icon'
2020
/**
2121
* A table row can have cells.
2222
*/
23-
const TableCell = React.forwardRef(function TableCellInner(props, ref) {
23+
const TableCell = React.forwardRef(function (props, ref) {
2424
const {
2525
active,
2626
children,

src/collections/Table/TableFooter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import TableHeader from './TableHeader'
77
/**
88
* A table can have a footer.
99
*/
10-
const TableFooter = React.forwardRef(function TableFooterInner(props, ref) {
10+
const TableFooter = React.forwardRef(function (props, ref) {
1111
const { as } = props
1212
const rest = getUnhandledProps(TableFooter, props)
1313

src/collections/Table/TableHeader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
/**
1414
* A table can have a header.
1515
*/
16-
const TableHeader = React.forwardRef(function TableHeaderInner(props, ref) {
16+
const TableHeader = React.forwardRef(function (props, ref) {
1717
const { children, className, content, fullWidth } = props
1818
const classes = cx(useKeyOnly(fullWidth, 'full-width'), className)
1919
const rest = getUnhandledProps(TableHeader, props)

src/collections/Table/TableHeaderCell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import TableCell from './TableCell'
88
/**
99
* A table can have a header cell.
1010
*/
11-
const TableHeaderCell = React.forwardRef(function TableHeaderCellInner(props, ref) {
11+
const TableHeaderCell = React.forwardRef(function (props, ref) {
1212
const { as, className, sorted } = props
1313
const classes = cx(useValueAndKey(sorted, 'sorted'), className)
1414
const rest = getUnhandledProps(TableHeaderCell, props)

src/collections/Table/TableRow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import TableCell from './TableCell'
1919
/**
2020
* A table can have rows.
2121
*/
22-
const TableRow = React.forwardRef(function TableRowInner(props, ref) {
22+
const TableRow = React.forwardRef(function (props, ref) {
2323
const {
2424
active,
2525
cellAs,

src/elements/Header/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import HeaderContent from './HeaderContent'
2323
/**
2424
* A header provides a short summary of content
2525
*/
26-
const Header = React.forwardRef(function HeaderInner(props, ref) {
26+
const Header = React.forwardRef(function (props, ref) {
2727
const {
2828
attached,
2929
block,

src/elements/Header/HeaderContent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { childrenUtils, customPropTypes, getElementType, getUnhandledProps } fro
77
/**
88
* Header content wraps the main content when there is an adjacent Icon or Image.
99
*/
10-
const HeaderContent = React.forwardRef(function HeaderContentInner(props, ref) {
10+
const HeaderContent = React.forwardRef(function (props, ref) {
1111
const { children, className, content } = props
1212
const classes = cx('content', className)
1313
const rest = getUnhandledProps(HeaderContent, props)

0 commit comments

Comments
 (0)