Skip to content

Commit 6eaafea

Browse files
committed
chore: add prettier and format codebase
1 parent b08d094 commit 6eaafea

67 files changed

Lines changed: 1017 additions & 1040 deletions

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: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"extends": [
3-
"next/core-web-vitals"
4-
],
2+
"extends": ["next/core-web-vitals"],
53
"rules": {
64
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }]
75
}

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ body:
1010
placeholder: "Describe the bug in detail..."
1111
validations:
1212
required: true
13-
13+
1414
- type: dropdown
1515
id: component
1616
attributes:
@@ -19,14 +19,14 @@ body:
1919
multiple: false
2020
options:
2121
- Tree Visualization
22-
- Data Import/Export
22+
- Data Import/Export
2323
- Tree Layout Algorithms
2424
- User Interface
2525
- Performance
2626
- Other
2727
validations:
2828
required: true
29-
29+
3030
- type: textarea
3131
id: steps-to-reproduce
3232
attributes:
@@ -39,7 +39,7 @@ body:
3939
4. See error
4040
validations:
4141
required: true
42-
42+
4343
- type: textarea
4444
id: expected-behavior
4545
attributes:
@@ -48,7 +48,7 @@ body:
4848
placeholder: "Expected the tree to render correctly..."
4949
validations:
5050
required: true
51-
51+
5252
- type: textarea
5353
id: actual-behavior
5454
attributes:
@@ -57,7 +57,7 @@ body:
5757
placeholder: "Instead, the application crashed with error..."
5858
validations:
5959
required: true
60-
60+
6161
- type: textarea
6262
id: browser-info
6363
attributes:
@@ -66,21 +66,21 @@ body:
6666
placeholder: "Chrome 118, macOS 13.0, Desktop"
6767
validations:
6868
required: true
69-
69+
7070
- type: textarea
7171
id: dataset-info
7272
attributes:
7373
label: Dataset Information
7474
description: What phylogenetic data were you using?
7575
placeholder: "Tree format (Newick/phyloXML), number of species, data source..."
76-
76+
7777
- type: textarea
7878
id: console-errors
7979
attributes:
8080
label: Console Errors
8181
description: Any error messages from browser console?
8282
placeholder: "Paste any console errors here..."
83-
83+
8484
- type: textarea
8585
id: additional-context
8686
attributes:

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ body:
2020
- Mobile/Touch Support
2121
validations:
2222
required: true
23-
23+
2424
- type: textarea
2525
id: feature-description
2626
attributes:
@@ -29,7 +29,7 @@ body:
2929
placeholder: "Describe the feature you'd like to see..."
3030
validations:
3131
required: true
32-
32+
3333
- type: textarea
3434
id: use-case
3535
attributes:
@@ -38,21 +38,21 @@ body:
3838
placeholder: "As a researcher/educator/student, I want to..."
3939
validations:
4040
required: true
41-
41+
4242
- type: textarea
4343
id: proposed-solution
4444
attributes:
4545
label: Proposed Solution
4646
description: How do you envision this feature working?
4747
placeholder: "I think this could be implemented by..."
48-
48+
4949
- type: textarea
5050
id: alternatives
5151
attributes:
5252
label: Alternatives Considered
5353
description: What other approaches have you considered?
5454
placeholder: "Alternative approaches could include..."
55-
55+
5656
- type: dropdown
5757
id: priority
5858
attributes:
@@ -64,7 +64,7 @@ body:
6464
- Medium - Would be helpful
6565
- High - Important for my work
6666
- Critical - Blocking my research
67-
67+
6868
- type: checkboxes
6969
id: implementation-help
7070
attributes:
@@ -75,7 +75,7 @@ body:
7575
- label: I can help with coding/implementation
7676
- label: I can help with testing
7777
- label: I can help with documentation
78-
78+
7979
- type: textarea
8080
id: additional-context
8181
attributes:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
## 📋 Pull Request Description
2+
23
Brief description of changes and motivation.
34

45
## 🧬 Type of Change
6+
57
- [ ] Bug fix (non-breaking change)
6-
- [ ] New feature (non-breaking change)
8+
- [ ] New feature (non-breaking change)
79
- [ ] Breaking change (fix/feature causing existing functionality to change)
810
- [ ] Documentation update
911
- [ ] Performance improvement
1012
- [ ] Accessibility improvement
1113

1214
## ✅ Checklist
15+
1316
- [ ] Code follows project style guidelines (ESLint + Prettier)
1417
- [ ] Added/updated tests for new functionality
1518
- [ ] Documentation updated (README, inline comments)
@@ -18,37 +21,46 @@ Brief description of changes and motivation.
1821
- [ ] Screenshots included for UI changes
1922

2023
## 🔬 Testing Details
24+
2125
Describe testing approach and any specific datasets used for validation.
2226

2327
**Test Environment:**
24-
- Browser(s) tested:
25-
- Dataset sizes tested:
28+
29+
- Browser(s) tested:
30+
- Dataset sizes tested:
2631
- Performance benchmarks (if applicable):
2732

2833
## 📊 Performance Impact
34+
2935
For algorithm or visualization changes, include benchmark results or performance considerations.
3036

3137
**Before/After Metrics:**
32-
- Rendering time for 100 nodes:
33-
- Rendering time for 1000 nodes:
34-
- Memory usage:
35-
- Bundle size impact:
38+
39+
- Rendering time for 100 nodes:
40+
- Rendering time for 1000 nodes:
41+
- Memory usage:
42+
- Bundle size impact:
3643

3744
## 🖼️ Screenshots (if applicable)
45+
3846
Include before/after screenshots for UI changes.
3947

4048
## 🧪 Accessibility Testing
49+
4150
- [ ] Tested with keyboard navigation
4251
- [ ] Tested with screen reader
4352
- [ ] Color contrast verified
4453
- [ ] ARIA labels added where needed
4554

4655
## 📚 Related Issues
56+
4757
Closes #[issue number]
4858
Related to #[issue number]
4959

5060
## 🔄 Migration Guide (for breaking changes)
61+
5162
If this is a breaking change, provide migration instructions for users.
5263

5364
## 📝 Additional Notes
65+
5466
Any additional information that reviewers should know.

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
node-version: [18, 20]
25-
25+
2626
steps:
2727
- name: Checkout code
2828
uses: actions/checkout@v4
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/setup-node@v4
3232
with:
3333
node-version: ${{ matrix.node-version }}
34-
cache: 'npm'
34+
cache: "npm"
3535

3636
- name: Install dependencies
3737
run: npm ci --prefix evomap
@@ -74,8 +74,8 @@ jobs:
7474
- name: Setup Node.js
7575
uses: actions/setup-node@v4
7676
with:
77-
node-version: '20'
78-
cache: 'npm'
77+
node-version: "20"
78+
cache: "npm"
7979

8080
- name: Install dependencies
8181
run: npm ci --prefix evomap
@@ -94,4 +94,3 @@ jobs:
9494
run: |
9595
echo "✅ All checks completed successfully"
9696
echo "🚀 Ready for deployment!"
97-

CODE_OF_CONDUCT.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,74 @@
11
# Contributor Covenant Code of Conduct
22

33
## Our Pledge
4+
45
We pledge to make participation in EvoMap a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
56

67
## Our Standards
8+
79
Examples of behavior that contributes to a positive environment:
10+
811
- Using welcoming and inclusive language
9-
- Being respectful of differing viewpoints and experiences
12+
- Being respectful of differing viewpoints and experiences
1013
- Gracefully accepting constructive criticism
1114
- Focusing on what is best for the community
1215
- Showing empathy towards other community members
1316
- Respecting scientific accuracy and evidence-based discussion
1417

1518
Examples of unacceptable behavior include:
19+
1620
- The use of sexualized language or imagery, and sexual attention or advances of any kind
1721
- Trolling, insulting or derogatory comments, and personal or political attacks
1822
- Public or private harassment
1923
- Publishing others' private information, such as a physical or email address, without their explicit permission
2024
- Other conduct which could reasonably be considered inappropriate in a professional setting
2125

2226
## Enforcement Responsibilities
27+
2328
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
2429

2530
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
2631

2732
## Scope
33+
2834
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
2935

3036
## Enforcement
37+
3138
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [project-maintainer-email]. All complaints will be reviewed and investigated promptly and fairly.
3239

3340
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
3441

3542
## Enforcement Guidelines
43+
3644
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
3745

3846
### 1. Correction
47+
3948
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
4049

4150
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
4251

4352
### 2. Warning
53+
4454
**Community Impact**: A violation through a single incident or series of actions.
4555

4656
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
4757

4858
### 3. Temporary Ban
59+
4960
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
5061

5162
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
5263

5364
### 4. Permanent Ban
65+
5466
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
5567

5668
**Consequence**: A permanent ban from any sort of public interaction within the community.
5769

5870
## Attribution
71+
5972
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
6073

6174
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].

0 commit comments

Comments
 (0)