Skip to content

Commit bbaff22

Browse files
committed
dx: setup Editorconfig
1 parent c764bf1 commit bbaff22

File tree

99 files changed

+216
-161
lines changed

Some content is hidden

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

99 files changed

+216
-161
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ RUN npm install -g pnpm
2222

2323

2424

25-
# RUN mkdir -p /workspace/server/.env
25+
# RUN mkdir -p /workspace/server/.env

.devcontainer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ When developing, you should use the URL that's on the format `https://$NAME-8080
4848

4949
**setup-github**
5050

51-
The setup-github app is a way to automatically create a GitHub App and populate the appropriate .env files with URLs and metadata from the Codespaces environment. It's running on port 3001.
51+
The setup-github app is a way to automatically create a GitHub App and populate the appropriate .env files with URLs and metadata from the Codespaces environment. It's running on port 3001.

.devcontainer/devcontainer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
// Configure tool-specific properties.
1515
"customizations": {
16-
16+
1717
// Auto open these files whrn running on GitHub Codespaces
1818
"codespaces": {
1919
"openFiles": [
2020
".devcontainer/README.md",
2121
"server/.env.devcontainer"
22-
22+
2323
]
2424
},
2525

@@ -45,8 +45,8 @@
4545
]
4646
}
4747
},
48-
49-
48+
49+
5050
"remoteUser": "vscode",
5151
"postStartCommand": "bash /workspace/.devcontainer/post_start_command.sh",
5252

@@ -75,4 +75,4 @@
7575
"onAutoForward": "notify"
7676
}
7777
}
78-
}
78+
}

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 2
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
charset = utf-8
11+
end_of_line = lf
12+
13+
[*.md]
14+
indent_size = 4
15+
16+
[*.py]
17+
indent_size = 4

.github/workflows/build_server.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
- name: Set up QEMU
1919
uses: docker/[email protected]
20-
20+
2121
- name: Set up Docker Buildx
2222
uses: docker/[email protected]
23-
23+
2424
- name: Log in to the Container registry
2525
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
2626
with:
@@ -52,10 +52,10 @@ jobs:
5252
labels: ${{ steps.meta.outputs.labels }}
5353
context: ./server
5454
platforms: linux/amd64,linux/arm64/v8
55-
55+
5656
- name: Deploy
5757
if: github.ref == 'refs/heads/main'
5858
run: "./.github/workflows/deploy_server.sh ${{ steps.push.outputs.digest }}"
5959
env:
6060
RENDER_DEPLOY_KEY_WORKER: ${{ secrets.RENDER_DEPLOY_KEY_WORKER }}
61-
RENDER_DEPLOY_KEY_API: ${{ secrets.RENDER_DEPLOY_KEY_API }}
61+
RENDER_DEPLOY_KEY_API: ${{ secrets.RENDER_DEPLOY_KEY_API }}

.github/workflows/publish_sdk.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: "SDK: Publish"
99
timeout-minutes: 15
1010
runs-on: ubuntu-22.04
11-
11+
1212
steps:
1313
- name: Check out code
1414
uses: actions/checkout@v3
@@ -33,4 +33,4 @@ jobs:
3333
working-directory: ./clients/packages/sdk
3434
run: pnpm publish --no-git-checks
3535
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test_server.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
mypy-${{ runner.os }}-${{ matrix.python-version }}-
4141
mypy-${{ runner.os }}-
4242
mypy-
43-
43+
4444
- name: 🐶 Lint Server (ruff)
4545
working-directory: ./server
4646
run: poetry run task lint_check

Brewfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ brew "pyenv"
55
brew "poetry"
66

77
# TypeScript dependencies
8-
brew "pnpm"
8+
brew "pnpm"

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@
174174
of your accepting any such warranty or additional liability.
175175

176176
END OF TERMS AND CONDITIONS
177-
178-
177+
178+
179179
Copyright 2023 Polar Software Inc
180180

181181
Licensed under the Apache License, Version 2.0 (the "License");

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<hr />
1111
<div align="center">
12-
12+
1313
<a href="https://polar.sh">Website</a>
1414
<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
1515
<span>Public Alpha - <a href="https://polar.sh/signup/maintainer">Get started</a></span>

bin/prepare-backend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
66

77
cd "${SCRIPTPATH}/../server"
88

9-
poetry run task db_migrate
9+
poetry run task db_migrate

bin/start

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ if can_run_server; then
3030
./bin/start-worker &
3131
fi
3232

33-
wait
33+
wait

bin/start-backend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
66

77
cd "${SCRIPTPATH}/../server"
88

9-
poetry run task api
9+
poetry run task api

bin/start-frontend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
66

77
cd "${SCRIPTPATH}/../clients"
88

9-
pnpm dev
9+
pnpm dev

bin/start-worker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
66

77
cd "${SCRIPTPATH}/../server"
88

9-
poetry run task worker
9+
poetry run task worker

clients/.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# chadcn/ui components
22
apps/web/src/components/ui/*.tsx
3-
packages/polarkit/src/components/ui/*.tsx
3+
packages/polarkit/src/components/ui/*.tsx

clients/.vscode/extensions.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"recommendations": [
33
"esbenp.prettier-vscode",
4-
"bradlc.vscode-tailwindcss"
4+
"bradlc.vscode-tailwindcss",
5+
"EditorConfig.EditorConfig"
56
]
6-
}
7+
}

clients/.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
"type": "node-terminal"
99
},
1010
]
11-
}
11+
}

clients/apps/chrome-extension/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ yarn-error.log*
2727
/extension/*.css
2828
/extension/manifest.json
2929

30-
extension.zip
30+
extension.zip

clients/apps/chrome-extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@
5959
"webpack": "^5.79.0",
6060
"webpack-cli": "^5.0.1"
6161
}
62-
}
62+
}
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8" />
5-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1" />
7-
<meta name="theme-color" content="#000000" />
8-
<meta
9-
name="description"
10-
content="Web site created using create-react-app"
11-
/>
12-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13-
<!--
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<meta name="theme-color" content="#000000" />
9+
<meta name="description" content="Web site created using create-react-app" />
10+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
11+
<!--
1412
manifest.json provides metadata used when your web app is installed on a
1513
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
1614
-->
17-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18-
<!--
15+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
16+
<!--
1917
Notice the use of %PUBLIC_URL% in the tags above.
2018
It will be replaced with the URL of the `public` folder during the build.
2119
Only files inside the `public` folder can be referenced from the HTML.
@@ -24,12 +22,13 @@
2422
work correctly both with client-side routing and a non-root public URL.
2523
Learn how to configure a non-root public URL by running `npm run build`.
2624
-->
27-
<title>React App</title>
28-
</head>
29-
<body>
30-
<noscript>You need to enable JavaScript to run this app.</noscript>
31-
<div id="root"></div>
32-
<!--
25+
<title>React App</title>
26+
</head>
27+
28+
<body>
29+
<noscript>You need to enable JavaScript to run this app.</noscript>
30+
<div id="root"></div>
31+
<!--
3332
This HTML file is a template.
3433
If you open it directly in the browser, you will see an empty page.
3534
@@ -39,5 +38,6 @@
3938
To begin the development, run `npm start` or `yarn start`.
4039
To create a production bundle, use `npm run build` or `yarn build`.
4140
-->
42-
</body>
43-
</html>
41+
</body>
42+
43+
</html>

clients/apps/chrome-extension/public/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
"display": "standalone",
2323
"theme_color": "#000000",
2424
"background_color": "#ffffff"
25-
}
25+
}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import { ReportHandler } from 'web-vitals';
1+
import { ReportHandler } from 'web-vitals'
22

33
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
44
if (onPerfEntry && onPerfEntry instanceof Function) {
55
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
6-
getCLS(onPerfEntry);
7-
getFID(onPerfEntry);
8-
getFCP(onPerfEntry);
9-
getLCP(onPerfEntry);
10-
getTTFB(onPerfEntry);
11-
});
6+
getCLS(onPerfEntry)
7+
getFID(onPerfEntry)
8+
getFCP(onPerfEntry)
9+
getLCP(onPerfEntry)
10+
getTTFB(onPerfEntry)
11+
})
1212
}
13-
};
13+
}
1414

15-
export default reportWebVitals;
15+
export default reportWebVitals

clients/apps/chrome-extension/src/setupTests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// allows you to do things like:
33
// expect(element).toHaveTextContent(/react/i)
44
// learn more: https://github.com/testing-library/jest-dom
5-
import '@testing-library/jest-dom';
5+
import '@testing-library/jest-dom'

clients/apps/chrome-extension/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@
3535
],
3636
"ts-node": {
3737
"esm": true,
38-
},
38+
},
3939
}

clients/apps/setup-github/.env.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
NEXT_PUBLIC_CODESPACE_NAME=$CODESPACE_NAME
2-
NEXT_PUBLIC_GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN=$GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN
2+
NEXT_PUBLIC_GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN=$GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN

clients/apps/setup-github/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/apps/setup-github/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
"tailwindcss": "^3.3.2",
2525
"typescript": "5.0.4"
2626
}
27-
}
27+
}
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

clients/apps/web/src/components/Dashboard/UpfrontRewards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const PublicRewardsSetting = (props: {
8888

8989
<div>
9090
{/*
91-
We currently don't support opting out a single issue from upfront splits if the organization has it enabled by default.
91+
We currently don't support opting out a single issue from upfront splits if the organization has it enabled by default.
9292
Disabling the switch if we're in issue mode and it's forced on by the org.
9393
9494
Users can "disable" rewards by explicitly setting the share to 0.

clients/apps/web/src/components/Feed/data.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ We hope you share our excitement for rewards with Polar. We can't wait to see ho
284284
285285
Don't hesitate to [join our Discord](https://discord.gg/XKVxpXQbWV?ref=blog.polar.sh) if you have any questions or feedback. Or submit discussions and issues to our [GitHub](https://github.com/polarsource/polar?ref=blog.polar.sh) (Polar is open source). We iterate quickly based on feedback.
286286
287-
Our best,
287+
Our best,
288288
The Polar maintainers`,
289289
visibility: 'pro',
290290
author: {
@@ -475,7 +475,7 @@ Today, Polar offers users the ability to seamlessly pledge behind impactful effo
475475
476476
Our product is designed to empower maintainers with better insights on what their users want, seek to fund and progress in flight across their community of contributors. All available through our dashboard or directly on GitHub using our Chrome Extension.
477477
478-
Once funded issues are marked completed, maintainers receive 90% of the capital pledged (our commission is 10%). Of course, in case such efforts were achieved together with contributors, maintainers can soon seamlessly split the rewards. Or leverage the capital for community merchandise or meetups to re-investing it behind their own issue dependencies.
478+
Once funded issues are marked completed, maintainers receive 90% of the capital pledged (our commission is 10%). Of course, in case such efforts were achieved together with contributors, maintainers can soon seamlessly split the rewards. Or leverage the capital for community merchandise or meetups to re-investing it behind their own issue dependencies.
479479
480480
![](https://lh4.googleusercontent.com/Y8ewxSfPHvHgRM3Z3sHdiUZm6obQdedApQWY570856mf8WbJ15eHRYPerREW2T2dndbsGZBZaVbaaDVYIVWj_anCJGxh_WnqIeH8MT_492c2dU7KO7hTzL1eCHA9cnBBBkISNka4HyzmdPu5RADaJoI)
481481
@@ -509,7 +509,7 @@ It’s time to change that. Equipping maintainers across the entire ecosystem wi
509509
510510
That’s what we’re building towards.
511511
512-
512+
513513
**Shape Polar v1.0 with us – built in public & open source**
514514
515515
We’re excited to be building Polar in public and open source ([GitHub](https://github.com/polarsource/polar?ref=blog.polar.sh)). Join our [Discord](https://discord.gg/STfRufb32V?ref=blog.polar.sh) to discuss ideas, early design proposals and upcoming features. We’d love your input and feedback: Let’s shape the future of Polar and the open source economy, together!

clients/apps/web/src/components/Layout/TopbarLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const TopbarLayout = ({
1717
<>
1818
<Topbar
1919
logo={{
20-
position: logoPosition
20+
position: logoPosition,
2121
}}
2222
isFixed={isFixed}
2323
useOrgFromURL={false}

0 commit comments

Comments
 (0)