Skip to content

Commit 0ee758c

Browse files
Merge pull request #5 from NeedleInAJayStack/refactor/formatting
Refactor: Formatting
2 parents c3dbe33 + 333223f commit 0ee758c

14 files changed

Lines changed: 20888 additions & 1883 deletions

.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"extends": "./.config/.eslintrc"
2+
"extends": [
3+
"./.config/.eslintrc",
4+
"prettier"
5+
]
36
}

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ignore artifacts:
2+
.config
3+
package.json
4+
package-lock.json
5+
tsconfig.json
6+
yarn.lock

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
## 1.0.0 (Unreleased)
44

5-
Initial release.
5+
Initial release.

DEVELOPMENT_GUIDE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Development Guide
22

33
## Environment
4+
45
To get a development environment up and running, first ensure the following are installed:
56

67
1. go
@@ -32,7 +33,7 @@ mage -v && docker-compose up
3233
## Usage
3334

3435
Create a new data source, select "Haystack", and provide it the details for the Haxall server
35-
that was started. In order to reference your host machine's network, use the url
36+
that was started. In order to reference your host machine's network, use the url
3637
`http://host.docker.internal:8080/api/`. Click "Save and Test" and make sure that it is
3738
reported as working.
3839

@@ -47,7 +48,7 @@ Alternatively, nearly every Axon query can be visualized using the table view.
4748

4849
# Release
4950

50-
To trigger a new release of the plugin, we need to push a version tag to github. This can be
51+
To trigger a new release of the plugin, we need to push a version tag to github. This can be
5152
achieved with the following steps:
5253

5354
1. Run `npm version <major|minor|patch>`
@@ -87,6 +88,7 @@ Grafana supports a wide range of data sources, including Prometheus, MySQL, and
8788
```bash
8889
mage -l
8990
```
91+
9092
### Frontend
9193

9294
1. Install dependencies
@@ -112,7 +114,7 @@ Grafana supports a wide range of data sources, including Prometheus, MySQL, and
112114
```bash
113115
# Runs the tests and watches for changes, requires git init first
114116
yarn test
115-
117+
116118
# Exists after running all the tests
117119
yarn test:ci
118120
```
@@ -126,9 +128,9 @@ Grafana supports a wide range of data sources, including Prometheus, MySQL, and
126128
6. Run the E2E tests (using Cypress)
127129

128130
```bash
129-
# Spin up a Grafana instance first that we tests against
131+
# Spin up a Grafana instance first that we tests against
130132
yarn server
131-
133+
132134
# Start the tests
133135
yarn e2e
134136
```
@@ -137,13 +139,12 @@ Grafana supports a wide range of data sources, including Prometheus, MySQL, and
137139

138140
```bash
139141
yarn lint
140-
142+
141143
# or
142144

143145
yarn lint:fix
144146
```
145147

146-
147148
# Distributing your plugin
148149

149150
When distributing a Grafana plugin either within the community or privately the plugin must be signed so the Grafana application can verify its authenticity. This can be done with the `@grafana/sign-plugin` package.
@@ -183,7 +184,6 @@ To trigger the workflow we need to push a version tag to github. This can be ach
183184
1. Run `npm version <major|minor|patch>`
184185
2. Run `git push origin main --follow-tags`
185186

186-
187187
## Learn more
188188

189189
Below you can find source code for existing app plugins and other related documentation.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ Contributions are very welcome! For details on how to develop this plugin, see t
2424

2525
## Continuing Work
2626

27-
* [ ] Add alert support
28-
* [ ] Publish plugin
29-
* [ ] Consider enabling multi-point hisRead (through filters)
27+
- [ ] Add alert support
28+
- [ ] Publish plugin
29+
- [ ] Consider enabling multi-point hisRead (through filters)

0 commit comments

Comments
 (0)