Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(eslint): removed unused ignores #1177

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/core/classes/FileSystem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,6 @@ export default class FileSystem {
* Move item to another directory.
* @return {Promise}
*/

// eslint-disable-next-line complexity
async move(src, dest, { override = false }) {
let id, resolveSrc, resolveDest;
if (src instanceof Item) {
Expand Down
1 change: 0 additions & 1 deletion packages/core/classes/Memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ export default class Memory {
return value;
}

// eslint-disable-next-line complexity
set(name, value, readonly = false, global = false) {
name = name.replace(/(.*[^ ])[ ]+$/, '$1');

Expand Down
1 change: 0 additions & 1 deletion packages/core/classes/MenuItem.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable complexity */
import { v4 as uuidv4 } from 'uuid';

export const MENU_ITEM_TYPE = {
Expand Down
2 changes: 0 additions & 2 deletions packages/core/classes/modules/Files/contextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ export default ({ core }) => {
webLinkNew: { disabled: false },
webLinkEdit: { disabled: false }
});

// eslint-disable-next-line complexity
function setMenuItems() {
const selectedItems = symbols.getSelectedItems();
const primaryWrapper = symbols.getPrimaryWrapper();
Expand Down
2 changes: 1 addition & 1 deletion packages/core/classes/modules/Windows/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default ({ module, core }) => {
description: 'Input is illegible.'
})
],
// eslint-disable-next-line complexity

action: data => {
const {
title = null,
Expand Down
4 changes: 2 additions & 2 deletions packages/core/components/atoms/formField/CheckboxGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
:label="label"
label-top>
<ul>
<li v-for="({ label, value, ...item }, index) in items" :key="index">
<li v-for="({ value, ...item }, index) in items" :key="index">
<wb-env-atom-form-field-checkbox-group-item
:radio="radio"
:label="label"
:label="item.label"
:value="value"
:name="name || item.name"
:model-value="modelValue"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/utils/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const MONTH_NAMES = [
];

export function getMonthName(month, cut) {
month = MONTH_NAMES[month];
month = MONTH_NAMES[Number(month)];
if (month.length > 1) {
if (cut) {
return month[1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ function getVehicleAttackLines(player) {
const linesByVehicle = results.reduce(
(result, { fromPlayer, vehicles }) => {
vehicles.forEach(({ id, attackedFrom }) => {
result[id] = result[id] || [];
result[id].push({
result[String(id)] = result[String(id)] || [];
result[String(id)].push({
color: 'dark-yellow',
content: `Kämpfte mit ${autoEllipsis(t(`vehicle.${attackedFrom.key}`).name, 14)} von Spieler: ${fromPlayer.index + 1}`
});
Expand Down
2 changes: 0 additions & 2 deletions packages/disk-synthesizer/classes/NoteDescription.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export class Note {
// doubleFlat = false;
// sharp = false;
// doubleSharp = false;

// eslint-disable-next-line complexity
constructor(options = {}, overrides = {}) {
if (typeof options === 'string') {
options = Note.parse(options);
Expand Down
Loading