Skip to content

Commit 372eb12

Browse files
committed
[Feature]: Update git hooks and package json #2705
1 parent e07674f commit 372eb12

3 files changed

Lines changed: 9 additions & 29 deletions

File tree

frontend/eslint-precommit.config.cjs

Lines changed: 0 additions & 20 deletions
This file was deleted.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
},
131131
"lint-staged": {
132132
"*.{js,jsx,ts,tsx}": [
133-
"eslint --fix --max-warnings=0",
133+
"eslint --fix --max-warnings=0 --no-warn-ignored",
134134
"git add"
135135
]
136136
}

frontend/webpack/dev.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
mode: 'development',
1111
entry: [
1212
`webpack-dev-server/client?http://localhost:${port}`, // bundle the client for webpack-dev-server and connect to the provided endpoint
13-
join(srcDir, 'index.tsx'), // the entry point of our App
13+
join(srcDir, 'index.tsx') // the entry point of our App
1414
],
1515
devServer: {
1616
port,
@@ -20,7 +20,7 @@ module.exports = {
2020
headers: {
2121
'Access-Control-Allow-Origin': '*',
2222
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
23-
'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization',
23+
'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization'
2424
},
2525
proxy: [
2626
{
@@ -30,16 +30,16 @@ module.exports = {
3030
target: 'https://sky.dstack.ai/', //0ab1c6ee-3f7b-4839-a259-5e5c6074a97f
3131
// target: 'https://sky-stage.dstack.ai/', //29001ee8-897c-47ea-bfec-819f56835ffe
3232
// target: 'https://cloud.dstack.ai/', //0ab1c6ee-3f7b-4839-a259-5e5c6074a97f
33-
logLevel: 'debug',
34-
},
33+
logLevel: 'debug'
34+
}
3535
],
3636
client: {
3737
overlay: {
3838
runtimeErrors: (error) => {
3939
return !error.message.includes('ResizeObserver loop completed with undelivered notifications');
40-
},
41-
},
42-
},
40+
}
41+
}
42+
}
4343
},
4444
devtool: 'cheap-module-source-map',
4545
plugins: [
@@ -57,7 +57,7 @@ module.exports = {
5757
// e.g. via import(/* webpackMode: "weak" */ './file.js')
5858
allowAsyncCycles: false,
5959
// set the current working directory for displaying module paths
60-
cwd: process.cwd(),
60+
cwd: process.cwd()
6161
}),
6262
],
6363
};

0 commit comments

Comments
 (0)