Skip to content

Commit c64227b

Browse files
committed
Format entire project with prettier
1 parent dd69e45 commit c64227b

File tree

108 files changed

+9535
-8699
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+9535
-8699
lines changed

.babelrc

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"presets":[
3-
[
4-
"@babel/preset-env",
5-
{
6-
"targets":{
7-
"esmodules": true
8-
}
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"esmodules": true
98
}
10-
]
9+
}
10+
]
1111
]
1212
}

.eslintrc.json

+7-13
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
2-
"extends": [
3-
"eslint:recommended",
4-
"google",
5-
"plugin:polymer/polymer-3"
6-
],
2+
"extends": ["eslint:recommended", "google", "plugin:polymer/polymer-3"],
73
"parserOptions": {
84
"sourceType": "module",
95
"ecmaVersion": 2018
@@ -12,21 +8,19 @@
128
"browser": true,
139
"es6": true
1410
},
15-
"plugins": [
16-
"html",
17-
"polymer"
18-
],
19-
"ignorePatterns": [
20-
"node_modules/"
21-
],
11+
"plugins": ["html", "polymer"],
12+
"ignorePatterns": ["node_modules/"],
2213
"rules": {
2314
"brace-style": "off",
2415
"new-cap": "off",
2516
"no-var": "error",
2617
"require-jsdoc": "off",
2718
"max-len": ["error", { "code": 120 }],
2819
"object-curly-spacing": ["error", "always"],
29-
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
20+
"space-before-function-paren": [
21+
"error",
22+
{ "anonymous": "always", "named": "never", "asyncArrow": "always" }
23+
],
3024
"linebreak-style": 0
3125
},
3226
"globals": {

.prettierrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"singleQuote": true
2+
"singleQuote": true,
3+
"printWidth": 100
34
}

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ os: linux
22
dist: bionic
33
language: node_js
44
node_js:
5-
- "10"
5+
- '10'
66
jobs:
77
include:
88
- stage: Build
@@ -12,7 +12,7 @@ jobs:
1212
script: npm run build
1313
- name: Lint
1414
script: npm run lint
15-
- name: Prettier
15+
- name: Format
1616
script: npm run prettier
1717
- name: Security
1818
script: npm audit && npm audit --prefix functions
@@ -31,13 +31,13 @@ jobs:
3131
branch: master
3232
project: hoverboard-master
3333
token:
34-
secure: "J7nrIZcUndOsZLPG8U/6qPXfYo3XDu5brEoTM3pJOpy5NLVYVrCO4ewn/hcldyJWR7TmJ4SLGti+gxOSt3kRRqgSLLNB2Xsd2t+jL6l2PhHobad+T0oGuHyhYFtidISWh4C5lJp1NGxBJGeeVos2vEU6qNADseKCdvvx7CVcMa0oSgLE21sNyMeggvoHKuWnFYzI+1Glwau5zaVLCwj9mObEFkuYwxF8YIoTigkdemQg+b2k4fO/L8ohgs/a+WCVKxeg5VfagO9rwg+XKGiF9IjTBFuaJSghSoSQTGiqol6FY7czN/64xbXOFFPAvL6dS3RbaA6l1bxRbD7h/oC3/No4T3wKwVI68dnNstbNcHMtGdgoFJTaJMVn8Wg2gnWGeTxukDlfLyoEKmsMMWVN5GP2KvWaVF51vZBQfJaMSJ9YaFFs4yjYPydZmKgYMrH8a7eoR5aGEfntPZCULIJneTwj0NtwfCirLYsLQXCbkxRJNBOVNoEEdyASazVgQ08qC+pA9XO5pJuT0ozqeq5KlxznGYcxmrP54QQj58tYSCU72Ic5VVRBlZhfl+wm5254SMOHXJ63N74HZmpXJfN9nj1I2b0bHWDZ8AFakzn9XF5Kb7UDJJQ+tYJWZ6ijpTDn+L8EAlklcUnTHFOaVaQgf5TTLUWgs8C37joOd2XqX74="
34+
secure: 'J7nrIZcUndOsZLPG8U/6qPXfYo3XDu5brEoTM3pJOpy5NLVYVrCO4ewn/hcldyJWR7TmJ4SLGti+gxOSt3kRRqgSLLNB2Xsd2t+jL6l2PhHobad+T0oGuHyhYFtidISWh4C5lJp1NGxBJGeeVos2vEU6qNADseKCdvvx7CVcMa0oSgLE21sNyMeggvoHKuWnFYzI+1Glwau5zaVLCwj9mObEFkuYwxF8YIoTigkdemQg+b2k4fO/L8ohgs/a+WCVKxeg5VfagO9rwg+XKGiF9IjTBFuaJSghSoSQTGiqol6FY7czN/64xbXOFFPAvL6dS3RbaA6l1bxRbD7h/oC3/No4T3wKwVI68dnNstbNcHMtGdgoFJTaJMVn8Wg2gnWGeTxukDlfLyoEKmsMMWVN5GP2KvWaVF51vZBQfJaMSJ9YaFFs4yjYPydZmKgYMrH8a7eoR5aGEfntPZCULIJneTwj0NtwfCirLYsLQXCbkxRJNBOVNoEEdyASazVgQ08qC+pA9XO5pJuT0ozqeq5KlxznGYcxmrP54QQj58tYSCU72Ic5VVRBlZhfl+wm5254SMOHXJ63N74HZmpXJfN9nj1I2b0bHWDZ8AFakzn9XF5Kb7UDJJQ+tYJWZ6ijpTDn+L8EAlklcUnTHFOaVaQgf5TTLUWgs8C37joOd2XqX74='
3535
- provider: firebase
3636
skip_cleanup: true
3737
on:
3838
branch: develop
3939
project: hoverboard-dev
4040
token:
41-
secure: "J7nrIZcUndOsZLPG8U/6qPXfYo3XDu5brEoTM3pJOpy5NLVYVrCO4ewn/hcldyJWR7TmJ4SLGti+gxOSt3kRRqgSLLNB2Xsd2t+jL6l2PhHobad+T0oGuHyhYFtidISWh4C5lJp1NGxBJGeeVos2vEU6qNADseKCdvvx7CVcMa0oSgLE21sNyMeggvoHKuWnFYzI+1Glwau5zaVLCwj9mObEFkuYwxF8YIoTigkdemQg+b2k4fO/L8ohgs/a+WCVKxeg5VfagO9rwg+XKGiF9IjTBFuaJSghSoSQTGiqol6FY7czN/64xbXOFFPAvL6dS3RbaA6l1bxRbD7h/oC3/No4T3wKwVI68dnNstbNcHMtGdgoFJTaJMVn8Wg2gnWGeTxukDlfLyoEKmsMMWVN5GP2KvWaVF51vZBQfJaMSJ9YaFFs4yjYPydZmKgYMrH8a7eoR5aGEfntPZCULIJneTwj0NtwfCirLYsLQXCbkxRJNBOVNoEEdyASazVgQ08qC+pA9XO5pJuT0ozqeq5KlxznGYcxmrP54QQj58tYSCU72Ic5VVRBlZhfl+wm5254SMOHXJ63N74HZmpXJfN9nj1I2b0bHWDZ8AFakzn9XF5Kb7UDJJQ+tYJWZ6ijpTDn+L8EAlklcUnTHFOaVaQgf5TTLUWgs8C37joOd2XqX74="
41+
secure: 'J7nrIZcUndOsZLPG8U/6qPXfYo3XDu5brEoTM3pJOpy5NLVYVrCO4ewn/hcldyJWR7TmJ4SLGti+gxOSt3kRRqgSLLNB2Xsd2t+jL6l2PhHobad+T0oGuHyhYFtidISWh4C5lJp1NGxBJGeeVos2vEU6qNADseKCdvvx7CVcMa0oSgLE21sNyMeggvoHKuWnFYzI+1Glwau5zaVLCwj9mObEFkuYwxF8YIoTigkdemQg+b2k4fO/L8ohgs/a+WCVKxeg5VfagO9rwg+XKGiF9IjTBFuaJSghSoSQTGiqol6FY7czN/64xbXOFFPAvL6dS3RbaA6l1bxRbD7h/oC3/No4T3wKwVI68dnNstbNcHMtGdgoFJTaJMVn8Wg2gnWGeTxukDlfLyoEKmsMMWVN5GP2KvWaVF51vZBQfJaMSJ9YaFFs4yjYPydZmKgYMrH8a7eoR5aGEfntPZCULIJneTwj0NtwfCirLYsLQXCbkxRJNBOVNoEEdyASazVgQ08qC+pA9XO5pJuT0ozqeq5KlxznGYcxmrP54QQj58tYSCU72Ic5VVRBlZhfl+wm5254SMOHXJ63N74HZmpXJfN9nj1I2b0bHWDZ8AFakzn9XF5Kb7UDJJQ+tYJWZ6ijpTDn+L8EAlklcUnTHFOaVaQgf5TTLUWgs8C37joOd2XqX74='
4242
allow_failures:
4343
- name: Security

CODE_OF_CONDUCT.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
1616

1717
Examples of unacceptable behavior by participants include:
1818

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
19+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
- Trolling, insulting/derogatory comments, and personal or political attacks
21+
- Public or private harassment
22+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
- Other conduct which could reasonably be considered inappropriate in a professional setting
2424

2525
## Our Responsibilities
2626

CONTRIBUTING.md

+28-32
Original file line numberDiff line numberDiff line change
@@ -6,62 +6,58 @@ Hoverboard are built in the open, and the GDG[x] team eagerly encourage any and
66

77
**If you are filing an issue to request a feature**, please provide a clear description of the feature. It can be helpful to describe answers to the following questions:
88

9-
1. **Who will use the feature?** _“As someone filling out a form…”_
10-
2. **When will they use the feature?** _“When I enter an invalid value…”_
11-
3. **What is the user’s goal?** _“I want to be visually notified that the value needs to be corrected…”_
9+
1. **Who will use the feature?** _“As someone filling out a form…”_
10+
2. **When will they use the feature?** _“When I enter an invalid value…”_
11+
3. **What is the user’s goal?** _“I want to be visually notified that the value needs to be corrected…”_
1212

1313
**If you are filing an issue to report a bug**, please provide:
1414

15-
1. **A clear description of the bug and related expectations.** Consider using the following example template for reporting a bug:
15+
1. **A clear description of the bug and related expectations.** Consider using the following example template for reporting a bug:
1616

17-
```markdown
18-
19-
The `paper-foo` element causes the page to turn pink when clicked.
17+
```markdown
18+
The `paper-foo` element causes the page to turn pink when clicked.
2019

21-
## Expected outcome
20+
## Expected outcome
2221

23-
The page stays the same color.
22+
The page stays the same color.
2423

25-
## Actual outcome
24+
## Actual outcome
2625

27-
The page turns pink.
26+
The page turns pink.
2827

29-
## Steps to reproduce
28+
## Steps to reproduce
3029

31-
1. Put a `paper-foo` element in the page.
32-
2. Open the page in a web browser.
33-
3. Click the `paper-foo` element.
34-
35-
```
30+
1. Put a `paper-foo` element in the page.
31+
2. Open the page in a web browser.
32+
3. Click the `paper-foo` element.
33+
```
3634

37-
3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers.
35+
3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers.
3836

3937
### Submitting Pull Requests
4038

4139
**Before creating a pull request**, please ensure that an issue exists for the corresponding change in the pull request that you intend to make. **If an issue does not exist, please create one per the guidelines above**. The goal is to discuss the design and necessity of the proposed change with Polymer authors and community before diving into a pull request.
4240

4341
When submitting pull requests, please provide:
4442

45-
1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues in the pull request description using the following syntax:
43+
1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues in the pull request description using the following syntax:
4644

47-
```markdown
48-
(For a single issue)
49-
Fixes #20
45+
```markdown
46+
(For a single issue)
47+
Fixes #20
5048

51-
(For multiple issues)
52-
Fixes #32, fixes #40
53-
```
49+
(For multiple issues)
50+
Fixes #32, fixes #40
51+
```
5452

55-
2. **A succinct description of the design** used to fix any related issues. For example:
53+
2. **A succinct description of the design** used to fix any related issues. For example:
5654

57-
```markdown
58-
This fixes #20 by removing styles that leaked which would cause the page to turn pink whenever `paper-foo` is clicked.
59-
```
55+
```markdown
56+
This fixes #20 by removing styles that leaked which would cause the page to turn pink whenever `paper-foo` is clicked.
57+
```
6058

61-
3. **At least one test for each bug fixed or feature added** as part of the pull request. Pull requests that fix bugs or add features without accompanying tests will not be considered.
59+
3. **At least one test for each bug fixed or feature added** as part of the pull request. Pull requests that fix bugs or add features without accompanying tests will not be considered.
6260

6361
If a proposed change contains multiple commits, please [squash commits](https://www.google.com/url?q=http://blog.steveklabnik.com/posts/2012-11-08-how-to-squash-commits-in-a-github-pull-request) to as few as is necessary to succinctly express the change. A Polymer author can help you squash commits, so don’t be afraid to ask us if you need help with that!
6462

65-
66-
6763
_Copied from [Polymer Elements contributing guide](https://github.com/PolymerElements/ContributionGuide/blob/master/CONTRIBUTING.md)_

README.md

+33-27
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,29 @@
66
<a href="#getting-started">:rocket: Get Started</a>
77
</p>
88

9-
[![Build Status](https://travis-ci.org/gdg-x/hoverboard.svg?branch=master)](https://travis-ci.org/gdg-x/hoverboard) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgdg-x%2Fhoverboard.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgdg-x%2Fhoverboard?ref=badge_shield)[![Codacy Badge](https://api.codacy.com/project/badge/Grade/7973ac656dc94e42858ce640bb02de58)](https://www.codacy.com/app/pamuditha/hoverboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=pamuditha/hoverboard&amp;utm_campaign=Badge_Grade)
9+
[![Build Status](https://travis-ci.org/gdg-x/hoverboard.svg?branch=master)](https://travis-ci.org/gdg-x/hoverboard) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgdg-x%2Fhoverboard.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgdg-x%2Fhoverboard?ref=badge_shield)[![Codacy Badge](https://api.codacy.com/project/badge/Grade/7973ac656dc94e42858ce640bb02de58)](https://www.codacy.com/app/pamuditha/hoverboard?utm_source=github.com&utm_medium=referral&utm_content=pamuditha/hoverboard&utm_campaign=Badge_Grade)
1010

1111
## Overview
12+
1213
Project Hoverboard is the conference website template that helps you to set up a mobile-first conference website with blog, speaker and schedule management in a few minutes.
1314

1415
The template is created based on 7 years of [GDG Lviv](https://www.meetup.com/GDG-Lviv/) team experience of running conferences and feedback from more than 500 event organizers from all around the world who were using previous Hoverboard versions.
1516

1617
Our goal is to allow event organizers to set up a professional conference website with minimum resources. To get started you need only basic knowledge of web technologies and a free Firebase account.
1718

1819
## Features
19-
| Feature | Description |
20-
|---|---|
21-
| **Fast and optimized** | 91/100 PWA on [Lighthouse](https://www.webpagetest.org/lighthouse.php?test=180111_1P_027a041bc5102982f074014807320a86&run=3) |
22-
| **Works offline** | shitty WiFi on the venue is not a problem anymore |
23-
| **Mobile-first** | layouts optimized for small screens, Hoverboard can be installed as a native app on your phone |
24-
| **Push notifications** | remind about sessions in My schedule, session feedback or target users with a custom message |
25-
| **SEO optimized** | index all content and get to the top in search results |
26-
| **Speakers and schedule management** | keep and update all information in the Firebase |
27-
| **My schedule** | let attendees save sessions they want to visit |
28-
| **Customizable theme** | change colors to match your style |
29-
| **Blog** | post announcements, updates and useful information |
20+
21+
| Feature | Description |
22+
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
23+
| **Fast and optimized** | 91/100 PWA on [Lighthouse](https://www.webpagetest.org/lighthouse.php?test=180111_1P_027a041bc5102982f074014807320a86&run=3) |
24+
| **Works offline** | shitty WiFi on the venue is not a problem anymore |
25+
| **Mobile-first** | layouts optimized for small screens, Hoverboard can be installed as a native app on your phone |
26+
| **Push notifications** | remind about sessions in My schedule, session feedback or target users with a custom message |
27+
| **SEO optimized** | index all content and get to the top in search results |
28+
| **Speakers and schedule management** | keep and update all information in the Firebase |
29+
| **My schedule** | let attendees save sessions they want to visit |
30+
| **Customizable theme** | change colors to match your style |
31+
| **Blog** | post announcements, updates and useful information |
3032

3133
## Getting Started
3234

@@ -39,6 +41,7 @@ If you don't want to bother with the dependencies, you can use the docker contai
3941
:book: Read more in [docker docs](/docs/tutorials/05-docker.md).
4042

4143
## Updating
44+
4245
Here is a git workflow for updating your fork (or downloaded copy) to the latest version:
4346

4447
```console
@@ -61,11 +64,11 @@ The [Getting Started guide](#getting-started) is probably a good first point of
6164

6265
## Technology Stack
6366

64-
* Polymer 3
65-
* Redux
66-
* Firebase
67-
* Service Worker
68-
* CSS Grid
67+
- Polymer 3
68+
- Redux
69+
- Firebase
70+
- Service Worker
71+
- CSS Grid
6972

7073
## Contributing
7174

@@ -81,35 +84,38 @@ Any other issue labeled [`help wanted`](https://github.com/gdg-x/hoverboard/labe
8184

8285
### Using GitHub Issues
8386

84-
* Feel free to use GitHub issues for questions, bug reports, and feature requests
85-
* Use the search feature to check for an existing issue
86-
* Include as much information as possible and provide any relevant resources (Eg. screenshots)
87-
* For bug reports ensure you have a reproducible test case
88-
* A pull request with a breaking test would be super preferable here but isn't required
87+
- Feel free to use GitHub issues for questions, bug reports, and feature requests
88+
- Use the search feature to check for an existing issue
89+
- Include as much information as possible and provide any relevant resources (Eg. screenshots)
90+
- For bug reports ensure you have a reproducible test case
91+
- A pull request with a breaking test would be super preferable here but isn't required
8992

9093
### Submitting a Pull Request
9194

92-
* Squash commits
93-
* Lint your code with eslint (config provided)
94-
* Include relevant test updates/additions
95+
- Squash commits
96+
- Lint your code with eslint (config provided)
97+
- Include relevant test updates/additions
9598

9699
## Code of Conduct
97100

98101
Read the full version [Code of Conduct](/CODE_OF_CONDUCT.md).
99102

100103
## Contributors
101-
__Maintainer:__ [Abraham Williams](https://github.com/abraham)
102-
__Authors:__ [Oleh Zasadnyy](https://github.com/ozasadnyy) and [Sophie Huts](https://github.com/sophieH29).
104+
105+
**Maintainer:** [Abraham Williams](https://github.com/abraham)
106+
**Authors:** [Oleh Zasadnyy](https://github.com/ozasadnyy) and [Sophie Huts](https://github.com/sophieH29).
103107

104108
This project exists thanks to all the [people who contribute](https://github.com/gdg-x/hoverboard/graphs/contributors). [[Contribute](CONTRIBUTING.md)].
105109

106110
<a href="https://github.com/gdg-x/hoverboard/graphs/contributors"><img src="https://opencollective.com/hoverboard/contributors.svg?width=890" /></a>
107111

108112
## Sponsoring
113+
109114
Most of the core team members, hoverboard contributors and contributors in the ecosystem do this open-source work in their free time. If you like this project and it makes your life easier, please donate.
110115
<a href="https://opencollective.com/hoverboard#backers" target="_blank"><img src="https://opencollective.com/hoverboard/backers.svg?width=890"></a>
111116

112117
## License
118+
113119
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgdg-x%2Fhoverboard.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgdg-x%2Fhoverboard?ref=badge_large)
114120

115121
The project is published under the [MIT license](/LICENSE.md).

__tests__/firestore.rules.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe('Feedback rules', () => {
9393
{ styleRating: 11 },
9494
{ comment: null },
9595
{ comment: 'c'.repeat(257) },
96-
].forEach(async data => {
96+
].forEach(async (data) => {
9797
await expect(ownDocRef.update(data)).toDeny();
9898
});
9999
});

__tests__/helpers.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ const loadRules = (projectId, path) => {
66
projectId,
77
rules: fs.readFileSync(path, 'utf8'),
88
});
9-
}
9+
};
1010

1111
module.exports.setup = async (auth, data) => {
1212
const projectId = `rules-spec-${Date.now()}`;
1313
const app = await firebase.initializeTestApp({
1414
projectId,
15-
auth
15+
auth,
1616
});
1717
const db = app.firestore();
1818

@@ -30,7 +30,7 @@ module.exports.setup = async (auth, data) => {
3030
};
3131

3232
module.exports.teardown = async () => {
33-
return Promise.all(firebase.apps().map(app => app.delete()));
33+
return Promise.all(firebase.apps().map((app) => app.delete()));
3434
};
3535

3636
expect.extend({
@@ -43,9 +43,9 @@ expect.extend({
4343

4444
return {
4545
pass,
46-
message: () => 'Expected Firebase operation to be allowed, but it was denied'
46+
message: () => 'Expected Firebase operation to be allowed, but it was denied',
4747
};
48-
}
48+
},
4949
});
5050

5151
expect.extend({
@@ -57,8 +57,7 @@ expect.extend({
5757
} catch (err) {}
5858
return {
5959
pass,
60-
message: () =>
61-
'Expected Firebase operation to be denied, but it was allowed'
60+
message: () => 'Expected Firebase operation to be denied, but it was allowed',
6261
};
63-
}
62+
},
6463
});

0 commit comments

Comments
 (0)