Skip to content

Commit

Permalink
Source-loader: Disable eslint entirely for generated code (#9410)
Browse files Browse the repository at this point in the history
Source-loader: Disable eslint entirely for generated code
  • Loading branch information
shilman authored Jan 13, 2020
2 parents 4c64cdc + eeeac9c commit 1bf8f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/source-loader/src/server/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function transform(inputSource) {
idsToFrameworks,
}) => {
const preamble = `
/* eslint-disable no-unused-vars,@typescript-eslint/no-unused-vars */
/* eslint-disable */
// @ts-ignore
var withSourceLoader = require('@storybook/source-loader/preview').withSource;
// @ts-ignore
Expand All @@ -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 */
`;
return insertAfterImports(this, preamble, source);
// return `${preamble}${source}`;
Expand Down

0 comments on commit 1bf8f7f

Please sign in to comment.