Closed technophile-04 closed 3 months ago
Reverts the changes from #875.
The reason for #875 was https://github.com/scaffold-eth/create-eth/pull/55#issuecomment-2195411531. Since in create-eth we are no more using prettier from outside to format files and instead using SE-2 instance prettier to format files we don't require this changes anymore.
create-eth
The reason for reverting this is #901.
To see if this solve #901 :
Copy paste the below in page.tsx insde Home component:
page.tsx
And hopefully you should get eslint warning / error at mentioned places in the comment.
@technophile-04 you are my hero :heart_eyes:
Works great to me! And I agree that this solution is better because it's more stable! Thank you!
Thanks all! Merging this!
Description
Reverts the changes from #875.
The reason for #875 was https://github.com/scaffold-eth/create-eth/pull/55#issuecomment-2195411531. Since in
create-eth
we are no more using prettier from outside to format files and instead using SE-2 instance prettier to format files we don't require this changes anymore.The reason for reverting this is #901.
To see if this solve #901 :
Copy paste the below in
page.tsx
insde Home component:Test snippet :
```ts const [count, setCount] = useState(0); const [name, setName] = useState("shiv"); // should get an eslint error const x = "shiv"; useEffect(() => { setCount(count + 1); console.log(count); setName("shiv"); console.log(name); // should get an eslint warning }, [count]); ```And hopefully you should get eslint warning / error at mentioned places in the comment.