Upgrade prettier dependency to v1.6.0, fix lint (#2681)
parent
db4d7ac1db
commit
82ad911ddc
|
@ -50,7 +50,7 @@
|
|||
"eslint-plugin-react": "7.1.0",
|
||||
"jest": "20.0.0",
|
||||
"mkdirp": "^0.5.1",
|
||||
"prettier": "1.5.2",
|
||||
"prettier": "1.6.0",
|
||||
"rimraf": "2.6.1",
|
||||
"rollup": "0.41.1",
|
||||
"rollup-plugin-commonjs": "7.0.0",
|
||||
|
|
|
@ -388,7 +388,8 @@ function genericPrintNoParens(path, options, print, args) {
|
|||
firstNonMemberParent = path.getParentNode(i);
|
||||
i++;
|
||||
} while (
|
||||
firstNonMemberParent && firstNonMemberParent.type === "MemberExpression"
|
||||
firstNonMemberParent &&
|
||||
firstNonMemberParent.type === "MemberExpression"
|
||||
);
|
||||
|
||||
const shouldInline =
|
||||
|
@ -4371,7 +4372,10 @@ function nodeStr(node, options, isFlowOrTypeScriptDirectiveLiteral) {
|
|||
}
|
||||
|
||||
function printRegex(node) {
|
||||
const flags = node.flags.split("").sort().join("");
|
||||
const flags = node.flags
|
||||
.split("")
|
||||
.sort()
|
||||
.join("");
|
||||
return `/${node.pattern}/${flags}`;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
const React = require("react");
|
||||
|
||||
const GithubButton = props =>
|
||||
const GithubButton = props => (
|
||||
<a
|
||||
className="github-button"
|
||||
href={props.config.githubUrl}
|
||||
|
@ -13,7 +13,8 @@ const GithubButton = props =>
|
|||
aria-label="Star this project on GitHub"
|
||||
>
|
||||
Star
|
||||
</a>;
|
||||
</a>
|
||||
);
|
||||
|
||||
GithubButton.propTypes = {
|
||||
config: React.PropTypes.object
|
||||
|
|
|
@ -43,9 +43,7 @@ class HomeSplash extends React.Component {
|
|||
<div className="inner">
|
||||
<h2 className="projectTitle">
|
||||
{siteConfig.title}
|
||||
<small>
|
||||
{siteConfig.tagline}
|
||||
</small>
|
||||
<small>{siteConfig.tagline}</small>
|
||||
</h2>
|
||||
<div className="section promoSection">
|
||||
<div className="promoRow">
|
||||
|
@ -164,9 +162,7 @@ class Index extends React.Component {
|
|||
</Container>*/}
|
||||
|
||||
<div className="productShowcaseSection paddingTop paddingBottom lightBackground">
|
||||
<h2>
|
||||
Who{"'"}s Using Prettier?
|
||||
</h2>
|
||||
<h2>Who{"'"}s Using Prettier?</h2>
|
||||
<p>
|
||||
A few of the{" "}
|
||||
<a href="https://www.npmjs.com/browse/depended/prettier">
|
||||
|
@ -174,9 +170,7 @@ class Index extends React.Component {
|
|||
</a>{" "}
|
||||
using Prettier
|
||||
</p>
|
||||
<div className="logos">
|
||||
{showcase}
|
||||
</div>
|
||||
<div className="logos">{showcase}</div>
|
||||
<div className="more-users">
|
||||
<a
|
||||
className="button"
|
||||
|
|
|
@ -23,9 +23,7 @@ class Users extends React.Component {
|
|||
<Container padding={["bottom", "top"]}>
|
||||
<div className="showcaseSection">
|
||||
<div className="prose">
|
||||
<h1>
|
||||
Who{"'"}s Using This?
|
||||
</h1>
|
||||
<h1>Who{"'"}s Using This?</h1>
|
||||
<p>
|
||||
A few of the{" "}
|
||||
<a href="https://www.npmjs.com/browse/depended/prettier">
|
||||
|
@ -34,9 +32,7 @@ class Users extends React.Component {
|
|||
using Prettier
|
||||
</p>
|
||||
</div>
|
||||
<div className="logos">
|
||||
{showcase}
|
||||
</div>
|
||||
<div className="logos">{showcase}</div>
|
||||
<p>Are you using this project?</p>
|
||||
<a
|
||||
href={`${siteConfig.githubUrl}/edit/master/website/users.json`}
|
||||
|
|
|
@ -3031,9 +3031,9 @@ preserve@^0.2.0:
|
|||
version "0.2.0"
|
||||
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
|
||||
|
||||
prettier@1.5.2:
|
||||
version "1.5.2"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.5.2.tgz#7ea0751da27b93bfb6cecfcec509994f52d83bb3"
|
||||
prettier@1.6.0:
|
||||
version "1.6.0"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.6.0.tgz#23e9c68251f440feb847f558821bead21765919a"
|
||||
|
||||
pretty-format@^20.0.3:
|
||||
version "20.0.3"
|
||||
|
|
Loading…
Reference in New Issue