Update ESLint to not try to resolve virtual modules (#34837)

This commit is contained in:
Echo 2025-05-28 12:04:52 +02:00 committed by GitHub
parent 991796172a
commit 6ffa262546
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1 additions and 4 deletions

View file

@ -3,7 +3,6 @@
// emojiIndex.search functionality. // emojiIndex.search functionality.
import type { BaseEmoji } from 'emoji-mart'; import type { BaseEmoji } from 'emoji-mart';
import type { Emoji } from 'emoji-mart/dist-es/utils/data'; import type { Emoji } from 'emoji-mart/dist-es/utils/data';
// eslint-disable-next-line import/no-unresolved
import emojiCompressed from 'virtual:mastodon-emoji-compressed'; import emojiCompressed from 'virtual:mastodon-emoji-compressed';
import type { import type {
Search, Search,

View file

@ -2,7 +2,6 @@
// (i.e. the svg filename) and a shortCode intended to be shown // (i.e. the svg filename) and a shortCode intended to be shown
// as a "title" attribute in an HTML element (aka tooltip). // as a "title" attribute in an HTML element (aka tooltip).
// eslint-disable-next-line import/no-unresolved
import emojiCompressed from 'virtual:mastodon-emoji-compressed'; import emojiCompressed from 'virtual:mastodon-emoji-compressed';
import type { import type {
FilenameData, FilenameData,

View file

@ -3,7 +3,6 @@ import { IntlMessageFormat } from 'intl-messageformat';
import { unescape } from 'lodash'; import { unescape } from 'lodash';
// see config/vite/plugins/sw-locales // see config/vite/plugins/sw-locales
// it needs to be updated when new locale keys are used in this file // it needs to be updated when new locale keys are used in this file
// eslint-disable-next-line import/no-unresolved
import locales from "virtual:mastodon-sw-locales"; import locales from "virtual:mastodon-sw-locales";
const MAX_NOTIFICATIONS = 5; const MAX_NOTIFICATIONS = 5;

View file

@ -258,7 +258,7 @@ export default tseslint.config([
'import/no-unresolved': [ 'import/no-unresolved': [
'error', 'error',
{ {
ignore: ['vite/modulepreload-polyfill'], ignore: ['vite/modulepreload-polyfill', '^virtual:.+'],
}, },
], ],