Skip to content

Commit 35d10a5

Browse files
authored
chore(deps): update some dependencies (#226)
Updates some dependencies in the project. All vue-related dependencies were updated to versions not introducing breaking changes. All eslint-related dependencies were updated as far as possible. Changes the husky pre-commit hook to just run the eslint command with the `--fix` argument and drops the pretty-quick and prettier packages. They’ve always caused quite a bit of friction and the occassional conflict with the eslint configuration. All of the explicitly configured eslint rules were also removed in an attempt to make the whole topic of linting less stressful and annoying. Let’s see how this pans out.
1 parent ad82db8 commit 35d10a5

22 files changed

+987
-804
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/public/js/dist

.eslintrc.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,5 @@
33
"ecmaVersion": 9,
44
"sourceType": "module"
55
},
6-
"rules": {
7-
"semi": "error",
8-
"quotes": ["error", "double"],
9-
"vue/html-closing-bracket-newline": "off",
10-
"vue/html-self-closing": "off",
11-
"vue/max-attributes-per-line": "off",
12-
"vue/require-prop-types": "off",
13-
"vue/singleline-html-element-content-newline": "off"
14-
},
156
"extends": ["plugin:vue/recommended"]
167
}

lib/services/hub.service.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe("HubService", () => {
3939
const deviceData = {
4040
deviceId: "AZ3166",
4141
deviceMethodName: "methodName",
42-
deviceMethodPayload: "{\"key\":\"value\"}" // prettier-ignore
42+
deviceMethodPayload: "{\"key\":\"value\"}"
4343
};
4444

4545
const result = await HubService.callDeviceMethod(iotHubService, deviceData);
@@ -138,7 +138,7 @@ describe("HubService", () => {
138138

139139
const deviceData = {
140140
deviceId: "AZ3166",
141-
deviceMessagePayload: "{\"key\":\"value\"}" // prettier-ignore
141+
deviceMessagePayload: "{\"key\":\"value\"}"
142142
};
143143

144144
const result = await HubService.callDeviceMessage(
@@ -165,7 +165,7 @@ describe("HubService", () => {
165165

166166
const deviceData = {
167167
deviceId: "AZ3166",
168-
deviceMessagePayload: "{" // prettier-ignore
168+
deviceMessagePayload: "{"
169169
};
170170

171171
try {

0 commit comments

Comments
 (0)