Skip to content

Commit

Permalink
Merge pull request #772 from thomasnordquist/chore/fix-spellchecker
Browse files Browse the repository at this point in the history
upgrade cspell and fix spelling issues
  • Loading branch information
bj00rn authored May 2, 2024
2 parents 737afb3 + f1b13a2 commit a6e16dc
Show file tree
Hide file tree
Showing 7 changed files with 690 additions and 311 deletions.
20 changes: 13 additions & 7 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"import": [
"@cspell/dict-typescript/cspell-ext.json"
],
"ignoreRegExpList": [
"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",
"^import\\s+(['\"]).*\\1$"
],
"language": "en",
"words": [
"Bbreak",
Expand All @@ -8,15 +15,13 @@
"nowrap",
"subheader",
"basepath",
"webdriverio",
"repo",
"hexagonalize",
"pixelize",
"Transistions",
"squashfs",
"squashfs",
"provisionprofile",
"Nsis",
"webdriverio",
"Appx",
"Hashable",
"clickaway",
Expand All @@ -26,8 +31,6 @@
"Monokai",
"plottable",
"snackbar",
"webdriverio",
"prismjs",
"Nordquist",
"debounced",
"mosquitto",
Expand All @@ -47,6 +50,9 @@
"mixins",
"Explorerdmg",
"heapsnapshot",
"noconflict"
"noconflict",
"sparkplugb",
"protojson",
"typesafe"
]
}
}
4 changes: 4 additions & 0 deletions backend/src/Model/sparkplugb.proto.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* spell-checker: disable */

const protocol = `
syntax = "proto2";
Expand Down Expand Up @@ -197,4 +199,6 @@ message Payload {
extensions 6 to max; // For third party extensions
}
`

/* spell-checker: enable */
export default protocol
2 changes: 2 additions & 0 deletions backend/src/Model/sparkplugb.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// cSpell:words protobuf
import * as protobuf from 'protobufjs'
import protocol from './sparkplugb.proto'
import { Base64Message } from './Base64Message'
import { Decoder } from './Decoder'

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

export const SparkplugDecoder = {
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dev": "npm-run-all --parallel dev:*",
"dev:app": "cd app && npm run dev",
"dev:electron": "tsc && electron . --development",
"lint": "npm-run-all --parallel lint:prettier lint:tslint",
"lint": "npm-run-all --parallel lint:prettier lint:tslint lint:spellcheck",
"lint:fix": "npm-run-all lint:tslint:fix lint:prettier:fix",
"lint:prettier": "prettier --check \"**/*.ts{x,}\"",
"lint:prettier:fix": "prettier --write \"**/*.ts{x,}\"",
Expand Down Expand Up @@ -76,6 +76,7 @@
"license": "CC-BY-ND-4.0",
"devDependencies": {
"@babel/runtime": "^7.17.2",
"@cspell/dict-typescript": "^3.1.2",
"@electron/notarize": "^2.3.0",
"@types/chai": "^4.1.7",
"@types/fs-extra": "8",
Expand All @@ -89,7 +90,7 @@
"@types/uuid": "^8.3.4",
"builder-util-runtime": "^9",
"chai": "^4.2.0",
"cspell": "^4.0.28",
"cspell": "^8.6.1",
"electron": "29.2.0",
"electron-builder": "^24.13.3",
"mocha": "^10.4.0",
Expand Down
2 changes: 2 additions & 0 deletions src/development.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ export async function waitForDevServer() {
}

export function loadDevTools() {
/* spell-checker: disable */
// Redux
// BrowserWindow.addDevToolsExtension(
// path.join(os.homedir(), '/Library/Application Support/Google/Chrome/Default/Extensions/lmhkpmbekcpmknklioeibfkpmmfibljd/2.17.0_0/')
// )
/* spell-checker: enable */
}

export function isDev() {
Expand Down
1 change: 0 additions & 1 deletion src/spec/util/expandTopic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export async function expandTopic(path: string, browser: Page) {
}
// while (topics.length <= originalTopics.length) {
// const match = await browser.locator(topicSelector(topics))
// console.log('topics', topics, 'orignial', originalTopics)
// console.log('click', match)
// await clickOn(match)
// topics.push(originalTopics[topics.length])
Expand Down
Loading

0 comments on commit a6e16dc

Please sign in to comment.