Skip to content

Commit a6e16dc

Browse files
authored
Merge pull request #772 from thomasnordquist/chore/fix-spellchecker
upgrade cspell and fix spelling issues
2 parents 737afb3 + f1b13a2 commit a6e16dc

File tree

7 files changed

+690
-311
lines changed

7 files changed

+690
-311
lines changed

.cspell.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{
2+
"import": [
3+
"@cspell/dict-typescript/cspell-ext.json"
4+
],
5+
"ignoreRegExpList": [
6+
"import(?:(?:(?:[ \\n\\t]+([^ *\\n\\t\\{\\},]+)[ \\n\\t]*(?:,|[ \\n\\t]+))?([ \\n\\t]*\\{(?:[ \\n\\t]*[^ \\n\\t\"'\\{\\}]+[ \\n\\t]*,?)+\\})?[ \\n\\t]*)|[ \n\\n\\t]*\\*[ \\n\\t]*as[ \\n\\t]+([^ \\n\\t\\{\\}]+)[ \\n\\t]+)from[ \\n\\t]*(?:['\"])([^'\"\\n]+)(['\"])\n",
7+
"^import\\s+(['\"]).*\\1$"
8+
],
29
"language": "en",
310
"words": [
411
"Bbreak",
@@ -8,15 +15,13 @@
815
"nowrap",
916
"subheader",
1017
"basepath",
11-
"webdriverio",
1218
"repo",
1319
"hexagonalize",
1420
"pixelize",
1521
"Transistions",
16-
"squashfs",
17-
"squashfs",
1822
"provisionprofile",
1923
"Nsis",
24+
"webdriverio",
2025
"Appx",
2126
"Hashable",
2227
"clickaway",
@@ -26,8 +31,6 @@
2631
"Monokai",
2732
"plottable",
2833
"snackbar",
29-
"webdriverio",
30-
"prismjs",
3134
"Nordquist",
3235
"debounced",
3336
"mosquitto",
@@ -47,6 +50,9 @@
4750
"mixins",
4851
"Explorerdmg",
4952
"heapsnapshot",
50-
"noconflict"
53+
"noconflict",
54+
"sparkplugb",
55+
"protojson",
56+
"typesafe"
5157
]
52-
}
58+
}

backend/src/Model/sparkplugb.proto.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* spell-checker: disable */
2+
13
const protocol = `
24
syntax = "proto2";
35
@@ -197,4 +199,6 @@ message Payload {
197199
extensions 6 to max; // For third party extensions
198200
}
199201
`
202+
203+
/* spell-checker: enable */
200204
export default protocol

backend/src/Model/sparkplugb.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
// cSpell:words protobuf
12
import * as protobuf from 'protobufjs'
23
import protocol from './sparkplugb.proto'
34
import { Base64Message } from './Base64Message'
45
import { Decoder } from './Decoder'
56

67
const root = protobuf.parse(protocol).root
8+
/* cspell:disable-next-line */
79
export let SparkplugPayload = root.lookupType('com.cirruslink.sparkplug.protobuf.Payload')
810

911
export const SparkplugDecoder = {

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dev": "npm-run-all --parallel dev:*",
1616
"dev:app": "cd app && npm run dev",
1717
"dev:electron": "tsc && electron . --development",
18-
"lint": "npm-run-all --parallel lint:prettier lint:tslint",
18+
"lint": "npm-run-all --parallel lint:prettier lint:tslint lint:spellcheck",
1919
"lint:fix": "npm-run-all lint:tslint:fix lint:prettier:fix",
2020
"lint:prettier": "prettier --check \"**/*.ts{x,}\"",
2121
"lint:prettier:fix": "prettier --write \"**/*.ts{x,}\"",
@@ -76,6 +76,7 @@
7676
"license": "CC-BY-ND-4.0",
7777
"devDependencies": {
7878
"@babel/runtime": "^7.17.2",
79+
"@cspell/dict-typescript": "^3.1.2",
7980
"@electron/notarize": "^2.3.0",
8081
"@types/chai": "^4.1.7",
8182
"@types/fs-extra": "8",
@@ -89,7 +90,7 @@
8990
"@types/uuid": "^8.3.4",
9091
"builder-util-runtime": "^9",
9192
"chai": "^4.2.0",
92-
"cspell": "^4.0.28",
93+
"cspell": "^8.6.1",
9394
"electron": "29.2.0",
9495
"electron-builder": "^24.13.3",
9596
"mocha": "^10.4.0",

src/development.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ export async function waitForDevServer() {
1717
}
1818

1919
export function loadDevTools() {
20+
/* spell-checker: disable */
2021
// Redux
2122
// BrowserWindow.addDevToolsExtension(
2223
// path.join(os.homedir(), '/Library/Application Support/Google/Chrome/Default/Extensions/lmhkpmbekcpmknklioeibfkpmmfibljd/2.17.0_0/')
2324
// )
25+
/* spell-checker: enable */
2426
}
2527

2628
export function isDev() {

src/spec/util/expandTopic.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export async function expandTopic(path: string, browser: Page) {
2020
}
2121
// while (topics.length <= originalTopics.length) {
2222
// const match = await browser.locator(topicSelector(topics))
23-
// console.log('topics', topics, 'orignial', originalTopics)
2423
// console.log('click', match)
2524
// await clickOn(match)
2625
// topics.push(originalTopics[topics.length])

0 commit comments

Comments
 (0)