Skip to content

Commit

Permalink
style: format configuration files for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephKav committed Jan 21, 2025
1 parent afd8997 commit 9021df0
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 59 deletions.
10 changes: 5 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"tabWidth": 2,
"useTabs": true,
"singleQuote": true,
"trailingComma": "all",
"semi": true
"tabWidth": 2,
"useTabs": true,
"singleQuote": true,
"trailingComma": "all",
"semi": true
}
44 changes: 22 additions & 22 deletions web/ui/react-app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
extends: [
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
],
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "all",
argsIgnorePattern: "^_",
caughtErrors: "all",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
varsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
"no-unused-vars": "off",
},
root: true,
parser: '@typescript-eslint/parser',
extends: [
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'all',
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
'no-unused-vars': 'off',
},
};
64 changes: 32 additions & 32 deletions web/ui/react-app/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import viteTsconfigPaths from "vite-tsconfig-paths";
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import viteTsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig({
base: "",
plugins: [react(), viteTsconfigPaths()],
server: {
open: true,
port: 3000,
proxy: {
"/api": {
target: "http://localhost:8080",
changeOrigin: true,
secure: false,
ws: true,
configure: (proxy) => {
proxy.on("error", (err) => {
console.log("Proxy error", err);
});
proxy.on("proxyReq", (proxyReq, req) => {
console.log("Sending Request to the Target:", req.method, req.url);
});
proxy.on("proxyRes", (proxyRes, req) => {
console.log(
"Received Response from the Target:",
proxyRes.statusCode,
req.url
);
});
},
},
},
},
base: '',
plugins: [react(), viteTsconfigPaths()],
server: {
open: true,
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
secure: false,
ws: true,
configure: (proxy) => {
proxy.on('error', (err) => {
console.log('Proxy error', err);
});
proxy.on('proxyReq', (proxyReq, req) => {
console.log('Sending Request to the Target:', req.method, req.url);
});
proxy.on('proxyRes', (proxyRes, req) => {
console.log(
'Received Response from the Target:',
proxyRes.statusCode,
req.url,
);
});
},
},
},
},
});

0 comments on commit 9021df0

Please sign in to comment.