File tree Expand file tree Collapse file tree 5 files changed +6
-82
lines changed Expand file tree Collapse file tree 5 files changed +6
-82
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ module.exports = {
11
11
'storybook-dark-mode' ,
12
12
'./custom-addons/provider/register' ,
13
13
'./custom-addons/descriptions/register' ,
14
- './custom-addons/theme/register' ,
15
- './custom-addons/strictmode/register'
14
+ './custom-addons/theme/register'
16
15
] ,
17
16
typescript : {
18
17
check : false ,
19
18
reactDocgen : false
20
- }
19
+ } ,
20
+ reactOptions : {
21
+ strictMode : process . env . STRICT_MODE
22
+ } ,
21
23
} ;
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import {configureActions} from '@storybook/addon-actions';
2
2
import React from 'react' ;
3
3
import { VerticalCenter } from './layout' ;
4
4
import { withProviderSwitcher } from './custom-addons/provider' ;
5
- import { withStrictModeSwitcher } from './custom-addons/strictmode' ;
6
5
7
6
// decorator order matters, the last one will be the outer most
8
7
@@ -30,6 +29,5 @@ export const decorators = [
30
29
< Story />
31
30
</ VerticalCenter >
32
31
) ,
33
- withStrictModeSwitcher ,
34
32
withProviderSwitcher
35
33
] ;
Original file line number Diff line number Diff line change 12
12
"install-16" : " yarn add -W react@^16.8.0 react-dom@^16.8.0 @testing-library/react@^12 @testing-library/react-hooks@^8" ,
13
13
"install-17" : " yarn add -W react@^17 react-dom@^17 @testing-library/react@^12 @testing-library/react-hooks@^8" ,
14
14
"start" : " cross-env NODE_ENV=storybook start-storybook -p 9003 --ci -c '.storybook'" ,
15
+ "start-strict" : " cross-env NODE_ENV=storybook STRICT_MODE=1 start-storybook -p 9003 --ci -c '.storybook'" ,
15
16
"build:storybook" : " build-storybook -c .storybook -o dist/$(git rev-parse HEAD)/storybook" ,
16
17
"build:storybook-16" : " build-storybook -c .storybook -o dist/$(git rev-parse HEAD)/storybook-16" ,
17
18
"build:storybook-17" : " build-storybook -c .storybook -o dist/$(git rev-parse HEAD)/storybook-17" ,
You can’t perform that action at this time.
0 commit comments