Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use prettier to format CSS and HTML (#343)
- Loading branch information
Showing
40 changed files
with
905 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@media (max-width: 480px) { | ||
.bd-examples {margin-right: -.75rem;margin-left: -.75rem | ||
} | ||
|
||
.bd-examples>[class^="col-"] { | ||
padding-right: .75rem; | ||
padding-left: .75rem; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<HTML CLASS="no-js mY-ClAsS"> | ||
<HEAD> | ||
<META CHARSET="utf-8"> | ||
<TITLE>My tITlE</TITLE> | ||
<META NAME="description" content="My CoNtEnT"> | ||
</HEAD> | ||
<body> | ||
<P>Hello world!<BR> This is HTML5 Boilerplate.</P> | ||
<SCRIPT> | ||
window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date; | ||
ga('create', 'UA-XXXXX-Y', 'auto'); ga('send', 'pageview') | ||
</SCRIPT> | ||
<SCRIPT | ||
src="https://www.google-analytics.com/analytics.js" ASYNC DEFER></SCRIPT> | ||
</body> | ||
</HTML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Header | ||
====== | ||
|
||
_Look,_ code blocks are formatted *too!* | ||
|
||
```js | ||
// This should be handled by ESLint instead of Prettier | ||
function identity(x) { | ||
if (foo) { | ||
console.log('bar'); | ||
} | ||
} | ||
``` | ||
|
||
```css | ||
/* This should be handled by Prettier */ | ||
.foo { color:red;} | ||
``` | ||
|
||
Pilot|Airport|Hours | ||
--|:--:|--: | ||
John Doe|SKG|1338 | ||
Jane Roe|JFK|314 | ||
|
||
- - - - - - - - - - - - - - - | ||
|
||
+ List | ||
+ with a [link] (/to/somewhere) | ||
+ and [another one] | ||
|
||
|
||
[another one]: http://example.com 'Example title' | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Curabitur consectetur maximus risus, sed maximus tellus tincidunt et. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// unchanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// unchanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Header | ||
====== | ||
|
||
_Look,_ code blocks are formatted *too!* | ||
|
||
```js | ||
// This should be handled by ESLint instead of Prettier | ||
function identity(x) { | ||
if (foo) | ||
console.log('bar') | ||
} | ||
``` | ||
|
||
```css | ||
/* This should be handled by Prettier */ | ||
.foo { color:red;} | ||
``` | ||
|
||
Pilot|Airport|Hours | ||
--|:--:|--: | ||
John Doe|SKG|1338 | ||
Jane Roe|JFK|314 | ||
|
||
- - - - - - - - - - - - - - - | ||
|
||
+ List | ||
+ with a [link] (/to/somewhere) | ||
+ and [another one] | ||
|
||
|
||
[another one]: http://example.com 'Example title' | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Curabitur consectetur maximus risus, sed maximus tellus tincidunt et. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// unchanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// unchanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Header | ||
====== | ||
|
||
_Look,_ code blocks are formatted *too!* | ||
|
||
```js | ||
// This should be handled by ESLint instead of Prettier | ||
function identity(x) { | ||
if (foo) | ||
console.log('bar') | ||
} | ||
``` | ||
|
||
```css | ||
/* This should be handled by Prettier */ | ||
.foo { color:red;} | ||
``` | ||
|
||
Pilot|Airport|Hours | ||
--|:--:|--: | ||
John Doe|SKG|1338 | ||
Jane Roe|JFK|314 | ||
|
||
- - - - - - - - - - - - - - - | ||
|
||
+ List | ||
+ with a [link] (/to/somewhere) | ||
+ and [another one] | ||
|
||
|
||
[another one]: http://example.com 'Example title' | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Curabitur consectetur maximus risus, sed maximus tellus tincidunt et. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// unchanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// unchanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// unchanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// unchanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// unchanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Header | ||
====== | ||
|
||
_Look,_ code blocks are formatted *too!* | ||
|
||
```js | ||
// This should be handled by ESLint instead of Prettier | ||
function identity(x) { | ||
if (foo) | ||
console.log("bar") | ||
} | ||
``` | ||
|
||
```css | ||
/* This should be handled by Prettier */ | ||
.foo { color:red;} | ||
``` | ||
|
||
Pilot|Airport|Hours | ||
--|:--:|--: | ||
John Doe|SKG|1338 | ||
Jane Roe|JFK|314 | ||
|
||
- - - - - - - - - - - - - - - | ||
|
||
+ List | ||
+ with a [link] (/to/somewhere) | ||
+ and [another one] | ||
|
||
|
||
[another one]: http://example.com 'Example title' | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Curabitur consectetur maximus risus, sed maximus tellus tincidunt et. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// unchanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// unchanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Header | ||
====== | ||
|
||
_Look,_ code blocks are formatted *too!* | ||
|
||
```js | ||
// This should be handled by ESLint instead of Prettier | ||
function identity(x) { | ||
if (foo) | ||
console.log('bar') | ||
} | ||
``` | ||
|
||
```css | ||
/* This should be handled by Prettier */ | ||
.foo { color:red;} | ||
``` | ||
|
||
Pilot|Airport|Hours | ||
--|:--:|--: | ||
John Doe|SKG|1338 | ||
Jane Roe|JFK|314 | ||
|
||
- - - - - - - - - - - - - - - | ||
|
||
+ List | ||
+ with a [link] (/to/somewhere) | ||
+ and [another one] | ||
|
||
|
||
[another one]: http://example.com 'Example title' | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Curabitur consectetur maximus risus, sed maximus tellus tincidunt et. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@media (max-width: 480px) { | ||
.bd-examples { | ||
margin-right: -0.75rem; | ||
margin-left: -0.75rem; | ||
} | ||
|
||
.bd-examples > [class^='col-'] { | ||
padding-right: 0.75rem; | ||
padding-left: 0.75rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!doctype html> | ||
<html class="no-js mY-ClAsS"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>My tITlE</title> | ||
<meta name="description" content="My CoNtEnT" /> | ||
</head> | ||
<body> | ||
<p> | ||
Hello world!<br /> | ||
This is HTML5 Boilerplate. | ||
</p> | ||
<script> | ||
window.ga = function () { | ||
ga.q.push(arguments) | ||
} | ||
ga.q = [] | ||
ga.l = +new Date() | ||
ga('create', 'UA-XXXXX-Y', 'auto') | ||
ga('send', 'pageview') | ||
</script> | ||
<script | ||
src="https://www.google-analytics.com/analytics.js" | ||
async | ||
defer | ||
></script> | ||
</body> | ||
</html> |
Oops, something went wrong.