mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-23 21:17:54 +02:00
refactor: reduce number of leaked anys (#7465)
This commit is contained in:
parent
6e62bba30f
commit
89b0fff128
39 changed files with 121 additions and 89 deletions
|
@ -9,8 +9,8 @@ import path from 'path';
|
|||
import logger from '@docusaurus/logger';
|
||||
import sharp from 'sharp';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const {version} = require('../package.json');
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires, global-require
|
||||
const {version} = require('../package.json') as {version: string};
|
||||
|
||||
const ERROR_EXT = `Error: Input file is missing or uses unsupported image format, lqip v${version}`;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue