Skip to content

Commit ddd343c

Browse files
committed
fix stupid prettier
1 parent c72cf78 commit ddd343c

File tree

9 files changed

+19
-24
lines changed

9 files changed

+19
-24
lines changed

Diff for: docs/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"serve": "preact build && preact serve",
1111
"dev": "preact watch",
1212
"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'"
1515
},
1616
"repository": {
1717
"type": "git",

Diff for: docs/src/components/code-block/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ export default ({ children, ...props }) => {
1919
isHighlight = child && child.nodeName === "code";
2020
if (isHighlight) {
2121
let text = child.children[0].replace(/(^\s+|\s+$)/g, ""),
22-
lang = (child.attributes.class && child.attributes.class)
23-
.match(/lang-([a-z]+)/)[1],
22+
lang = (child.attributes.class && child.attributes.class).match(
23+
/lang-([a-z]+)/
24+
)[1],
2425
highlighted = hljs.highlightAuto(text, lang ? [lang] : null),
2526
hLang = highlighted.language;
2627
return (

Diff for: docs/src/routes/button/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ export default class ButtonPage extends Component {
6666

6767
<div className="mdc-typography--display1">Original documentation</div>
6868
<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
7271
<a href="https://github.com/material-components/material-components-web/tree/master/packages/mdc-button">
7372
{" "}
7473
here

Diff for: docs/src/routes/dialog/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ export default class DialogPage extends Component {
8181

8282
<div className="mdc-typography--display1">Original documentation</div>
8383
<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
8786
<a href="https://github.com/material-components/material-components-web/tree/master/packages/mdc-dialog">
8887
{" "}
8988
here

Diff for: docs/src/routes/drawer/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@ export default class DrawerPage extends Component {
9393

9494
<div className="mdc-typography--display1">Original documentation</div>
9595
<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
9998
<a href="https://github.com/material-components/material-components-web/tree/master/packages/mdc-drawer">
10099
{" "}
101100
here

Diff for: docs/src/routes/select/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ export default class SelectPage extends Component {
6767

6868
<div className="mdc-typography--display1">Original documentation</div>
6969
<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
7372
<a href="https://github.com/material-components/material-components-web/tree/master/packages/mdc-select">
7473
{" "}
7574
here

Diff for: docs/src/routes/slider/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ export default class SliderPage extends Component {
7777

7878
<div className="mdc-typography--display1">Original documentation</div>
7979
<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
8382
<a href="https://github.com/material-components/material-components-web/tree/master/packages/mdc-slider">
8483
{" "}
8584
here

Diff for: docs/src/routes/switch/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ export default class SwitchPage extends Component {
4242

4343
<div className="mdc-typography--display1">Original documentation</div>
4444
<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
4847
<a href="https://github.com/material-components/material-components-web/tree/master/packages/mdc-switch">
4948
{" "}
5049
here

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"test": "npm run build && npm run prettier",
1111
"lint": "eslint index.js */*.jsx",
1212
"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",
1515
"sample": "http-server ./sample"
1616
},
1717
"repository": {

0 commit comments

Comments
 (0)