Fix lint issues

This commit is contained in:
Anton Tananaev 2023-08-19 14:02:52 -07:00
parent d3c7705bed
commit 296db11413
3 changed files with 156 additions and 483 deletions

588
modern/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,6 +16,7 @@
"@tmcw/togeojson": "^5.6.2",
"@turf/circle": "^6.5.0",
"@turf/turf": "^6.5.0",
"@vitejs/plugin-react": "^4.0.4",
"events": "^3.3.0",
"mapbox-gl": "^1.13.3",
"maplibre-gl": "^3.0.1",
@ -30,20 +31,10 @@
"react-window": "^1.8.9",
"recharts": "^2.6.2",
"redux": "^4.2.1",
"vite": "^4.4.9",
"vite-plugin-pwa": "^0.16.4",
"vite-plugin-svgr": "^3.2.0",
"wellknown": "^0.5.0",
"workbox-background-sync": "^6.6.1",
"workbox-broadcast-update": "^6.6.1",
"workbox-cacheable-response": "^6.6.1",
"workbox-core": "^6.6.1",
"workbox-expiration": "^6.6.1",
"workbox-google-analytics": "^6.6.1",
"workbox-navigation-preload": "^6.6.1",
"workbox-precaching": "^6.6.1",
"workbox-range-requests": "^6.6.1",
"workbox-routing": "^6.6.1",
"workbox-strategies": "^6.6.1",
"workbox-streams": "^6.6.1"
"wellknown": "^0.5.0"
},
"scripts": {
"start": "vite",
@ -63,13 +54,11 @@
]
},
"devDependencies": {
"@vitejs/plugin-react": "^4.0.4",
"eslint": "^8.41.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"vite": "^4.4.9",
"vite-plugin-pwa": "^0.16.4"
"eslint-plugin-react-hooks": "^4.6.0"
}
}

View File

@ -1,20 +1,18 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import svgr from 'vite-plugin-svgr';
import { VitePWA } from 'vite-plugin-pwa'
import { VitePWA } from 'vite-plugin-pwa';
export default defineConfig(() => {
return {
server: {
port: 3000,
proxy: {
'/api/socket': 'ws://localhost:8082',
'/api': 'http://localhost:8082',
},
export default defineConfig(() => ({
server: {
port: 3000,
proxy: {
'/api/socket': 'ws://localhost:8082',
'/api': 'http://localhost:8082',
},
build: {
outDir: 'build',
},
plugins: [svgr(), react(), VitePWA()],
};
});
},
build: {
outDir: 'build',
},
plugins: [svgr(), react(), VitePWA()],
}));