Skip to content

Commit 3b3e1de

Browse files
chore(deps-dev): bump xo from 0.60.0 to 1.1.1 (#440)
* chore(deps-dev): bump xo from 0.60.0 to 1.1.1 --- updated-dependencies: - dependency-name: xo dependency-version: 1.1.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Make sure xo runs again * Happy xo --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthijs van der Burgh <matthijs.van.der.burgh@vbti.nl>
1 parent 3320f28 commit 3b3e1de

File tree

8 files changed

+4263
-3689
lines changed

8 files changed

+4263
-3689
lines changed

lib/body.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ class Body {
3434
this.grippers = {};
3535

3636
for (const [partName, part] of Object.entries(parameter_)) {
37-
if (Object.hasOwn(part, 'joint_names')) { // eslint-disable-line no-use-extend-native/no-use-extend-native
37+
if (Object.hasOwn(part, 'joint_names')) {
3838
this.jointNames[partName] = part.joint_names;
3939
}
4040

41-
if (Object.hasOwn(part, 'default_configurations')) { // eslint-disable-line no-use-extend-native/no-use-extend-native
41+
if (Object.hasOwn(part, 'default_configurations')) {
4242
this.defaultConfigurations[partName] = part.default_configurations;
4343
}
4444

45-
if (Object.hasOwn(part, 'ac_gripper')) { // eslint-disable-line no-use-extend-native/no-use-extend-native
45+
if (Object.hasOwn(part, 'ac_gripper')) {
4646
this.grippers[partName] = new ROSLIB.ActionClient({
4747
ros,
4848
serverName: part.ac_gripper,
@@ -93,7 +93,7 @@ class Body {
9393
sendGripperGoal(cmd) {
9494
console.log('Robot body: gripper goal:', cmd);
9595

96-
if (!Object.hasOwn(this.grippers, cmd.side)) { // eslint-disable-line no-use-extend-native/no-use-extend-native
96+
if (!Object.hasOwn(this.grippers, cmd.side)) {
9797
console.error(`Gripper command side must be one of [${Object.keys(this.grippers)}]. Right now, it is '${cmd.side}'`);
9898
return;
9999
}
@@ -118,7 +118,6 @@ class Body {
118118
actionClient,
119119
goalMessage: {
120120
command: {
121-
/* eslint camelcase:0 */
122121
direction,
123122
max_torque: 10,
124123
},

lib/ed.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class Ed extends EventEmitter2 {
8989
// update object
9090
const oldObject = this.entities.get(id);
9191

92-
if (Object.hasOwn(entity, 'pose')) { // eslint-disable-line no-use-extend-native/no-use-extend-native
92+
if (Object.hasOwn(entity, 'pose')) {
9393
const {position, quaternion} = parseEdPosition(entity.pose);
9494
newObject.position = position;
9595
newObject.quaternion = quaternion;
@@ -99,11 +99,11 @@ class Ed extends EventEmitter2 {
9999
oldObject.quaternion && (newObject.quaternion = oldObject.quaternion);
100100
}
101101

102-
if (Object.hasOwn(entity, 'mesh')) { // eslint-disable-line no-use-extend-native/no-use-extend-native
102+
if (Object.hasOwn(entity, 'mesh')) {
103103
const {vertices, faces} = parseEdMesh(entity.mesh);
104104
newObject.vertices = vertices;
105105
newObject.faces = faces;
106-
} else if (Object.hasOwn(entity, 'convex_hull')) { // eslint-disable-line no-use-extend-native/no-use-extend-native
106+
} else if (Object.hasOwn(entity, 'convex_hull')) {
107107
const {vertices, faces} = parseEdConvexHull(entity.convex_hull);
108108
newObject.vertices = vertices;
109109
newObject.faces = faces;
@@ -123,17 +123,17 @@ class Ed extends EventEmitter2 {
123123
} else {
124124
// add object
125125

126-
if (Object.hasOwn(entity, 'pose')) { // eslint-disable-line no-use-extend-native/no-use-extend-native
126+
if (Object.hasOwn(entity, 'pose')) {
127127
const {position, quaternion} = parseEdPosition(entity.pose);
128128
newObject.position = position;
129129
newObject.quaternion = quaternion;
130130
}
131131

132-
if (Object.hasOwn(entity, 'mesh')) { // eslint-disable-line no-use-extend-native/no-use-extend-native
132+
if (Object.hasOwn(entity, 'mesh')) {
133133
const {vertices, faces} = parseEdMesh(entity.mesh);
134134
newObject.vertices = vertices;
135135
newObject.faces = faces;
136-
} else if (Object.hasOwn(entity, 'convex_hull')) { // eslint-disable-line no-use-extend-native/no-use-extend-native
136+
} else if (Object.hasOwn(entity, 'convex_hull')) {
137137
const {vertices, faces} = parseEdConvexHull(entity.convex_hull);
138138
newObject.vertices = vertices;
139139
newObject.faces = faces;

lib/hardware-properties.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/* eslint key-spacing: 0 */
2-
/* eslint no-multi-spaces: 0 */
3-
41
/*
52
| Name | Homeable | HomeableMandatory | Resetable |
63
|---------|----------|-------------------|-----------|
@@ -11,8 +8,8 @@
118
*/
129

1310
// transform the array of bools to an object
11+
/* eslint-disable @stylistic/key-spacing, @stylistic/no-multi-spaces, camelcase */
1412
const propertiesTable = {
15-
/* eslint camelcase:0 */
1613
// Name | Homeable | HomeableMandatory | Resetable
1714
all: [true, false, false],
1815
base: [false, false, true],
@@ -21,6 +18,7 @@ const propertiesTable = {
2118
right_arm: [true, false, true],
2219
head: [false, false, false],
2320
};
21+
/* eslint-enable @stylistic/key-spacing, @stylistic/no-multi-spaces */
2422

2523
const properties = {};
2624
for (const name of Object.keys(propertiesTable)) {
@@ -31,5 +29,6 @@ for (const name of Object.keys(propertiesTable)) {
3129
resetable: v[2],
3230
};
3331
}
32+
/* eslint-enable camelcase */
3433

3534
export default properties;

lib/hardware.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ class Hardware extends EventEmitter2 {
120120
* > hardware.send_command('head', 'start')
121121
*/
122122
send_command(part, command) {
123-
if (!Object.hasOwn(hardwareIds, part)) { // eslint-disable-line no-use-extend-native/no-use-extend-native
123+
if (!Object.hasOwn(hardwareIds, part)) {
124124
throw new RangeError('Invalid part');
125125
}
126126

127-
if (!Object.hasOwn(commands, command)) { // eslint-disable-line no-use-extend-native/no-use-extend-native
127+
if (!Object.hasOwn(commands, command)) {
128128
throw new RangeError('Invalid command');
129129
}
130130

@@ -215,7 +215,7 @@ function diagnosticMessageToStatus(message) {
215215
}
216216

217217
// fill all missing hardware parts with 'idle'
218-
hardware_status = Object.assign({}, defaultStatus, hardware_status);
218+
hardware_status = {...defaultStatus, ...hardware_status};
219219

220220
// add actions
221221
for (const name of Object.keys(hardware_status)) {
@@ -243,15 +243,17 @@ function getActions(name, part) {
243243
actions.home = {
244244
enabled: level === levels.IDLE,
245245
warning: homed
246-
? 'This part was already homed, Are you sure you want to redo homing?' : false,
246+
? 'This part was already homed, Are you sure you want to redo homing?'
247+
: false,
247248
};
248249
}
249250

250251
// always show start action
251252
actions.start = {
252253
enabled: level === levels.IDLE && (homed || !properties_.homeable_mandatory),
253254
warning: properties_.homeable && !homed
254-
? 'This part is not yet homed, Are you sure you want to proceed?' : false,
255+
? 'This part is not yet homed, Are you sure you want to proceed?'
256+
: false,
255257
};
256258

257259
// always show stop action

lib/head.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ class Head extends EventEmitter2 {
5656

5757
sendPanTiltGoal(pan, tilt) {
5858
this.goal = new ROSLIB.Goal({
59-
/* eslint camelcase:0 */
6059
actionClient: this.head_ac,
6160
goalMessage: {
6261
// either LOOKAT or PAN_TILT

0 commit comments

Comments
 (0)