Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Commit 7466e05

Browse files
authored
lint all code (#383)
```bash yarn run prettier -w . ```
1 parent 5d1c092 commit 7466e05

File tree

197 files changed

+5963
-6597
lines changed

Some content is hidden

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

197 files changed

+5963
-6597
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
3031

3132
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
3638

3739
**Additional context**
3840
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/dependabot.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ version: 2
33
updates:
44
- package-ecosystem: gitsubmodule
55
schedule:
6-
interval: "daily"
6+
interval: 'daily'
77
directory: /
88
- package-ecosystem: npm
9-
directory: "/" # Location of package manifests
9+
directory: '/' # Location of package manifests
1010
schedule:
11-
interval: "weekly"
12-
11+
interval: 'weekly'

.prettierrc

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"printWidth": 120,
3-
"tabWidth": 2,
4-
"useTabs": false,
5-
"semi": false,
6-
"singleQuote": true,
7-
"trailingComma": "all",
8-
"quoteProps": "as-needed",
9-
"bracketSpacing": true,
10-
"jsxBracketSameLine": false,
11-
"arrowParens": "always",
12-
"requirePragma": false,
13-
"insertPragma": false,
14-
"proseWrap": "preserve"
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": false,
6+
"singleQuote": true,
7+
"trailingComma": "all",
8+
"quoteProps": "as-needed",
9+
"bracketSpacing": true,
10+
"jsxBracketSameLine": false,
11+
"arrowParens": "always",
12+
"requirePragma": false,
13+
"insertPragma": false,
14+
"proseWrap": "preserve"
1515
}

.vscode/extensions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["esbenp.prettier-vscode"]
2+
"recommendations": ["esbenp.prettier-vscode"]
33
}

.vscode/settings.json

+49-56
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,51 @@
11
{
2-
"sourcegraph.defaultBranch": "master",
3-
"editor.formatOnSave": true,
4-
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
5-
"editor.codeActionsOnSave": {
6-
"source.fixAll.eslint": true,
7-
"source.fixAll.stylelint": true
8-
},
9-
"typescript.preferences.importModuleSpecifier": "non-relative",
10-
"css.validate": false,
11-
"less.validate": false,
12-
"scss.validate": false,
13-
"stylelint.enable": true,
14-
"stylelint.validate": [
15-
"css",
16-
"less",
17-
"postcss",
18-
"scss"
19-
],
20-
"[json]": {
21-
"editor.defaultFormatter": "esbenp.prettier-vscode",
22-
"editor.quickSuggestions": {
23-
"strings": true
24-
},
25-
"editor.suggest.insertMode": "replace",
26-
"gitlens.codeLens.scopes": [
27-
"document"
28-
],
29-
},
30-
"[less]": {
31-
"editor.defaultFormatter": "esbenp.prettier-vscode"
32-
},
33-
"[scss]": {
34-
"editor.defaultFormatter": "esbenp.prettier-vscode"
35-
},
36-
"editor.hover.enabled": true,
37-
"editor.colorDecorators": true,
38-
"[typescriptreact]": {
39-
"editor.defaultFormatter": "vscode.typescript-language-features"
40-
},
41-
"openInGitHub.defaultBranch": "master",
42-
"openInGitHub.defaultRemote": "origin",
43-
"openInGithub.maxBuffer": 512000,
44-
"openInGitHub.excludeCurrentRevision": false,
45-
"[javascript]": {
46-
"editor.defaultFormatter": "esbenp.prettier-vscode"
47-
},
48-
"files.exclude": {
49-
"**/.git": true,
50-
"**/.svn": true,
51-
"**/.hg": true,
52-
"**/CVS": true,
53-
"**/.DS_Store": true,
54-
"**/Thumbs.db": true,
55-
"**/node_modules": true,
56-
"**/.next": true,
57-
}
2+
"sourcegraph.defaultBranch": "master",
3+
"editor.formatOnSave": true,
4+
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
5+
"editor.codeActionsOnSave": {
6+
"source.fixAll.eslint": true,
7+
"source.fixAll.stylelint": true
8+
},
9+
"typescript.preferences.importModuleSpecifier": "non-relative",
10+
"css.validate": false,
11+
"less.validate": false,
12+
"scss.validate": false,
13+
"stylelint.enable": true,
14+
"stylelint.validate": ["css", "less", "postcss", "scss"],
15+
"[json]": {
16+
"editor.defaultFormatter": "esbenp.prettier-vscode",
17+
"editor.quickSuggestions": {
18+
"strings": true
19+
},
20+
"editor.suggest.insertMode": "replace",
21+
"gitlens.codeLens.scopes": ["document"]
22+
},
23+
"[less]": {
24+
"editor.defaultFormatter": "esbenp.prettier-vscode"
25+
},
26+
"[scss]": {
27+
"editor.defaultFormatter": "esbenp.prettier-vscode"
28+
},
29+
"editor.hover.enabled": true,
30+
"editor.colorDecorators": true,
31+
"[typescriptreact]": {
32+
"editor.defaultFormatter": "vscode.typescript-language-features"
33+
},
34+
"openInGitHub.defaultBranch": "master",
35+
"openInGitHub.defaultRemote": "origin",
36+
"openInGithub.maxBuffer": 512000,
37+
"openInGitHub.excludeCurrentRevision": false,
38+
"[javascript]": {
39+
"editor.defaultFormatter": "esbenp.prettier-vscode"
40+
},
41+
"files.exclude": {
42+
"**/.git": true,
43+
"**/.svn": true,
44+
"**/.hg": true,
45+
"**/CVS": true,
46+
"**/.DS_Store": true,
47+
"**/Thumbs.db": true,
48+
"**/node_modules": true,
49+
"**/.next": true
50+
}
5851
}

CODE_OF_CONDUCT.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
- Demonstrating empathy and kindness toward other people
21-
- Being respectful of differing opinions, viewpoints, and experiences
22-
- Giving and gracefully accepting constructive feedback
23-
- Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
25-
- Focusing on what is best not just for us as individuals, but for the
26-
overall community
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
- Focusing on what is best not just for us as individuals, but for the
26+
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
- The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
32-
- Trolling, insulting or derogatory comments, and personal or political attacks
33-
- Public or private harassment
34-
- Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
36-
- Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
30+
- The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
3838

3939
## Enforcement Responsibilities
4040

CONTRIBUTING.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ updatedAt: 2023-01-24T02:07:22.000Z
1111

1212
First, you'll want to understand how Highlight is built to make changes. The best way to get a sense of this is to try and make simple dummy changes to different parts of the stack and see how the changes propagate.
1313

14-
- SDKs `sdk/`
15-
- Firstload
16-
- Client
17-
- highlight-node / other SDKs
18-
- Public Graph `backend/public-graph/graph/schema.resolvers.go`
19-
- Private Graph `backend/private-graph/graph/schema.resolvers.go`
20-
- Workers `backend/worker.go`
21-
- Public graph worker `processPublicWorkerMessage`
22-
- Async worker `Start`
14+
- SDKs `sdk/`
15+
- Firstload
16+
- Client
17+
- highlight-node / other SDKs
18+
- Public Graph `backend/public-graph/graph/schema.resolvers.go`
19+
- Private Graph `backend/private-graph/graph/schema.resolvers.go`
20+
- Workers `backend/worker.go`
21+
- Public graph worker `processPublicWorkerMessage`
22+
- Async worker `Start`
2323

2424
## Best first issues to take on
2525

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
11
<img width="2051" alt="Docs Thumbnail" src="https://user-images.githubusercontent.com/20292680/214512508-04cc1ca5-5c26-45c6-839e-7aa9b5280c90.png">
22

33
# Highlight's landing page & docs: [highlight.io](https://highlight.io)
4+
45
Welcome to the repo we use to maintain our main landing page (https://highlight.io) and docs (https://highlight.io/docs). If you're looking to make contributions to Highlight's main repository, head over to https://github.com/highlight/highlight.
56

67
## Table of contents:
7-
- [Editing the docs](#contributing-to-our-docs)
8-
- [Running the site locally](#running-the-site-locally)
8+
9+
- [Editing the docs](#contributing-to-our-docs)
10+
- [Running the site locally](#running-the-site-locally)
911

1012
## Contributing to our Docs
1113

1214
### Ordering Doc Items
1315

14-
If you want to explicitly order items in the left panel (e.g. to make the `overview` section at the top of a subdirectory), rather than naming a file or directory in the format `{{content}}` you can use the syntax `{{number}}_{{content}}`.
16+
If you want to explicitly order items in the left panel (e.g. to make the `overview` section at the top of a subdirectory), rather than naming a file or directory in the format `{{content}}` you can use the syntax `{{number}}_{{content}}`.
1517

1618
- For example, for [`http://localhost:3000/docs/getting-started/fullstack-frameworks/next-js/metrics-overview`](http://localhost:3000/docs/getting-started/fullstack-frameworks/next-js/metrics-overview), the file path of the doc is `docs/general-docs/2_getting-started/fullstack-frameworks/next-js/metrics-overview.md`
1719
- Notice `2_getting-started` because we want it second in the list of subfiles.
1820

1921
### How are slugs defined?
2022

2123
- For files in `general-docs`, the base path is `docs/` and for files in `sdk-docs`, the base path is `docs/sdk`.
22-
- The rest of the slug is defined based on the file name / directory structure of the file. For files/folders in the form `{{number}}_{{content}}`*, only the content is included in the slug.
23-
- For example, for [`http://localhost:3000/docs/getting-started/fullstack-frameworks/next-js/metrics-overview`](http://localhost:3000/docs/getting-started/fullstack-frameworks/next-js/metrics-overview), the file path of the doc is `docs/general-docs/2_getting-started/fullstack-frameworks/next-js/metrics-overview.md`
24-
24+
- The rest of the slug is defined based on the file name / directory structure of the file. For files/folders in the form `{{number}}_{{content}}`\*, only the content is included in the slug.
25+
- For example, for [`http://localhost:3000/docs/getting-started/fullstack-frameworks/next-js/metrics-overview`](http://localhost:3000/docs/getting-started/fullstack-frameworks/next-js/metrics-overview), the file path of the doc is `docs/general-docs/2_getting-started/fullstack-frameworks/next-js/metrics-overview.md`
26+
2527
## Running the site locally
2628

2729
### How can I run them locally?
2830

29-
Run `yarn dev` (and optionally `yarn styles` if you’re making styling changes).
31+
Run `yarn dev` (and optionally `yarn styles` if you’re making styling changes).
3032

3133
### Deployment
3234

3335
When a doc change is merged, you should be able to view the doc that you added/changed after a deploy is successful in Vercel at https://highlight.io.
34-

components/Animate.tsx

+5-17
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ export const AnimateIn = ({ children }: React.PropsWithChildren) => {
2626
)
2727
}
2828

29-
export const AnimateBugLeft = ({
30-
loaded,
31-
children,
32-
}: React.PropsWithChildren<{ loaded: boolean }>) => {
29+
export const AnimateBugLeft = ({ loaded, children }: React.PropsWithChildren<{ loaded: boolean }>) => {
3330
const orig = { left: -300, top: 0, opacity: 0 }
3431
const final = { left: -120, top: 125, opacity: 1 }
3532
return (
@@ -52,10 +49,7 @@ export const AnimateBugLeft = ({
5249
)
5350
}
5451

55-
export const AnimateBugRight = ({
56-
loaded,
57-
children,
58-
}: React.PropsWithChildren<{ loaded: boolean }>) => {
52+
export const AnimateBugRight = ({ loaded, children }: React.PropsWithChildren<{ loaded: boolean }>) => {
5953
const orig = { right: -275, top: -95, opacity: 0 }
6054
const final = { right: -95, top: 30, opacity: 1 }
6155
return (
@@ -78,10 +72,7 @@ export const AnimateBugRight = ({
7872
)
7973
}
8074

81-
export const AnimateCarouselImage = ({
82-
loaded,
83-
children,
84-
}: React.PropsWithChildren<{ loaded: boolean }>) => {
75+
export const AnimateCarouselImage = ({ loaded, children }: React.PropsWithChildren<{ loaded: boolean }>) => {
8576
const orig = { bottom: -300, opacity: 0 }
8677
const final = { bottom: -20, opacity: 1 }
8778
return (
@@ -100,10 +91,7 @@ export const AnimateCarouselImage = ({
10091
)
10192
}
10293

103-
export const AnimateMobileCarouselImage = ({
104-
loaded,
105-
children,
106-
}: React.PropsWithChildren<{ loaded: boolean }>) => {
94+
export const AnimateMobileCarouselImage = ({ loaded, children }: React.PropsWithChildren<{ loaded: boolean }>) => {
10795
const orig = { bottom: -300, opacity: 0 }
10896
const final = { bottom: 30, opacity: 1 }
10997
return (
@@ -120,4 +108,4 @@ export const AnimateMobileCarouselImage = ({
120108
{children}
121109
</motion.div>
122110
)
123-
}
111+
}

0 commit comments

Comments
 (0)