Skip to content

Commit

Permalink
Fix broken eslint-disable line
Browse files Browse the repository at this point in the history
  • Loading branch information
1337LutZ committed Feb 18, 2024
1 parent 1ed2cc4 commit 3253c33
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions ui/core/components/copy_button.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Tooltip } from 'bootstrap';
// eslint-disable-next-line unused-imports/no-unused-imports
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { element, ref } from 'tsx-vanilla';

import { Component } from "./component";
Expand All @@ -13,7 +13,7 @@ export interface CopyButtonConfig {

export class CopyButton extends Component {
private readonly config: CopyButtonConfig;

constructor(parent: HTMLElement, config: CopyButtonConfig) {
const btnRef = ref<HTMLButtonElement>();
const buttonElem = (
Expand Down
2 changes: 1 addition & 1 deletion ui/core/components/exporters.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line unused-imports/no-unused-imports
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { element, ref } from 'tsx-vanilla';

import { IndividualSimUI } from '../individual_sim_ui';
Expand Down
6 changes: 3 additions & 3 deletions ui/core/components/gear_picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
} from '../proto/ui.js';
import { IndividualSimUI } from '../individual_sim_ui.js';
import { Tooltip } from 'bootstrap';
// eslint-disable-next-line unused-imports/no-unused-imports
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { element, fragment, ref } from 'tsx-vanilla';

import { Clusterize } from './virtual_scroll/clusterize.js';
Expand All @@ -55,7 +55,7 @@ const createHeroicLabel = () => {

const createGemContainer = (socketColor: GemColor ,gem : Gem|null) => {
const gemIconElem = ref<HTMLImageElement>();

let gemContainer = (
<div className="gem-socket-container">
<img ref={gemIconElem} className={`gem-icon ${gem == null ? 'hide' : ''}`} />
Expand Down Expand Up @@ -1190,7 +1190,7 @@ export class ItemList<T> {
};

let isFavorite = this.isItemFavorited(itemData);

if (isFavorite) {
favoriteElem.value!.children[0].classList.add('fas');
listItemElem.dataset.fav = 'true';
Expand Down
2 changes: 1 addition & 1 deletion ui/core/components/icon_enum_picker.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Tooltip } from 'bootstrap';
// eslint-disable-next-line unused-imports/no-unused-imports
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { element, fragment } from 'tsx-vanilla';

import { ActionId } from '../proto_utils/action_id.js';
Expand Down
6 changes: 3 additions & 3 deletions ui/core/components/icon_picker.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line unused-imports/no-unused-imports
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { element, ref } from 'tsx-vanilla';

import { ActionId } from '../proto_utils/action_id.js';
Expand All @@ -8,7 +8,7 @@ import { isRightClick } from '../utils.js';
import { Input, InputConfig } from './input.js';

// Data for creating an icon-based input component.
//
//
// E.g. one of these for arcane brilliance, another for kings, etc.
// ModObject is the object being modified (Sim, Player, or Target).
// ValueType is either number or boolean.
Expand Down Expand Up @@ -147,7 +147,7 @@ export class IconPicker<ModObject, ValueType> extends Input<ModObject, ValueType
// Returns the ActionId of the currently selected value, or null if none selected.
getActionId(): ActionId | null {

// Go directly to source because during event propogation
// Go directly to source because during event propogation
// the internal `this.currentValue` may not yet have been updated.
const v = Number(this.config.getValue(this.modObject));
if (v == 0) {
Expand Down
2 changes: 1 addition & 1 deletion ui/core/talents/glyphs_picker.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line unused-imports/no-unused-imports
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { element } from 'tsx-vanilla';

import { Glyphs } from '../proto/common.js';
Expand Down
4 changes: 2 additions & 2 deletions ui/core/talents/talents_picker.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line unused-imports/no-unused-imports
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { element, fragment, ref } from 'tsx-vanilla';
import { Tooltip } from 'bootstrap';

Expand Down Expand Up @@ -299,7 +299,7 @@ class TalentReqArrow extends Component {
this.zIdx = 0;
this.parentLoc = parentLoc;
this.childLoc = childLoc;

this.rootElem.style.gridRow = String(parentLoc.rowIdx + 1);
this.rootElem.style.gridColumn = String(parentLoc.colIdx + 1);

Expand Down

0 comments on commit 3253c33

Please sign in to comment.