A map app for marking your visited destination anywhere in the world.
- installing eslint
npm install eslint vite-plugin-eslint eslint-config-react-app --save-dev
- create a
.eslintrc.json
file in the root directory and add the following code
{
"extends":"react-app"
}
- add the following code in the
vite.config.js
file
import eslint from 'vite-plugin-eslint';
export default defineConfig({
plugins: [react(), eslint()],
});
- add react router dom
npm install react-router-dom