mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 16:41:08 +08:00
Source-loader: Disable no-impliicit-any linting
This commit is contained in:
parent
3d804cd2cc
commit
d31b414a47
@ -37,7 +37,7 @@ export function transform(inputSource) {
|
||||
idsToFrameworks,
|
||||
}) => {
|
||||
const preamble = `
|
||||
/* eslint-disable no-unused-vars,@typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable no-unused-vars,@typescript-eslint/no-unused-vars,@typescript-eslint/no-implicit-any */
|
||||
// @ts-ignore
|
||||
var withSourceLoader = require('@storybook/source-loader/preview').withSource;
|
||||
// @ts-ignore
|
||||
@ -56,7 +56,7 @@ var __MODULE_DEPENDENCIES__ = ${JSON.stringify(dependencies)};
|
||||
var __LOCAL_DEPENDENCIES__ = ${JSON.stringify(localDependencies)};
|
||||
// @ts-ignore
|
||||
var __IDS_TO_FRAMEWORKS__ = ${JSON.stringify(idsToFrameworks)};
|
||||
/* eslint-enable no-unused-vars,@typescript-eslint/no-unused-vars */
|
||||
/* eslint-enable no-unused-vars,@typescript-eslint/no-unused-vars,@typescript-eslint/no-implicit-any */
|
||||
`;
|
||||
return insertAfterImports(this, preamble, source);
|
||||
// return `${preamble}${source}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user