Skip to content

Commit 7a453fa

Browse files
committed
style: apply prettier formatting and fix unused variable warnings
- Prefix unused variables with underscore to comply with ESLint - Remove unused logger import from middleware - Automated formatting from running lint-staged during pre-commit
1 parent d8068b6 commit 7a453fa

181 files changed

Lines changed: 4855 additions & 4868 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"es2021": true,
5-
"node": true
6-
},
7-
"extends": [
8-
"eslint:recommended",
9-
"plugin:react/recommended",
10-
"plugin:prettier/recommended"
11-
],
12-
"parserOptions": {
13-
"ecmaVersion": "latest",
14-
"sourceType": "module"
15-
},
16-
"plugins": [
17-
"react",
18-
"prettier"
19-
],
20-
"rules": {
21-
"prettier/prettier": "warn",
22-
"react/react-in-jsx-scope": "off",
23-
"react/prop-types": "off",
24-
"no-console": "off",
25-
"react-hooks/exhaustive-deps": "warn",
26-
"no-restricted-syntax": [
27-
"error",
28-
{
29-
"selector": "CallExpression[callee.object.name='console'][callee.property.name!=/^(info|error)$/]",
30-
"message": "Unexpected console method."
31-
}
32-
]
33-
}
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:prettier/recommended"],
8+
"parserOptions": {
9+
"ecmaVersion": "latest",
10+
"sourceType": "module"
11+
},
12+
"plugins": ["react", "prettier"],
13+
"rules": {
14+
"prettier/prettier": "warn",
15+
"react/react-in-jsx-scope": "off",
16+
"react/prop-types": "off",
17+
"no-console": "off",
18+
"react-hooks/exhaustive-deps": "warn",
19+
"no-restricted-syntax": [
20+
"error",
21+
{
22+
"selector": "CallExpression[callee.object.name='console'][callee.property.name!=/^(info|error)$/]",
23+
"message": "Unexpected console method."
24+
}
25+
]
26+
}
3427
}

CONTRIBUTING.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ make up-dev
7373
```
7474

7575
This starts all services:
76+
7677
- 🌐 Webapp: http://localhost:3000
7778
- 🔌 REST API: http://localhost:4000
7879
- ⚡ WebSocket: ws://localhost:4001
@@ -89,6 +90,7 @@ git checkout -b type/description
8990
```
9091

9192
**Branch naming conventions:**
93+
9294
- `feature/` - New features
9395
- `fix/` - Bug fixes
9496
- `refactor/` - Code refactoring
@@ -97,6 +99,7 @@ git checkout -b type/description
9799
- `chore/` - Maintenance tasks
98100

99101
**Examples:**
102+
100103
- `feature/add-dark-mode`
101104
- `fix/resolve-memory-leak`
102105
- `docs/update-api-docs`
@@ -114,6 +117,7 @@ We follow [Conventional Commits](https://www.conventionalcommits.org/) format:
114117
```
115118

116119
**Types:**
120+
117121
- `feat`: New feature
118122
- `fix`: Bug fix
119123
- `docs`: Documentation changes
@@ -123,6 +127,7 @@ We follow [Conventional Commits](https://www.conventionalcommits.org/) format:
123127
- `chore`: Maintenance tasks
124128

125129
**Examples:**
130+
126131
```
127132
feat(webapp): add dark mode toggle
128133
fix(api): resolve memory leak in document sync
@@ -195,6 +200,7 @@ bun run cypress:run
195200
### Test Coverage
196201

197202
Aim for good test coverage, especially for:
203+
198204
- Critical business logic
199205
- API endpoints
200206
- Complex components
@@ -212,19 +218,22 @@ Aim for good test coverage, especially for:
212218
### Before Submitting
213219

214220
1. **Update your fork**:
221+
215222
```bash
216223
git fetch upstream
217224
git checkout main
218225
git merge upstream/main
219226
```
220227

221228
2. **Rebase your branch** (if needed):
229+
222230
```bash
223231
git checkout your-branch
224232
git rebase main
225233
```
226234

227235
3. **Run tests**:
236+
228237
```bash
229238
bun run lint
230239
bun run format:check
@@ -239,6 +248,7 @@ Aim for good test coverage, especially for:
239248
### Creating a Pull Request
240249

241250
1. **Push your branch**:
251+
242252
```bash
243253
git push origin your-branch
244254
```
@@ -315,4 +325,3 @@ Your contributions make docs.plus better for everyone. Thank you for taking the
315325
---
316326

317327
**Questions?** Feel free to ask in Discord or open an issue on GitHub.
318-

0 commit comments

Comments
 (0)