mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-07 13:22:26 +02:00
chore(v2): Fix more eslint errors (#2976)
This commit is contained in:
parent
3611c96f90
commit
6e43c9bd34
81 changed files with 375 additions and 237 deletions
|
@ -7,10 +7,9 @@
|
|||
|
||||
import path from 'path';
|
||||
import Vibrant from 'node-vibrant';
|
||||
import {Palette} from 'node-vibrant/lib/color';
|
||||
|
||||
// @ts-ignore
|
||||
import {toPalette, toBase64} from '../utils';
|
||||
// @ts-ignore
|
||||
import lqip from '../lqip';
|
||||
|
||||
describe('lqip-loader', () => {
|
||||
|
@ -24,8 +23,8 @@ describe('lqip-loader', () => {
|
|||
});
|
||||
|
||||
describe('toPalette', () => {
|
||||
let correctTestSwatch: object = {};
|
||||
let testSwatchWithNull: object = {};
|
||||
let correctTestSwatch: Palette = {};
|
||||
let testSwatchWithNull: Palette & {Vibrant?: null} = {};
|
||||
|
||||
beforeAll(() => {
|
||||
const imgPath = path.join(__dirname, '__fixtures__', 'endi.jpg');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue