Source-loader: Disable no-impliicit-any linting

This commit is contained in:
Michael Shilman 2019-12-31 02:42:45 +08:00
parent 3d804cd2cc
commit d31b414a47

View File

@ -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}`;