Skip to content

Commit 39bf0e5

Browse files
matiyasclaude
andcommitted
Add community files and GitHub templates
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3a5d1fa commit 39bf0e5

7 files changed

Lines changed: 249 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Open a `.vue` file with specific content
16+
2. Run `:VueSfcFormat` or trigger format on save
17+
3. See error or unexpected formatting
18+
19+
**Expected behavior**
20+
A clear and concise description of what you expected to happen.
21+
22+
**Screenshots**
23+
If applicable, add screenshots to help explain your problem.
24+
25+
**Environment (please complete the following information):**
26+
- Neovim version: [e.g. 0.9.5, nightly]
27+
- OS: [e.g. macOS, Linux, Windows]
28+
- Plugin version: [e.g. 1.0.0]
29+
30+
**Additional context**
31+
Add any other context about the problem here (e.g. your `.vue-sfc-format.json`).
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## Description
2+
3+
Please include a summary of the changes and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
4+
5+
Fixes # (issue)
6+
7+
## Type of change
8+
9+
Please delete options that are not relevant.
10+
11+
- [ ] Bug fix (non-breaking change which fixes an issue)
12+
- [ ] New feature (non-breaking change which adds functionality)
13+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
14+
- [ ] This change requires a documentation update
15+
16+
## How Has This Been Tested?
17+
18+
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
19+
20+
- [ ] Existing tests passed
21+
- [ ] New tests added (if applicable)
22+
23+
## Checklist:
24+
25+
- [ ] My code follows the style guidelines of this project
26+
- [ ] I have performed a self-review of my own code
27+
- [ ] I have commented my code, particularly in hard-to-understand areas
28+
- [ ] I have made corresponding changes to the documentation
29+
- [ ] My changes generate no new warnings
30+
- [ ] I have added tests that prove my fix is effective or that my feature works
31+
- [ ] New and existing unit tests pass locally with my changes
32+
- [ ] Any dependent changes have been merged and published in downstream modules

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and
9+
expression, level of experience, education, socio-economic status, nationality,
10+
personal appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
71+
version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Contributing to vue-sfc-format.nvim
2+
3+
First off, thank you for considering contributing to vue-sfc-format.nvim! It's people like you who make the Neovim ecosystem better.
4+
5+
## How Can I Contribute?
6+
7+
### Reporting Bugs
8+
9+
Before creating bug reports, please search the [issue tracker](https://github.com/matiyas/vue-sfc-format.nvim/issues) to see if the problem has already been reported.
10+
11+
If you find a bug, please include:
12+
- Your Neovim version
13+
- Your configuration (the relevant part of your `init.lua` or `init.vim`)
14+
- Your `.vue-sfc-format.json`
15+
- A minimal reproducible example (a `.vue` file that fails to format correctly)
16+
- Expected vs. actual behavior
17+
18+
### Suggesting Enhancements
19+
20+
Feature requests are welcome! Please open an issue and describe:
21+
- The problem this feature would solve
22+
- How you imagine the feature working
23+
- Any alternatives you've considered
24+
25+
### Pull Requests
26+
27+
1. Fork the repository
28+
2. Create a new branch (`git checkout -b feature/my-new-feature`)
29+
3. Make your changes
30+
4. Ensure tests pass and code style is maintained
31+
5. Update documentation (`doc/vue-sfc-format.txt`) if you've added or changed features
32+
6. Commit your changes (`git commit -am 'Add some feature'`)
33+
7. Push to the branch (`git push origin feature/my-new-feature`)
34+
8. Create a new Pull Request
35+
36+
## Development Setup
37+
38+
### Testing
39+
40+
This project uses [vusted](https://github.com/notomo/vusted) for testing.
41+
42+
To run tests locally:
43+
1. Install `vusted`
44+
2. Run `vusted tests/`
45+
46+
### Code Style
47+
48+
We use [Stylua](https://github.com/JohnnyMorganz/StyLua) for Lua code formatting. Please ensure your code follows the project's style by running:
49+
```bash
50+
stylua .
51+
```
52+
53+
We also use [luacheck](https://github.com/mpeterv/luacheck) for linting.
54+
```bash
55+
luacheck .
56+
```
57+
58+
## Community
59+
60+
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,9 @@ export default {
209209
## License
210210

211211
MIT
212+
213+
## Community
214+
215+
- [Code of Conduct](CODE_OF_CONDUCT.md)
216+
- [Contributing](CONTRIBUTING.md)
217+
- [Security Policy](SECURITY.md)

SECURITY.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
The following versions of `vue-sfc-format.nvim` are currently being supported with security updates.
6+
7+
| Version | Supported |
8+
| ------- | --------- |
9+
| 1.0.x ||
10+
| < 1.0 ||
11+
12+
## Reporting a Vulnerability
13+
14+
We take security seriously and want to ensure that our project is as secure as possible. If you find a security vulnerability, please do not disclose it publicly. Instead, please report it via the project's [GitHub Security Advisory](https://github.com/matiyas/vue-sfc-format.nvim/security/advisories/new) feature or by contacting the project maintainer directly.
15+
16+
We will acknowledge your report within 48 hours and provide a timeline for addressing the issue. Once the vulnerability has been fixed, we will issue a new release and provide an advisory with details about the fix and any necessary actions for users.
17+
18+
Please include as much information as possible in your report, including:
19+
- A description of the vulnerability
20+
- Steps to reproduce the issue
21+
- Potential impact of the vulnerability
22+
- Any suggested fixes or workarounds
23+
24+
Thank you for helping us keep our community safe.

0 commit comments

Comments
 (0)