Skip to content

Commit

Permalink
fix: disable eslint in such a way that prettier doesn't whine about it
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko committed Apr 15, 2024
1 parent 7ddcb57 commit b27ce52
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions plugins/field-bitmap/src/field-bitmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
* @param newValue The new value to be tested.
* @returns The new value if it's valid, or null.
*/
protected override doClassValidation_(newValue: unknown = undefined) { // eslint-disable-line
// eslint-disable-next-line
protected override doClassValidation_(newValue: unknown = undefined) {
if (!newValue) {
return null;
}
Expand Down Expand Up @@ -143,7 +144,8 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
*
* @param newValue The value that's about to be set.
*/
protected override doValueUpdate_(newValue: number[][]) { // eslint-disable-line
// eslint-disable-next-line
protected override doValueUpdate_(newValue: number[][]) {
super.doValueUpdate_(newValue);
if (newValue) {
this.imgHeight = newValue.length;
Expand All @@ -157,7 +159,8 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
* @param e Optional mouse event that triggered the field to open, or
* undefined if triggered programmatically.
*/
protected override showEditor_(e?: Event) { // eslint-disable-line
// eslint-disable-next-line
protected override showEditor_(e?: Event) {
const editor = this.dropdownCreate();
Blockly.DropDownDiv.getContentDiv().appendChild(editor);
Blockly.DropDownDiv.showPositionedByField(
Expand All @@ -169,7 +172,8 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
/**
* Updates the block display and editor dropdown when the field re-renders.
*/
protected override render_() { // eslint-disable-line
// eslint-disable-next-line
protected override render_() {
super.render_();

if (!this.getValue()) {
Expand Down Expand Up @@ -330,7 +334,8 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
/**
* Updates the size of the block based on the size of the underlying image.
*/
protected override updateSize_() { // eslint-disable-line
// eslint-disable-next-line
protected override updateSize_() {
{
const newWidth = PIXEL_SIZE * this.imgWidth;
const newHeight = PIXEL_SIZE * this.imgHeight;
Expand Down

0 comments on commit b27ce52

Please sign in to comment.