Skip to content

Commit e0de8a6

Browse files
committed
Update to Prettier 3
- Prettier 3 is async, so related functions were made async. - Code was reformatted using Prettier. - Prettier now ships their own types, so `@types/prettier` was removed. - Prettier was moved to `dependencies`. `optionalDependencies` is for dependencies that have a `install` script that may fail. This isn’t the case for Prettier. - `eslint-plugin-prettier` was updated as well.
1 parent dfccc6f commit e0de8a6

33 files changed

+272
-240
lines changed

.github/ISSUE_TEMPLATE/a_question.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ about: Usage question or discussion about the YAML Language Server
44
title: ''
55
labels: 'kind/question'
66
assignees: ''
7-
87
---
8+
99
## Summary
1010

1111
## Relevant information
12+
1213
<!-- Provide as much useful information as you can -->

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ about: Report a bug found in the YAML Language Server
44
title: ''
55
labels: 'kind/bug'
66
assignees: ''
7-
87
---
98

109
## Describe the bug
10+
1111
<!--- Provide a summary of the issue.
1212
1313
If this is an issue with a schema and you have not set a schema yourself then please file the issue on https://github.com/SchemaStore/schemastore.
@@ -19,18 +19,23 @@ may be relevant.
1919
-->
2020

2121
## Expected Behavior
22+
2223
<!--- What should happen -->
2324

2425
## Current Behavior
26+
2527
<!--- What happens instead of the expected behavior -->
2628

2729
## Steps to Reproduce
30+
2831
<!--- What steps can be done to reproduce -->
32+
2933
1.
3034
2.
31-
3.
35+
3.
3236

3337
## Environment
38+
3439
- [ ] Windows
3540
- [ ] Mac
3641
- [ ] Linux

.github/ISSUE_TEMPLATE/enhancement.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@ about: Suggest an enhancement for the YAML Language Server
44
title: ''
55
labels: 'kind/enhancement'
66
assignees: ''
7-
87
---
8+
99
### Is your enhancement related to a problem? Please describe.
10+
1011
<!-- A clear and concise description of what the problem is. Ex. I am always frustrated when [...] -->
1112

1213
### Describe the solution you would like
14+
1315
<!-- A clear and concise description of what you want to happen. -->
1416

1517
### Describe alternatives you have considered
18+
1619
<!--A clear and concise description of any alternative solutions or features you have considered. -->
1720

1821
### Additional context
19-
<!-- Add any other context or screenshots about the enhancement here. -->
22+
23+
<!-- Add any other context or screenshots about the enhancement here. -->

.github/pull_request_template.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
### What does this PR do?
22

3-
43
### What issues does this PR fix or reference?
54

6-
75
### Is it tested? How?
6+
87
<!-- Please provide instructions here how reviewer can test your changes if applicable -->

.github/workflows/CI.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ on:
1111
branches: [main]
1212

1313
permissions:
14-
contents: read
15-
14+
contents: read
1615

1716
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1817
jobs:
1918
# This workflow contains a single job called "build"
2019
build:
2120
permissions:
22-
checks: write ## for coveralls
21+
checks: write ## for coveralls
2322
contents: read ## for docker-push
2423
security-events: write ## for upload-sarif
2524
# The type of runner that the job will run on
@@ -38,7 +37,7 @@ jobs:
3837
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
3938
with:
4039
node-version: 16
41-
registry-url: "https://registry.npmjs.org"
40+
registry-url: 'https://registry.npmjs.org'
4241

4342
# Run install dependencies
4443
- name: Install dependencies
@@ -84,7 +83,7 @@ jobs:
8483
- name: Set up QEMU
8584
if: ${{ success() && runner.os == 'Linux' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
8685
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0
87-
86+
8887
# Setup DockerBuildx as requirement for docker
8988
- name: Set up Docker Buildx
9089
if: ${{ success() && runner.os == 'Linux' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
@@ -93,7 +92,7 @@ jobs:
9392
# Login to Quay
9493
- name: Login to Quay
9594
if: ${{ success() && runner.os == 'Linux' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
96-
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
95+
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
9796
with:
9897
registry: quay.io
9998
username: ${{ secrets.QUAY_USERNAME }}

.github/workflows/release.yaml

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -20,63 +20,63 @@ jobs:
2020
# Steps represent a sequence of tasks that will be executed as part of the job
2121
steps:
2222
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v2
2424

25-
# Set up Node
26-
- name: Use Node 16
27-
uses: actions/setup-node@v1
28-
with:
29-
node-version: 16
30-
registry-url: 'https://registry.npmjs.org'
25+
# Set up Node
26+
- name: Use Node 16
27+
uses: actions/setup-node@v1
28+
with:
29+
node-version: 16
30+
registry-url: 'https://registry.npmjs.org'
3131

32-
# Run install dependencies
33-
- name: Install dependencies
34-
run: yarn
32+
# Run install dependencies
33+
- name: Install dependencies
34+
run: yarn
3535

36-
# Build extension
37-
- name: Run build
38-
run: yarn build
36+
# Build extension
37+
- name: Run build
38+
run: yarn build
3939

40-
# Run tests
41-
- name: Run Test
42-
run: yarn test
40+
# Run tests
41+
- name: Run Test
42+
run: yarn test
4343

44-
# Publish to npm
45-
- run: |
46-
yarn check-dependencies
47-
yarn publish --access public
48-
env:
49-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
44+
# Publish to npm
45+
- run: |
46+
yarn check-dependencies
47+
yarn publish --access public
48+
env:
49+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5050
51-
# Get the current package.json version so we can tag the image correctly
52-
- name: Get current package.json version
53-
id: package-version
54-
uses: martinbeentjes/npm-get-version-action@7aa1d82604bb2dbe377a64ca35e692e6fe333c9c #master
51+
# Get the current package.json version so we can tag the image correctly
52+
- name: Get current package.json version
53+
id: package-version
54+
uses: martinbeentjes/npm-get-version-action@7aa1d82604bb2dbe377a64ca35e692e6fe333c9c #master
5555

56-
# Setup QEMU as requirement for docker
57-
- name: Set up QEMU
58-
uses: docker/setup-qemu-action@v1
59-
60-
# Setup DockerBuildx as requirement for docker
61-
- name: Set up Docker Buildx
62-
uses: docker/setup-buildx-action@v1
56+
# Setup QEMU as requirement for docker
57+
- name: Set up QEMU
58+
uses: docker/setup-qemu-action@v1
6359

64-
# Login to Quay
65-
- name: Login to Quay
66-
uses: docker/login-action@v1
67-
with:
68-
registry: quay.io
69-
username: ${{ secrets.QUAY_USERNAME }}
70-
password: ${{ secrets.QUAY_TOKEN }}
60+
# Setup DockerBuildx as requirement for docker
61+
- name: Set up Docker Buildx
62+
uses: docker/setup-buildx-action@v1
7163

72-
# Build and push the latest version of yaml language server image
73-
- name: Build and push
74-
uses: docker/build-push-action@v2
75-
with:
76-
context: .
77-
file: ./Dockerfile
78-
platforms: linux/amd64
79-
push: true
80-
tags: |
81-
quay.io/redhat-developer/yaml-language-server:latest
82-
quay.io/redhat-developer/yaml-language-server:${{ steps.package-version.outputs.current-version}}
64+
# Login to Quay
65+
- name: Login to Quay
66+
uses: docker/login-action@v1
67+
with:
68+
registry: quay.io
69+
username: ${{ secrets.QUAY_USERNAME }}
70+
password: ${{ secrets.QUAY_TOKEN }}
71+
72+
# Build and push the latest version of yaml language server image
73+
- name: Build and push
74+
uses: docker/build-push-action@v2
75+
with:
76+
context: .
77+
file: ./Dockerfile
78+
platforms: linux/amd64
79+
push: true
80+
tags: |
81+
quay.io/redhat-developer/yaml-language-server:latest
82+
quay.io/redhat-developer/yaml-language-server:${{ steps.package-version.outputs.current-version}}

.mocharc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"timeout": "5000",
3-
"ui": "bdd",
3+
"ui": "bdd",
44
"extension": ["ts"],
55
"package": "./package.json",
66
"reporter": "spec",
77
"watch-files": ["./test/*.test.ts"],
8-
"spec": ["./test/*.test.ts"]
8+
"spec": ["./test/*.test.ts"]
99
}

0 commit comments

Comments
 (0)