Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2775 from transcom/ttv_168758755_fix_storybook_build
Ttv 168758755 fix storybook build
- Loading branch information
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// remove eslint from the webpack configuration to use the create-react-app eslint config | ||
const removeEsLint = exports => { | ||
return ( | ||
exports.module.rules | ||
.filter(e => e.use && e.use.some(e => e.options && void 0 !== e.options.useEslintrc)) | ||
.forEach(s => { | ||
exports.module.rules = exports.module.rules.filter(e => e !== s); | ||
}), | ||
exports | ||
); | ||
}; | ||
|
||
module.exports = async ({ config, mode }) => { | ||
// remove eslint from config | ||
config = removeEsLint(config); | ||
|
||
// return the new config | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters