Skip to content

Commit

Permalink
updating to eslint with vite
Browse files Browse the repository at this point in the history
  • Loading branch information
qiandrewj committed Sep 22, 2024
1 parent 8fcc224 commit 788adec
Show file tree
Hide file tree
Showing 5 changed files with 2,552 additions and 1,442 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"extends": ["airbnb", "plugin:@typescript-eslint/recommended", "react-app"],
"extends": "react-app",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
Expand Down
7 changes: 2 additions & 5 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"build": "vite build",
"serve": "vite preview"
},
"eslintConfig": {
"extends": "react-app"
},
"proxy": "http://localhost:8080",
"browserslist": {
"production": [
Expand All @@ -29,10 +26,10 @@
"axios": "^1.6.7",
"common": "0.0.1",
"i": "^0.3.7",
"react": "^18.2.0",
"react": "^18.3.1",
"react-circular-progressbar": "^2.0.3",
"react-dom": "^18.3.1",
"react-google-login": "^5.1.21",
"react-google-login": "^5.2.2",
"react-router-dom": "^5.1.2",
"react-toastify": "^7.0.3",
"vite": "^5.3.5"
Expand Down
4 changes: 2 additions & 2 deletions client/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// import svgr from 'vite-plugin-svgr';
import eslint from 'vite-plugin-eslint'

export default defineConfig({
build: {
outDir: 'build',
},
plugins: [
react(),
// svgr({ svgrOptions: { icon: true } }),
eslint()
],
server: {
port: 3000,
Expand Down
15 changes: 4 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,11 @@
},
"devDependencies": {
"@types/ws": "8.5.4",
"@typescript-eslint/eslint-plugin": "^2.31.0",
"@typescript-eslint/parser": "6",
"cypress": "^13.6.2",
"eslint": "7.32.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-react-app": "^5.2.1",
"eslint-plugin-flowtype": "^4.7.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^4.0.0",
"typescript": "^5.4.5"
"eslint": "^8.57.1",
"eslint-config-react-app": "^7.0.1",
"typescript": "^5.4.5",
"vite-plugin-eslint": "^1.8.1"
},
"version": "0.0.0"
}
Loading

0 comments on commit 788adec

Please sign in to comment.