Замена inline-правил eslint-* на oxlint-*
This commit is contained in:
4 files changed
+5
-5
No files matched your search
@@ -70,7 +70,7 @@ const playVideo = (slide) => {
|
||||
}
|
||||
} else if (window.VK?.VideoPlayer) {
|
||||
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', () => {
|
||||
if (slide.classList.contains('swiper-slide-active')) {
|
||||
slide.VKPlayer.play();
|
||||
|
||||
@@ -17,7 +17,7 @@ export const scrollTo = ($el, offset = 0, offsetInPx = false) => {
|
||||
}
|
||||
|
||||
let resolved = false; // На случай, если scrollend и fallback запустятся одновременно
|
||||
let fallbackTimeout; // eslint-disable-line prefer-const
|
||||
let fallbackTimeout; // oxlint-disable-line prefer-const
|
||||
|
||||
const done = () => {
|
||||
if (resolved) return;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable unicorn/no-null */
|
||||
/* oxlint-disable unicorn/no-null */
|
||||
|
||||
export default {
|
||||
extends: ['stylelint-config-recommended-scss'],
|
||||
|
||||
@@ -76,7 +76,7 @@ export const createTooltip = ($el, initialContent, initialOptions) => {
|
||||
let parsedValue = value;
|
||||
try {
|
||||
parsedValue = JSON.parse(value);
|
||||
} catch {} // eslint-disable-line no-empty
|
||||
} catch {} // oxlint-disable-line no-empty
|
||||
options[attributeToOption(key)] = parsedValue;
|
||||
}
|
||||
}
|
||||
@@ -137,7 +137,7 @@ export const createTooltip = ($el, initialContent, initialOptions) => {
|
||||
});
|
||||
$el._tooltip._currentAnimation = animation;
|
||||
await animation.finished;
|
||||
} catch {} // eslint-disable-line no-empty
|
||||
} catch {} // oxlint-disable-line no-empty
|
||||
};
|
||||
|
||||
// Добавляет стрелку, если она включена и ещё не создана
|
||||
|
||||
Reference in new issue
Block a user