Cathal Mac Donnacha
Follow me on my journey as I write about tech topics I face in my everyday life as a Frontend Developer 💻
I wonder about the reason for not installing eslint and prettier dependencies as dev dependencies
Great articles! For my taste also these are good to have:
// in .eslintrc.js
"extends": [
...
// already there
"plugin:react/recommended",
// warn when rules of hooks are violated
"plugin:react-hooks/recommended",
// disable requirements to import react at the top of the file
// requires to "npm i -D eslint-plugin-react-hooks"
"plugin:react/jsx-runtime",
]
...
Thank you for your guides on migrating to Vite. One error I came across was some missing config for using eslint-plugin-import. I needed to set it up with Typescript using eslint-import-resolver-typescript.
I wonder if you ever ran into some issues with eslint being unable to resolve absolute paths when running linting. I am but I am, I have both baseURL in tsconfig and using vite-tsconfig-paths for vite config but eslint seems to need something else.
The14Some1
You haven't specified the name for prettier ignore file. Other than that, great guide.