Skip to content

Commit 54f336a

Browse files
committed
add prettier format
1 parent 48b8373 commit 54f336a

13 files changed

Lines changed: 863 additions & 844 deletions

File tree

.github/workflows/pkg.pr.new.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
# append the git commit to the package.json version.
2525
# We do this because some cache mechanisms (like nextjs) don't work well with the same version and ignore the changes
2626
# until you manually delete the cache
27-
- run: jq '.version = .version + "-" + env.GITHUB_SHA' package.json > package.json.tmp && mv package.json.tmp package.json
27+
- run:
28+
jq '.version = .version + "-" + env.GITHUB_SHA' package.json >
29+
package.json.tmp && mv package.json.tmp package.json
2830

2931
- run: npx pkg-pr-new publish

.prettierrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@ module.exports = {
22
singleQuote: true,
33
trailingComma: 'es5',
44
proseWrap: 'always',
5+
overrides: [
6+
{
7+
files: ['*.js', '*.flow'],
8+
options: { parser: 'flow' },
9+
},
10+
],
511
};

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
and this project adheres to
7+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
78

89
## [Unreleased]
910

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ React wrapper around [Popper](https://popper.js.org).
1515

1616
This library wraps `@popperjs/core`, not `@floating-ui/dom`.
1717

18-
To use the new Floating UI package with React, instead visit https://floating-ui.com/docs/react-dom.
18+
To use the new Floating UI package with React, instead visit
19+
https://floating-ui.com/docs/react-dom.
1920

2021
---
2122

@@ -46,7 +47,6 @@ The full documentation can be found on the official Popper website:
4647

4748
http://popper.js.org/react-popper
4849

49-
5050
## Running Locally
5151

5252
#### clone repo

demo/index.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>react-popper</title>
6+
<link
7+
href="https://fonts.googleapis.com/css?family=Lato:400,900"
8+
rel="stylesheet"
9+
/>
10+
</head>
311

4-
<head>
5-
<meta charset="UTF-8">
6-
<title>react-popper</title>
7-
<link href="https://fonts.googleapis.com/css?family=Lato:400,900" rel="stylesheet">
8-
</head>
9-
10-
<body>
11-
<noscript>You need JavaScript to view this website.</noscript>
12-
<div id="root"></div>
13-
<script src="./index.js"></script>
14-
</body>
15-
12+
<body>
13+
<noscript>You need JavaScript to view this website.</noscript>
14+
<div id="root"></div>
15+
<script src="./index.js"></script>
16+
</body>
1617
</html>

0 commit comments

Comments
 (0)