Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
JCQuintas committed Jan 1, 2025
1 parent 0d13454 commit 182adad
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions docs/src/modules/components/ApiDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,13 @@ function ApiProperty({ index, property, plan }) {
>
<PrimaryHeading>
<React.Fragment>
{/* eslint-disable-next-line material-ui/no-hardcoded-labels */}
{`${property.name}()`}
<PlanIcon plan={plan} />
</React.Fragment>
</PrimaryHeading>
<SecondaryHeading dangerouslySetInnerHTML={{ __html: property.description }} />
</AccordionSummary>
<AccordionDetails sx={{ display: 'block' }}>
{/* eslint-disable-next-line material-ui/no-hardcoded-labels */}
<Typography variant="subtitle2">Signature:</Typography>
<HighlightedCode
code={`${property.name}: ${property.type}`}
Expand Down
1 change: 0 additions & 1 deletion docs/src/modules/components/LocalizationTable.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable material-ui/no-hardcoded-labels */
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
Expand Down
2 changes: 0 additions & 2 deletions docs/src/modules/components/SelectorsDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ function SelectorAccordion({ selector }) {
/>
</AccordionSummary>
<SelectorDetails>
{/* eslint-disable-next-line material-ui/no-hardcoded-labels */}
<Typography variant="subtitle2">Signature:</Typography>
<SelectorExample code={signature} language="tsx" />
{/* eslint-disable-next-line material-ui/no-hardcoded-labels */}
<Typography variant="subtitle2">Example</Typography>
<SelectorExample code={example} language="tsx" />
</SelectorDetails>
Expand Down
1 change: 0 additions & 1 deletion docs/src/modules/components/WhatsNewLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ function BlogCard({ entry }) {
width: { xs: '100%', sm: 'fit-content' },
}}
>
{/* eslint-disable-next-line material-ui/no-hardcoded-labels */}
{'Read more'}
</Button>
)}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/utils/postProcessImport.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from 'chai';
import pickersPackageJson from '../../../../packages/x-date-pickers/package.json';
import pickersPackageJson from '@mui/x-date-pickers/package.json';
import { ADAPTER_TO_LIBRARY, postProcessImport } from './postProcessImport';

describe('postProcessImport', () => {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/utils/postProcessImport.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pickersPackageJson from '../../../../packages/x-date-pickers/package.json';
import pickersPackageJson from '@mui/x-date-pickers/package.json';

export const ADAPTER_TO_LIBRARY: Record<string, keyof typeof pickersPackageJson.devDependencies> = {
AdapterDateFns: 'date-fns',
Expand Down

0 comments on commit 182adad

Please sign in to comment.