Skip to content

Commit

Permalink
Use Prettier and EditorConfig for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dguo committed Dec 11, 2018
1 parent 1d76f20 commit 1e93293
Show file tree
Hide file tree
Showing 6 changed files with 446 additions and 274 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
34 changes: 21 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
{
"name": "make-a-readme",
"description": "Website for explaining what a README is",
"version": "0.1.0",
"scripts": {
"start": "yarn install && live-server --no-browser public"
},
"repository": "https://github.com/dguo/make-a-readme",
"author": "Danny Guo",
"license": "MIT",
"private": true,
"devDependencies": {
"live-server": "1.2.1"
}
"name": "make-a-readme",
"description": "Website for explaining what a README is",
"version": "0.1.0",
"scripts": {
"format": "prettier --write package.json public/*",
"format:check": "prettier --list-different package.json public/*",
"start": "yarn install && live-server --no-browser public"
},
"repository": "https://github.com/dguo/make-a-readme",
"author": "Danny Guo",
"license": "MIT",
"private": true,
"devDependencies": {
"live-server": "1.2.1",
"prettier": "1.15.3"
},
"prettier": {
"bracketSpacing": false,
"singleQuote": true,
"tabWidth": 4
}
}
22 changes: 15 additions & 7 deletions public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ html {
font-family: 'Open Sans', sans-serif;
}

a, #yet, .message a:not(.button):not(.tag) {
a,
#yet,
.message a:not(.button):not(.tag) {
color: hsl(348, 100%, 61%);
text-decoration: none;
}

a:hover, #yet:hover, .message a:not(.button):hover {
a:hover,
#yet:hover,
.message a:not(.button):hover {
color: hsl(348, 60%, 61%);
text-decoration: none;
}
Expand All @@ -16,7 +20,8 @@ h1 {
margin-top: 0.5em;
}

h3, p {
h3,
p {
margin-top: 1em;
}

Expand All @@ -42,11 +47,13 @@ h3, p {
max-width: 800px;
}

#template, #faq {
#template,
#faq {
background-color: hsl(0, 0%, 21%);
}

textarea, #rendered {
textarea,
#rendered {
margin: auto;
display: block;
width: 95%;
Expand All @@ -70,7 +77,8 @@ textarea {
list-style: unset;
}

#rendered code, .message-body code {
#rendered code,
.message-body code {
color: #24292e;
}

Expand All @@ -79,7 +87,7 @@ textarea {
}

.message-body code {
background-color: rgba(27, 31, 35, .05);
background-color: rgba(27, 31, 35, 0.05);
}

article {
Expand Down
Loading

0 comments on commit 1e93293

Please sign in to comment.