File tree 9 files changed +19
-24
lines changed
9 files changed +19
-24
lines changed Original file line number Diff line number Diff line change 10
10
"serve" : " preact build && preact serve" ,
11
11
"dev" : " preact watch" ,
12
12
"test" : " npm run prettier" ,
13
- "prettier" : " prettier -l 'src/**/*.js'" ,
14
- "prettier:write" : " prettier --write 'src/**/*.js'"
13
+ "prettier" : " prettier -l --print-width 80 'src/**/*.js'" ,
14
+ "prettier:write" : " prettier --write --print-width 80 'src/**/*.js'"
15
15
},
16
16
"repository" : {
17
17
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ export default ({ children, ...props }) => {
19
19
isHighlight = child && child . nodeName === "code" ;
20
20
if ( isHighlight ) {
21
21
let text = child . children [ 0 ] . replace ( / ( ^ \s + | \s + $ ) / g, "" ) ,
22
- lang = ( child . attributes . class && child . attributes . class )
23
- . match ( / l a n g - ( [ a - z ] + ) / ) [ 1 ] ,
22
+ lang = ( child . attributes . class && child . attributes . class ) . match (
23
+ / l a n g - ( [ a - z ] + ) /
24
+ ) [ 1 ] ,
24
25
highlighted = hljs . highlightAuto ( text , lang ? [ lang ] : null ) ,
25
26
hLang = highlighted . language ;
26
27
return (
Original file line number Diff line number Diff line change @@ -66,9 +66,8 @@ export default class ButtonPage extends Component {
66
66
67
67
< div className = "mdc-typography--display1" > Original documentation</ div >
68
68
< div className = "mdc-typography--body" >
69
- This component encapsulates < span className = "strong" >
70
- mdc-button
71
- </ span > , you can refer to its documentation
69
+ This component encapsulates < span className = "strong" > mdc-button</ span > ,
70
+ you can refer to its documentation
72
71
< a href = "https://github.com/material-components/material-components-web/tree/master/packages/mdc-button" >
73
72
{ " " }
74
73
here
Original file line number Diff line number Diff line change @@ -81,9 +81,8 @@ export default class DialogPage extends Component {
81
81
82
82
< div className = "mdc-typography--display1" > Original documentation</ div >
83
83
< div className = "mdc-typography--body" >
84
- This component encapsulates < span className = "strong" >
85
- mdc-dialog
86
- </ span > , you can refer to its documentation
84
+ This component encapsulates < span className = "strong" > mdc-dialog</ span > ,
85
+ you can refer to its documentation
87
86
< a href = "https://github.com/material-components/material-components-web/tree/master/packages/mdc-dialog" >
88
87
{ " " }
89
88
here
Original file line number Diff line number Diff line change @@ -93,9 +93,8 @@ export default class DrawerPage extends Component {
93
93
94
94
< div className = "mdc-typography--display1" > Original documentation</ div >
95
95
< div className = "mdc-typography--body" >
96
- This component encapsulates < span className = "strong" >
97
- mdc-drawer
98
- </ span > , you can refer to its documentation
96
+ This component encapsulates < span className = "strong" > mdc-drawer</ span > ,
97
+ you can refer to its documentation
99
98
< a href = "https://github.com/material-components/material-components-web/tree/master/packages/mdc-drawer" >
100
99
{ " " }
101
100
here
Original file line number Diff line number Diff line change @@ -67,9 +67,8 @@ export default class SelectPage extends Component {
67
67
68
68
< div className = "mdc-typography--display1" > Original documentation</ div >
69
69
< div className = "mdc-typography--body" >
70
- This component encapsulates < span className = "strong" >
71
- mdc-select
72
- </ span > , you can refer to its documentation
70
+ This component encapsulates < span className = "strong" > mdc-select</ span > ,
71
+ you can refer to its documentation
73
72
< a href = "https://github.com/material-components/material-components-web/tree/master/packages/mdc-select" >
74
73
{ " " }
75
74
here
Original file line number Diff line number Diff line change @@ -77,9 +77,8 @@ export default class SliderPage extends Component {
77
77
78
78
< div className = "mdc-typography--display1" > Original documentation</ div >
79
79
< div className = "mdc-typography--body" >
80
- This component encapsulates < span className = "strong" >
81
- mdc-slider
82
- </ span > , you can refer to its documentation
80
+ This component encapsulates < span className = "strong" > mdc-slider</ span > ,
81
+ you can refer to its documentation
83
82
< a href = "https://github.com/material-components/material-components-web/tree/master/packages/mdc-slider" >
84
83
{ " " }
85
84
here
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ export default class SwitchPage extends Component {
42
42
43
43
< div className = "mdc-typography--display1" > Original documentation</ div >
44
44
< div className = "mdc-typography--body" >
45
- This component encapsulates < span className = "strong" >
46
- mdc-switch
47
- </ span > , you can refer to its documentation
45
+ This component encapsulates < span className = "strong" > mdc-switch</ span > ,
46
+ you can refer to its documentation
48
47
< a href = "https://github.com/material-components/material-components-web/tree/master/packages/mdc-switch" >
49
48
{ " " }
50
49
here
Original file line number Diff line number Diff line change 10
10
"test" : " npm run build && npm run prettier" ,
11
11
"lint" : " eslint index.js */*.jsx" ,
12
12
"lint-staged" : " lint-staged" ,
13
- "prettier" : " prettier -l *.js */*.jsx sample/webpack.config.js" ,
14
- "prettier:write" : " prettier --write *.js */*.jsx sample/webpack.config.js" ,
13
+ "prettier" : " prettier -l --print-width 80 *.js */*.jsx sample/webpack.config.js" ,
14
+ "prettier:write" : " prettier --write --print-width 80 *.js */*.jsx sample/webpack.config.js" ,
15
15
"sample" : " http-server ./sample"
16
16
},
17
17
"repository" : {
You can’t perform that action at this time.
0 commit comments