Замена inline-правил eslint-* на oxlint-*

This commit is contained in:
valentinsilyutin committed 2026-10-10 22:55:27 +04:00
1 parent 9ee2067f55
commit 784dcb70b8
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -70,7 +70,7 @@ const playVideo = (slide) => {
} }
} else if (window.VK?.VideoPlayer) { } else if (window.VK?.VideoPlayer) {
if (GalleryVKPlayer.state) { if (GalleryVKPlayer.state) {
slide.VKPlayer = VK.VideoPlayer(vk); // eslint-disable-line new-cap slide.VKPlayer = VK.VideoPlayer(vk); // oxlint-disable-line new-cap
slide.VKPlayer.on('inited', () => { slide.VKPlayer.on('inited', () => {
if (slide.classList.contains('swiper-slide-active')) { if (slide.classList.contains('swiper-slide-active')) {
slide.VKPlayer.play(); slide.VKPlayer.play();
+1 -1
View File
@@ -17,7 +17,7 @@ export const scrollTo = ($el, offset = 0, offsetInPx = false) => {
} }
let resolved = false; // На случай, если scrollend и fallback запустятся одновременно let resolved = false; // На случай, если scrollend и fallback запустятся одновременно
let fallbackTimeout; // eslint-disable-line prefer-const let fallbackTimeout; // oxlint-disable-line prefer-const
const done = () => { const done = () => {
if (resolved) return; if (resolved) return;
+1 -1
View File
@@ -1,4 +1,4 @@
/* eslint-disable unicorn/no-null */ /* oxlint-disable unicorn/no-null */
export default { export default {
extends: ['stylelint-config-recommended-scss'], extends: ['stylelint-config-recommended-scss'],
+2 -2
View File
@@ -76,7 +76,7 @@ export const createTooltip = ($el, initialContent, initialOptions) => {
let parsedValue = value; let parsedValue = value;
try { try {
parsedValue = JSON.parse(value); parsedValue = JSON.parse(value);
} catch {} // eslint-disable-line no-empty } catch {} // oxlint-disable-line no-empty
options[attributeToOption(key)] = parsedValue; options[attributeToOption(key)] = parsedValue;
} }
} }
@@ -137,7 +137,7 @@ export const createTooltip = ($el, initialContent, initialOptions) => {
}); });
$el._tooltip._currentAnimation = animation; $el._tooltip._currentAnimation = animation;
await animation.finished; await animation.finished;
} catch {} // eslint-disable-line no-empty } catch {} // oxlint-disable-line no-empty
}; };
// Добавляет стрелку, если она включена и ещё не создана // Добавляет стрелку, если она включена и ещё не создана