Skip to content

Commit 0764e56

Browse files
committed
fixing lint errors
1 parent 7a41f76 commit 0764e56

File tree

6 files changed

+26
-7
lines changed

6 files changed

+26
-7
lines changed

.eslintignore

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

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import globals from 'globals';
1010

1111
export default [
1212
js.configs.recommended,
13+
{
14+
ignores: ['jest.config.js', '.eslintrc.js', 'rollup.config.mjs', 'dist/**/*'],
15+
},
1316
{
1417
files: ['src/**/*.{js,ts,tsx}', 'stories/**/*.{js,ts,tsx}'],
1518
languageOptions: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"@types/babel__preset-env": "^7",
5858
"@types/eslint-plugin-jsx-a11y": "^6",
5959
"@types/jest": "^30.0.0",
60+
"@types/jest-axe": "^3.5.9",
6061
"@types/lodash": "^4",
6162
"@types/react": "^19.1.12",
6263
"@types/react-dom": "^19",

src/components/content-presentation/table/components/TableRow.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import React, { Children, cloneElement, FC, HTMLProps, useContext, useEffect } f
44
import TableContext from '../TableContext';
55
import { getHeadingsFromChildren, isTableCell } from '../TableHelpers';
66
import TableSectionContext, { TableSection } from '../TableSectionContext';
7+
import { TableCellProps } from './TableCell';
78

89
const TableRow: FC<HTMLProps<HTMLTableRowElement>> = ({ className, children, ...rest }) => {
910
const section = useContext(TableSectionContext);
@@ -21,7 +22,7 @@ const TableRow: FC<HTMLProps<HTMLTableRowElement>> = ({ className, children, ...
2122
return cloneElement(child, {
2223
_responsive: isResponsive,
2324
_responsiveHeading: `${headings[index] || ''} `,
24-
} as any);
25+
} as Partial<TableCellProps>);
2526
}
2627
return child;
2728
});

src/components/utils/__tests__/__snapshots__/SingleInputFormGroup.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`SingleInputFormGroup matches snapshot 1`] = `
44
<div>

yarn.lock

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3471,7 +3471,17 @@ __metadata:
34713471
languageName: node
34723472
linkType: hard
34733473

3474-
"@types/jest@npm:^30.0.0":
3474+
"@types/jest-axe@npm:^3.5.9":
3475+
version: 3.5.9
3476+
resolution: "@types/jest-axe@npm:3.5.9"
3477+
dependencies:
3478+
"@types/jest": "npm:*"
3479+
axe-core: "npm:^3.5.5"
3480+
checksum: 10c0/18ae6143c5ca058066d469a7449493dcad0810a06ae3fd4bdadd00b84ffbfffb8b8faa758b7b1327687a5a398f14cc2f6742760f911dae84e25e042564cb3fcf
3481+
languageName: node
3482+
linkType: hard
3483+
3484+
"@types/jest@npm:*, @types/jest@npm:^30.0.0":
34753485
version: 30.0.0
34763486
resolution: "@types/jest@npm:30.0.0"
34773487
dependencies:
@@ -4311,6 +4321,13 @@ __metadata:
43114321
languageName: node
43124322
linkType: hard
43134323

4324+
"axe-core@npm:^3.5.5":
4325+
version: 3.5.6
4326+
resolution: "axe-core@npm:3.5.6"
4327+
checksum: 10c0/f02a5b0e04e04a1024d7dc5c9931f87864c0394a218c6bd9057f0104df7f6310178bbbab47afd0c0fd4b585a08e8c599eebf5a89b6898f3fbeb7bfa33c25bfc8
4328+
languageName: node
4329+
linkType: hard
4330+
43144331
"axe-core@npm:^4.10.0":
43154332
version: 4.10.3
43164333
resolution: "axe-core@npm:4.10.3"
@@ -8682,6 +8699,7 @@ __metadata:
86828699
"@types/babel__preset-env": "npm:^7"
86838700
"@types/eslint-plugin-jsx-a11y": "npm:^6"
86848701
"@types/jest": "npm:^30.0.0"
8702+
"@types/jest-axe": "npm:^3.5.9"
86858703
"@types/lodash": "npm:^4"
86868704
"@types/react": "npm:^19.1.12"
86878705
"@types/react-dom": "npm:^19"

0 commit comments

Comments
 (0)