Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source-loader: Disable eslint entirely for generated code #9410

Merged
merged 1 commit into from
Jan 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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