Closed columk1 closed 11 months ago
The issue was with my ESLInt not recognizing the vitest globals which we enabled in the lesson setup. I solved it by installing the vitest plugin using:
npm install -D eslint-plugin-vitest-globals
and then adding the following to the ESLint config file:
{
"extends": ["plugin:vitest-globals/recommended"],
"env": {
"vitest-globals/env": true
}
}
It shouldn't be an issue for others since ESLint wasn't part of the lesson. Closing.
Describe your suggestion
One of the code snippets from the lesson is missing the following import statement:
Original snippet from the lesson:
Path
Node / JS
Lesson Url
https://www.theodinproject.com/lessons/node-path-react-new-introduction-to-react-testing
Checks
(Optional) Discord Name
columk
(Optional) Additional Comments
No response