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.
|
// 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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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:.+'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue