Skip to content

Commit 726109a

Browse files
committed
format code
Signed-off-by: Karan Yadav <xpresskaran98@gmail.com>
1 parent a7983bd commit 726109a

30 files changed

+14848
-14405
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx lint-staged
1+
npx lint-staged

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ frontend/node_modules
33
backend/node_modules
44
backend/dist
55
deployment/
6-
docs/
6+
docs/

CONTRIBUTING.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -39,39 +39,39 @@ If running locally navigate to `http://localhost:8080`
3939
1. First of all, `fork` this repo.
4040
2. Next -> clone your branch.
4141

42-
```bash
43-
git clone https://github.com/<your-user-name>/dashboard.git
44-
```
42+
```bash
43+
git clone https://github.com/<your-user-name>/dashboard.git
44+
```
4545

46-
`note`: replace `<your-user-name>` with your github username.
46+
`note`: replace `<your-user-name>` with your github username.
4747

4848
3. Move to cloned dir and if you want to make changes to our codebase then create new branch
4949

50-
```bash
51-
cd dashboard/
50+
```bash
51+
cd dashboard/
5252
53-
git checkout -b <your-branch-name>
54-
```
53+
git checkout -b <your-branch-name>
54+
```
5555

5656
4. Install [nvm](https://github.com/nvm-sh/nvm?tab=readme-ov-file#install--update-script)
5757

5858
5. Use similar version
5959

60-
```bash
61-
nvm use
62-
```
60+
```bash
61+
nvm use
62+
```
6363

6464
6. Install the dependencies
6565

66-
```bash
67-
npm ci
68-
```
66+
```bash
67+
npm ci
68+
```
6969

7070
7. Run the `dev` script
7171

72-
```bash
73-
npm run dev
74-
```
72+
```bash
73+
npm run dev
74+
```
7575

7676
### Inside kubernetes cluster
7777

@@ -96,9 +96,9 @@ kubectl apply -f deployment/volcano-dashboard.yaml
9696

9797
- Run prettier to format the code before commiting changes:
9898

99-
```bash
100-
npm run format
101-
```
99+
```bash
100+
npm run format
101+
```
102102

103103
## Submitting Pull Requests
104104

@@ -110,32 +110,32 @@ How to [signoff](https://git-scm.com/docs/git-commit#Documentation/git-commit.tx
110110

111111
1. Commit Your Changes
112112

113-
```bash
114-
git commit -s -m "Your commit message here"
115-
```
113+
```bash
114+
git commit -s -m "Your commit message here"
115+
```
116116

117117
2. Verify Your Commit
118118

119-
To check if your commit includes a sign-off, run:
119+
To check if your commit includes a sign-off, run:
120120

121-
```bash
122-
git log -1
123-
```
121+
```bash
122+
git log -1
123+
```
124124

125-
You should see a line like:
125+
You should see a line like:
126126

127-
```bash
128-
Signed-off-by: Your Name <your.email@example.com>
129-
```
127+
```bash
128+
Signed-off-by: Your Name <your.email@example.com>
129+
```
130130

131-
If you forgot to sign off, amend the commit with:
131+
If you forgot to sign off, amend the commit with:
132132

133-
```bash
134-
git commit --amend -s
135-
```
133+
```bash
134+
git commit --amend -s
135+
```
136136

137137
3. Push Your Changes
138138

139-
```bash
140-
git push origin <your-branch>
141-
```
139+
```bash
140+
git push origin <your-branch>
141+
```

backend/.babelrc

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
{
2-
"presets": [
3-
"@babel/preset-env"
4-
],
5-
"plugins": [
6-
"@babel/plugin-syntax-dynamic-import",
7-
"@babel/plugin-syntax-import-meta",
8-
"@babel/plugin-proposal-class-properties",
9-
"@babel/plugin-proposal-json-strings",
10-
[
11-
"@babel/plugin-proposal-decorators",
12-
{
13-
"legacy": true
14-
}
15-
],
16-
"@babel/plugin-proposal-function-sent",
17-
"@babel/plugin-proposal-export-namespace-from",
18-
"@babel/plugin-proposal-numeric-separator",
19-
"@babel/plugin-proposal-throw-expressions",
20-
"@babel/plugin-proposal-export-default-from",
21-
"@babel/plugin-proposal-logical-assignment-operators",
22-
"@babel/plugin-proposal-optional-chaining",
23-
[
24-
"@babel/plugin-proposal-pipeline-operator",
25-
{
26-
"proposal": "minimal"
27-
}
28-
],
29-
"@babel/plugin-proposal-nullish-coalescing-operator",
30-
"@babel/plugin-proposal-do-expressions",
31-
"@babel/plugin-proposal-function-bind"
32-
]
2+
"presets": ["@babel/preset-env"],
3+
"plugins": [
4+
"@babel/plugin-syntax-dynamic-import",
5+
"@babel/plugin-syntax-import-meta",
6+
"@babel/plugin-proposal-class-properties",
7+
"@babel/plugin-proposal-json-strings",
8+
[
9+
"@babel/plugin-proposal-decorators",
10+
{
11+
"legacy": true
12+
}
13+
],
14+
"@babel/plugin-proposal-function-sent",
15+
"@babel/plugin-proposal-export-namespace-from",
16+
"@babel/plugin-proposal-numeric-separator",
17+
"@babel/plugin-proposal-throw-expressions",
18+
"@babel/plugin-proposal-export-default-from",
19+
"@babel/plugin-proposal-logical-assignment-operators",
20+
"@babel/plugin-proposal-optional-chaining",
21+
[
22+
"@babel/plugin-proposal-pipeline-operator",
23+
{
24+
"proposal": "minimal"
25+
}
26+
],
27+
"@babel/plugin-proposal-nullish-coalescing-operator",
28+
"@babel/plugin-proposal-do-expressions",
29+
"@babel/plugin-proposal-function-bind"
30+
]
3331
}

0 commit comments

Comments
 (0)