Skip to content

Commit 50ca9e1

Browse files
MichaelDeBoeySaraVieira
authored andcommitted
Update prettier + prettify codebase (codesandbox#2989)
1 parent 0fdb7a7 commit 50ca9e1

File tree

37 files changed

+449
-328
lines changed

37 files changed

+449
-328
lines changed

.prettierrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.prettierrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
endOfLine: 'lf',
3+
proseWrap: 'always',
4+
singleQuote: true,
5+
trailingComma: 'es5',
6+
};

CODE_OF_CONDUCT.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
In the interest of fostering an open and welcoming environment, we as
66
contributors and maintainers pledge to making participation in our project and
77
our community a harassment-free experience for everyone, regardless of age, body
8-
size, disability, ethnicity, sex characteristics, gender identity and expression,
9-
level of experience, education, socio-economic status, nationality, personal
10-
appearance, race, religion, or sexual identity and orientation.
8+
size, disability, ethnicity, sex characteristics, gender identity and
9+
expression, level of experience, education, socio-economic status, nationality,
10+
personal appearance, race, religion, or sexual identity and orientation.
1111

1212
## Our Standards
1313

@@ -37,11 +37,11 @@ Project maintainers are responsible for clarifying the standards of acceptable
3737
behavior and are expected to take appropriate and fair corrective action in
3838
response to any instances of unacceptable behavior.
3939

40-
Project maintainers have the right and responsibility to remove, edit, or
41-
reject comments, commits, code, wiki edits, issues, and other contributions
42-
that are not aligned to this Code of Conduct, or to ban temporarily or
43-
permanently any contributor for other behaviors that they deem inappropriate,
44-
threatening, offensive, or harmful.
40+
Project maintainers have the right and responsibility to remove, edit, or reject
41+
comments, commits, code, wiki edits, issues, and other contributions that are
42+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
43+
contributor for other behaviors that they deem inappropriate, threatening,
44+
offensive, or harmful.
4545

4646
## Scope
4747

@@ -55,20 +55,21 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [email protected]. All
59-
complaints will be reviewed and investigated and will result in a response that
60-
is deemed necessary and appropriate to the circumstances. The project team is
61-
obligated to maintain confidentiality with regard to the reporter of an incident.
62-
Further details of specific enforcement policies may be posted separately.
58+
reported by contacting the project team at [email protected]. All complaints
59+
will be reviewed and investigated and will result in a response that is deemed
60+
necessary and appropriate to the circumstances. The project team is obligated to
61+
maintain confidentiality with regard to the reporter of an incident. Further
62+
details of specific enforcement policies may be posted separately.
6363

6464
Project maintainers who do not follow or enforce the Code of Conduct in good
6565
faith may face temporary or permanent repercussions as determined by other
6666
members of the project's leadership.
6767

6868
## Attribution
6969

70-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
71+
version 1.4, available at
72+
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
7273

7374
[homepage]: https://www.contributor-covenant.org
7475

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
"husky": "^2.2.0",
8484
"lerna": "^3.16.4",
8585
"lint-staged": "^9.2.5",
86-
"prettier": "1.19.0",
87-
"pretty-quick": "^1.10.0",
86+
"prettier": "1.19.1",
87+
"pretty-quick": "^2.0.1",
8888
"typescript": "3.7.2",
8989
"username": "^5.1.0"
9090
},

packages/app/src/app/componentConnectors.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ export const Observer = isOvermind
1717
? connect(({ store, signals, reaction, children }: any) =>
1818
children({ store, signals, reaction })
1919
)
20-
: inject('store', 'signals')(
20+
: inject(
21+
'store',
22+
'signals'
23+
)(
2124
observer(({ store, signals, reaction, children }: any) =>
2225
children({ store, signals, reaction })
2326
)

packages/app/src/app/components/Preview/DevTools/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ export class DevTools extends React.PureComponent<Props, State> {
238238

239239
if (
240240
status === 'success' &&
241-
(newStatus !== 'error' && newStatus !== 'warning')
241+
newStatus !== 'error' &&
242+
newStatus !== 'warning'
242243
) {
243244
newStatus = 'success';
244245
} else if (status === 'warning' && newStatus !== 'error') {

packages/app/src/app/components/SocialInfo/SocialInfo.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import GithubIcon from 'react-icons/lib/fa/github';
44
import { Icon } from './elements';
55
import { SpectrumLogo } from '../SpectrumLogo';
66

7-
export const SocialInfo: React.FC<
8-
React.HTMLAttributes<HTMLDivElement>
9-
> = props => (
7+
export const SocialInfo: React.FC<React.HTMLAttributes<
8+
HTMLDivElement
9+
>> = props => (
1010
<div {...props}>
1111
<Icon href="https://twitter.com/codesandbox">
1212
<TwitterIcon />

packages/app/src/app/components/SpectrumLogo.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
22
import IconBase from 'react-icons/lib/IconBase';
33

4-
export const SpectrumLogo: React.FC<
5-
React.SVGAttributes<SVGElement>
6-
> = props => (
4+
export const SpectrumLogo: React.FC<React.SVGAttributes<
5+
SVGElement
6+
>> = props => (
77
<IconBase
88
width="1em"
99
height="1em"

packages/app/src/app/components/TypescriptIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
22
import IconBase from 'react-icons/lib/IconBase';
33

4-
export const TypescriptIcon: React.FC<
5-
React.SVGAttributes<SVGElement>
6-
> = props => (
4+
export const TypescriptIcon: React.FC<React.SVGAttributes<
5+
SVGElement
6+
>> = props => (
77
<IconBase viewBox="0 0 32 32" {...props}>
88
<title>Typescript</title>
99
<path d="M23.827,8.243A4.424,4.424,0,0,1,26.05,9.524a5.853,5.853,0,0,1,.852,1.143c.011.045-1.534,1.083-2.471,1.662-.034.023-.169-.124-.322-.35a2.014,2.014,0,0,0-1.67-1c-1.077-.074-1.771.49-1.766,1.433a1.3,1.3,0,0,0,.153.666c.237.49.677.784,2.059,1.383,2.544,1.095,3.636,1.817,4.31,2.843a5.158,5.158,0,0,1,.416,4.333,4.764,4.764,0,0,1-3.932,2.815,10.9,10.9,0,0,1-2.708-.028,6.531,6.531,0,0,1-3.616-1.884,6.278,6.278,0,0,1-.926-1.371,2.655,2.655,0,0,1,.327-.208c.158-.09.756-.434,1.32-.761L19.1,19.6l.214.312a4.771,4.771,0,0,0,1.35,1.292,3.3,3.3,0,0,0,3.458-.175,1.545,1.545,0,0,0,.2-1.974c-.276-.395-.84-.727-2.443-1.422a8.8,8.8,0,0,1-3.349-2.055,4.687,4.687,0,0,1-.976-1.777,7.116,7.116,0,0,1-.062-2.268,4.332,4.332,0,0,1,3.644-3.374A9,9,0,0,1,23.827,8.243ZM15.484,9.726l.011,1.454h-4.63V24.328H7.6V11.183H2.97V9.755A13.986,13.986,0,0,1,3.01,8.289c.017-.023,2.832-.034,6.245-.028l6.211.017Z" />
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Overmind, IConfiguration } from 'overmind';
22
import { createContext } from 'react';
33

4-
export const context = createContext<Overmind<IConfiguration>>({} as Overmind<
5-
IConfiguration
6-
>);
4+
export const context = createContext<Overmind<IConfiguration>>(
5+
{} as Overmind<IConfiguration>
6+
);
77

88
export const { Provider } = context;

0 commit comments

Comments
 (0)