Skip to content

Commit c62768e

Browse files
committedJan 14, 2025
npm/react stylistic
1 parent 77f38fc commit c62768e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
 

‎npm/react/cypress/component/advanced/lazy-loaded-suspense/LazyComponent.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const LazyComponent: React.FC<LazyComponentProps> = () => {
1111
return (
1212
<div>
1313
Loading a dog:
14-
<React.Suspense fallback={'loading...'}>
14+
<React.Suspense fallback="loading...">
1515
<LazyDog />
1616
</React.Suspense>
1717
</div>

‎npm/react/eslint.config.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ export default [
99
files: ['src/createMount.ts'],
1010
rules: {
1111
'cypress/no-unnecessary-waiting': 'warn',
12-
}
12+
},
1313
},
1414
{
1515
rules: {
1616
'react/prop-types': 'warn',
17-
}
18-
}
19-
]
17+
},
18+
},
19+
]

‎npm/react/src/createMount.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const makeMountFn = (
7777
// by waiting, we delaying test execution for the next tick of event loop
7878
// and letting hooks and component lifecycle methods to execute mount
7979
// https://github.com/bahmutov/cypress-react-unit-test/issues/200
80-
.wait(0, { log: false }) // eslint-disable-line cypress/no-unnecessary-waiting
80+
.wait(0, { log: false })
8181
.then(() => {
8282
if (options.log !== false) {
8383
// Get the display name property via the component constructor

0 commit comments

Comments
 (0)
Please sign in to comment.