Update ESLint to not try to resolve virtual modules (#34837)
This commit is contained in:
parent
991796172a
commit
6ffa262546
4 changed files with 1 additions and 4 deletions
|
@ -3,7 +3,6 @@
|
|||
// emojiIndex.search functionality.
|
||||
import type { BaseEmoji } from 'emoji-mart';
|
||||
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 type {
|
||||
Search,
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
// (i.e. the svg filename) and a shortCode intended to be shown
|
||||
// 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 type {
|
||||
FilenameData,
|
||||
|
|
|
@ -3,7 +3,6 @@ import { IntlMessageFormat } from 'intl-messageformat';
|
|||
import { unescape } from 'lodash';
|
||||
// see config/vite/plugins/sw-locales
|
||||
// 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";
|
||||
|
||||
const MAX_NOTIFICATIONS = 5;
|
||||
|
|
|
@ -258,7 +258,7 @@ export default tseslint.config([
|
|||
'import/no-unresolved': [
|
||||
'error',
|
||||
{
|
||||
ignore: ['vite/modulepreload-polyfill'],
|
||||
ignore: ['vite/modulepreload-polyfill', '^virtual:.+'],
|
||||
},
|
||||
],
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue