Skip to content

Commit 0047ece

Browse files
committed
feat: Add linting and formatting, and fix related issues
1 parent cfbf8a8 commit 0047ece

28 files changed

Lines changed: 29654 additions & 26715 deletions

.eslintrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": ["@typescript-eslint", "prettier"],
4+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
5+
"rules": {
6+
"prettier/prettier": "error"
7+
}
8+
}

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
contents: write
9+
contents: write
1010

1111
jobs:
1212
release:
@@ -15,8 +15,7 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v5
1717
with:
18-
fetch-depth: 0
19-
18+
fetch-depth: 0
2019

2120
- name: Set up Git identity
2221
run: |
@@ -27,7 +26,7 @@ jobs:
2726
- name: Setup pnpm
2827
uses: pnpm/action-setup@v4
2928
with:
30-
version: 10.13.1
29+
version: 10.13.1
3130

3231
- name: Install deps
3332
run: pnpm install --frozen-lockfile
@@ -37,5 +36,3 @@ jobs:
3736

3837
- name: Add build artifacts
3938
run: git add dist -f
40-
41-

.github/workflows/tag-after-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
run: |
6868
# Match lines starting with "## vX.Y.Z " until the next "## "
6969
awk "/^## v${{ env.version }}[[:space:]]/{flag=1; next} /^## /{flag=0} flag" CHANGELOG.md > RELEASE_NOTES.md
70-
70+
7171
echo "notes<<EOF" >> $GITHUB_ENV
7272
if [ "${{ env.release_type }}" = "major" ]; then
7373
echo "## 🚀 Major Release" >> $GITHUB_ENV
@@ -83,7 +83,7 @@ jobs:
8383
uses: softprops/action-gh-release@v2
8484
with:
8585
tag_name: v${{ env.version }}
86-
name: "Release v${{ env.version }}"
86+
name: 'Release v${{ env.version }}'
8787
body: ${{ env.notes }}
8888
make_latest: true
8989
env:

.github/workflows/version-bump.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ jobs:
6868
- name: Notify about Major Release (if major)
6969
if: inputs.release_type == 'major'
7070
run: |
71-
echo "🚨 Major version update detected! Please review and merge manually."
71+
echo "🚨 Major version update detected! Please review and merge manually."

.prettierrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": true,
5+
"printWidth": 100,
6+
"tabWidth": 2
7+
}

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ All notable changes for each version of the Ambient Music extension.
7676
- ci path updated
7777
- feat: version bump minor release 0.1.0
7878

79-
8079
## v0.1.0 2025 08 22
8180

8281
- ci: Keep the versions up-to-date

CODE_OF_CONDUCT.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
26-
overall community
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
- Focusing on what is best not just for us as individuals, but for the
26+
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
30+
- The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
3838

3939
## Enforcement Responsibilities
4040

CONTRIBUTING.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ We love your input! We want to make contributing to this project as easy and tra
99
- Becoming a maintainer
1010

1111
## We Develop with Github
12+
1213
We use github to host code, to track issues and feature requests, as well as accept pull requests.
1314

1415
## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests
16+
1517
Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests:
1618

1719
1. Fork the repo and create your branch from `main`.
@@ -22,9 +24,11 @@ Pull requests are the best way to propose changes to the codebase. We actively w
2224
6. Issue that pull request!
2325

2426
## Any contributions you make will be under the MIT Software License
27+
2528
In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http.://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern.
2629

2730
## Report bugs using Github's [issues](https://github.com/Taj/universal-version-bump/issues)
31+
2832
We use GitHub issues to track public bugs. Report a bug by [opening a new issue](); it's that easy!
2933

3034
## Write bug reports with detail, background, and sample code
@@ -39,13 +43,13 @@ We use GitHub issues to track public bugs. Report a bug by [opening a new issue]
3943
- What actually happens
4044
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
4145

42-
People *love* thorough bug reports. I'm not even kidding.
46+
People _love_ thorough bug reports. I'm not even kidding.
4347

4448
## Use a Consistent Coding Style
4549

46-
* 2 spaces for indentation rather than tabs
47-
* You can try running `pnpm run lint` for style unification
50+
- 2 spaces for indentation rather than tabs
51+
- You can try running `pnpm run lint` for style unification
4852

4953
## License
50-
By contributing, you agree that your contributions will be licensed under its MIT License.
5154

55+
By contributing, you agree that your contributions will be licensed under its MIT License.

DEVELOPER.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ When you're ready to submit your changes, please follow these steps:
3939
3. Push your changes to your forked repository.
4040
4. Create a pull request to the `main` branch of this repository.
4141

42-
We'll review your pull request as soon as possible. Thanks for your contribution!
42+
We'll review your pull request as soon as possible. Thanks for your contribution!

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ To use this action in your workflow, add the following step:
1515
- name: Bump version
1616
uses: taj54/[email protected]
1717
with:
18-
release_type: "patch" # patch, minor, or major
18+
release_type: 'patch' # patch, minor, or major
1919
```
2020
2121
## Inputs
2222
23-
| Name | Description | Default |
24-
| -------------- | --------------------------------------------- | ------- |
23+
| Name | Description | Default |
24+
| -------------- | -------------------------------------------------- | ------- |
2525
| `release_type` | Select the version bump type (patch, minor, major) | `patch` |
26-
| `git_tag` | Whether to create a Git tag after bump | `true` |
26+
| `git_tag` | Whether to create a Git tag after bump | `true` |
2727

2828
## Outputs
2929

30-
| Name | Description |
31-
| ------------- | -------------------------------------- |
32-
| `new_version` | The new bumped version |
33-
| `tag` | The created Git tag (if enabled) |
30+
| Name | Description |
31+
| ------------- | -------------------------------- |
32+
| `new_version` | The new bumped version |
33+
| `tag` | The created Git tag (if enabled) |
3434

3535
## Example Workflow
3636

@@ -52,7 +52,7 @@ jobs:
5252
- name: Bump version
5353
uses: taj54/[email protected]
5454
with:
55-
release_type: "patch"
55+
release_type: 'patch'
5656
```
5757

5858
## Contributing
@@ -62,4 +62,3 @@ Contributions are welcome! Please see the [contributing guidelines](CONTRIBUTING
6262
## License
6363

6464
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
65-

0 commit comments

Comments
 (0)