Skip to content

Commit 57b9903

Browse files
authored
Add spellcheck (#67)
* Add spellcheck * Prepare version * Update readme
1 parent 32ed9c3 commit 57b9903

File tree

8 files changed

+651
-16
lines changed

8 files changed

+651
-16
lines changed

.drone.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ steps:
2020
- mkdir ci
2121
- yarn install --frozen-lockfile --no-progress
2222
- rm -rf node_modules/@grafana/data/node_modules
23-
23+
- name: spellcheck
24+
image: grafana/grafana-plugin-ci:1.9.5
25+
commands:
26+
- . ~/.init-nvm.sh
27+
- yarn run spellcheck
28+
depends_on:
29+
- initialize
2430
- name: build-and-test-frontend
2531
image: grafana/grafana-plugin-ci:1.9.5
2632
commands:
@@ -30,9 +36,10 @@ steps:
3036
- yarn test:ci
3137
depends_on:
3238
- initialize
39+
- spellcheck
3340

3441
---
3542
kind: signature
36-
hmac: 16f1768e2d0075f7fb84f8766c2995371afe84ffbc15d06e90dfa7f8ed8ff97d
43+
hmac: e3f399d799348ebebae40890fd1bf5845b884579354ca2e5d37e2851440dbf06
3744

3845
...

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
6+
## v0.3.1
7+
8+
- Add spellcheck script and drone step in [#67](https://github.com/grafana/grafana-aws-sdk-react/pull/67)
9+
510
## v0.3.0
611

712
- Migrate aws sdk react components to the new form styling under feature flag awsDatasourcesNewFormStyling in [#62](https://github.com/grafana/grafana-aws-sdk-react/pull/62)

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,17 @@ see the ./src folder
88

99
## Drone configuration
1010

11-
Drone signs the Drone configuration file. This needs to be run everytime the drone.yml file is modified. See https://github.com/grafana/deployment_tools/blob/master/docs/infrastructure/drone/signing.md for more info.
11+
Drone signs the Drone configuration file. This needs to be run every time the drone.yml file is modified. See https://github.com/grafana/deployment_tools/blob/master/docs/infrastructure/drone/signing.md for more info.
1212

13-
To update the drone file run (note that you need to export your `DRONE_TOKEN` before):
13+
### Update drone build
14+
15+
If you have not installed drone CLI follow [these instructions](https://docs.drone.io/cli/install/)
16+
17+
To sign the `.drone.yml` file:
18+
19+
```bash
20+
# Get your drone token from https://drone.grafana.net/account
21+
export DRONE_TOKEN=<Your DRONE_TOKEN>
1422

15-
```
1623
drone --server https://drone.grafana.net sign --save grafana/grafana-aws-sdk-react
1724
```

cspell.config.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"ignorePaths": [
3+
".github/**",
4+
"node_modules/**",
5+
"dist/**",
6+
"yarn.lock"
7+
],
8+
"words": [
9+
"SIGV",
10+
"isob",
11+
"Creds",
12+
"CREDS",
13+
"opensearch",
14+
"esbuild",
15+
"testid",
16+
"Datasources",
17+
"Datasource",
18+
"typecheck"
19+
]
20+
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@grafana/aws-sdk",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Common AWS features for grafana",
55
"main": "dist/index.js",
66
"module": "dist/esm/index.js",
@@ -13,7 +13,8 @@
1313
"build": "yarn clean && yarn typecheck && yarn bundle",
1414
"bundle": "rollup -c rollup.config.ts",
1515
"clean": "rimraf ./dist ./compiled",
16-
"lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx ./src",
16+
"lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx ./src && spellcheck",
17+
"spellcheck": "cspell -c cspell.config.json \"**/*.{ts,tsx,js,go,md,mdx,yml,yaml,json,scss,css}\"",
1718
"typecheck": "tsc -p ./tsconfig.build.json",
1819
"test": "jest --notify --watch",
1920
"test:coverage": "jest --coverage",
@@ -46,6 +47,7 @@
4647
"@types/react": "17.0.42",
4748
"@types/react-dom": "17.0.14",
4849
"@typescript-eslint/eslint-plugin": "^5.48.0",
50+
"cspell": "6.13.3",
4951
"esbuild": "^0.16.2",
5052
"eslint": "^8.49.0",
5153
"eslint-plugin-jsdoc": "^46.7.0",

src/sql/QueryEditor/FormatSelect.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('FormatSelect', () => {
3030
render(<FormatSelect {...props} />);
3131
expect(screen.getByText('Table')).toBeInTheDocument();
3232

33-
const selectEl = screen.getByLabelText(props.newFormStylingEnabled ? 'Format dataframes as' : 'Format as');
33+
const selectEl = screen.getByLabelText(props.newFormStylingEnabled ? 'Format data frames as' : 'Format as');
3434
expect(selectEl).toBeInTheDocument();
3535
await select(selectEl, 'Time Series', { container: document.body });
3636

src/sql/QueryEditor/FormatSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function FormatSelect<TQuery extends DataQuery & Record<string, any>, For
2525
<>
2626
{props.newFormStylingEnabled ? (
2727
<Select
28-
aria-label="Format dataframes as"
28+
aria-label="Format data frames as"
2929
id={props.id ?? 'formatAs'}
3030
options={props.options}
3131
value={props.query.format}

0 commit comments

Comments
 (0)