Skip to content

Commit

Permalink
chore(deps): upgrade storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
denkristoffer committed Jul 11, 2023
1 parent 8e19ec1 commit b6ee73f
Show file tree
Hide file tree
Showing 6 changed files with 33,725 additions and 37,399 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ rulesDirPlugin.RULES_DIR = path.resolve(
__dirname,
'./scripts/eslint-rules/custom',
);

module.exports = {
parser: '@typescript-eslint/parser',
extends: [
Expand All @@ -16,6 +15,7 @@ module.exports = {
'plugin:jest/recommended',
'plugin:jest/style',
'plugin:you-dont-need-lodash-underscore/compatible',
'plugin:storybook/recommended',
],
plugins: ['import', 'react-hooks', 'jest-dom', 'testing-library', 'rulesdir'],
parserOptions: {
Expand Down
35 changes: 14 additions & 21 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,20 @@ const emotionPlugin = [
},
];

module.exports = (api) => {
const isTest = api.env('test');
if (isTest) {
return {
presets: [
[
'@babel/preset-react',
{
targets: {
node: 'current',
},
module.exports = () => {
return {
presets: [
[
'@babel/preset-react',
{
targets: {
node: 'current',
},
],
'@babel/preset-env',
['@babel/preset-typescript', { allExtensions: true, isTSX: true }],
},
],
plugins: [emotionPlugin],
};
} else {
return {
plugins: [emotionPlugin],
};
}
'@babel/preset-env',
['@babel/preset-typescript', { allExtensions: true, isTSX: true }],
],
plugins: [emotionPlugin],
};
};
Loading

0 comments on commit b6ee73f

Please sign in to comment.